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 calculator) {
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 put.
public CompletionStage<? extends StandaloneWSResponse> put(BodyWritable body) {
Segment currentSegment = this.segment;
CompletionStage<? extends 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 head.
public CompletionStage<? extends StandaloneWSResponse> head() {
Segment currentSegment = this.segment;
CompletionStage<? extends StandaloneWSResponse> responseFuture = Weaver.callOriginal();
responseFuture = tryRecordExternalRequest("head", responseFuture, currentSegment);
return responseFuture;
}
use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class WSRequest_Instrumentation method setQueryParameter.
public WSRequest_Instrumentation setQueryParameter(String name, String value) {
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 put.
public CompletionStage<WSResponse> put(Document body) {
Segment currentSegment = StandaloneWSRequest_Instrumentation.class.cast(this).segment;
CompletionStage<WSResponse> responseFuture = Weaver.callOriginal();
responseFuture = tryRecordExternalRequest("put", responseFuture, currentSegment);
return responseFuture;
}
Aggregations