use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class StandaloneWSRequest_Instrumentation method post.
public <T> Future<StandaloneWSResponse> post(T body, BodyWritable<T> evidence$2) {
Segment currentSegment = 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 StandaloneWSRequest_Instrumentation method stream.
public Future<StandaloneWSResponse> stream() {
Segment currentSegment = this.segment;
Future<StandaloneWSResponse> responseFuture = Weaver.callOriginal();
responseFuture = tryRecordExternalRequest("stream", responseFuture, currentSegment);
return responseFuture;
}
use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class StandaloneWSRequest_Instrumentation method sign.
public StandaloneWSRequest_Instrumentation sign(WSSignatureCalculator calc) {
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 StandaloneWSRequest_Instrumentation method withRequestFilter.
public StandaloneWSRequest_Instrumentation withRequestFilter(WSRequestFilter filter) {
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 StandaloneWSRequest_Instrumentation method withCookies.
public StandaloneWSRequest_Instrumentation withCookies(Seq<WSCookie> cookie) {
Segment currentSegment = this.segment;
this.segment = null;
StandaloneWSRequest_Instrumentation result = Weaver.callOriginal();
result.segment = currentSegment;
return result;
}
Aggregations