use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class WSRequest_Instrumentation method put.
public CompletionStage<WSResponse> put(InputStream body) {
Segment currentSegment = StandaloneWSRequest_Instrumentation.class.cast(this).segment;
CompletionStage<WSResponse> responseFuture = Weaver.callOriginal();
responseFuture = tryRecordExternalRequest("put", responseFuture, currentSegment);
return responseFuture;
}
use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class WSRequest_Instrumentation method setBody.
public <U> WSRequest_Instrumentation setBody(Source<ByteString, U> body) {
Segment currentSegment = StandaloneWSRequest_Instrumentation.class.cast(this).segment;
StandaloneWSRequest_Instrumentation.class.cast(this).segment = null;
WSRequest_Instrumentation result = Weaver.callOriginal();
StandaloneWSRequest_Instrumentation.class.cast(result).segment = currentSegment;
return result;
}
use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class WSRequest_Instrumentation method post.
public CompletionStage<WSResponse> post(Source<? super Http.MultipartFormData.Part<Source<ByteString, ?>>, ?> body) {
Segment currentSegment = StandaloneWSRequest_Instrumentation.class.cast(this).segment;
CompletionStage<WSResponse> responseFuture = Weaver.callOriginal();
responseFuture = tryRecordExternalRequest("post", responseFuture, currentSegment);
return responseFuture;
}
use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class WSRequest_Instrumentation method patch.
public CompletionStage<WSResponse> patch(Source<? super Http.MultipartFormData.Part<Source<ByteString, ?>>, ?> body) {
Segment currentSegment = StandaloneWSRequest_Instrumentation.class.cast(this).segment;
CompletionStage<WSResponse> responseFuture = Weaver.callOriginal();
responseFuture = tryRecordExternalRequest("patch", responseFuture, currentSegment);
return responseFuture;
}
use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class WSRequest_Instrumentation method put.
public CompletionStage<WSResponse> put(Source<? super Http.MultipartFormData.Part<Source<ByteString, ?>>, ?> body) {
Segment currentSegment = StandaloneWSRequest_Instrumentation.class.cast(this).segment;
CompletionStage<WSResponse> responseFuture = Weaver.callOriginal();
responseFuture = tryRecordExternalRequest("put", responseFuture, currentSegment);
return responseFuture;
}
Aggregations