use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class StandaloneWSRequest_Instrumentation method put.
public <T> Future<StandaloneWSResponse> put(T body, BodyWritable<T> evidence$4) {
Segment currentSegment = this.segment;
Future<StandaloneWSResponse> 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 StandaloneWSRequest_Instrumentation method get.
public Future<StandaloneWSResponse> get() {
Segment currentSegment = this.segment;
Future<StandaloneWSResponse> responseFuture = Weaver.callOriginal();
responseFuture = tryRecordExternalRequest("get", responseFuture, currentSegment);
return responseFuture;
}
use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class StandaloneWSRequest_Instrumentation method addQueryStringParameters.
public StandaloneWSRequest_Instrumentation addQueryStringParameters(Seq<Tuple2<String, String>> parameters) {
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 withRequestTimeout.
public StandaloneWSRequest_Instrumentation withRequestTimeout(Duration timeout) {
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 withMethod.
public StandaloneWSRequest_Instrumentation withMethod(String method) {
Segment currentSegment = this.segment;
this.segment = null;
StandaloneWSRequest_Instrumentation result = Weaver.callOriginal();
result.segment = currentSegment;
return result;
}
Aggregations