use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class StandaloneWSRequest_Instrumentation method addCookies.
public StandaloneWSRequest_Instrumentation addCookies(Seq<WSCookie> cookies) {
Segment currentSegment = this.segment;
this.segment = null;
StandaloneWSRequest_Instrumentation result = Weaver.callOriginal();
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 Future<StandaloneWSResponse> post(File body) {
Segment currentSegment = StandaloneWSRequest_Instrumentation.class.cast(this).segment;
Future<StandaloneWSResponse> 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 Future<StandaloneWSResponse> patch(Source<MultipartFormData.Part<Source<ByteString, ?>>, ?> body) {
Segment currentSegment = StandaloneWSRequest_Instrumentation.class.cast(this).segment;
Future<StandaloneWSResponse> 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 withHeaders.
public WSRequest_Instrumentation withHeaders(Seq<Tuple2<String, String>> headers) {
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 withQueryString.
public WSRequest_Instrumentation withQueryString(Seq<Tuple2<String, String>> parameters) {
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;
}
Aggregations