use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class WSRequest_Instrumentation method put.
public CompletionStage<WSResponse> put(String 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 post.
public CompletionStage<WSResponse> post(File 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 StandaloneWSRequest_Instrumentation method setAuth.
public StandaloneWSRequest_Instrumentation setAuth(String userInfo) {
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 setCookies.
public StandaloneWSRequest_Instrumentation setCookies(List<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 StandaloneWSRequest_Instrumentation method setBody.
public StandaloneWSRequest_Instrumentation setBody(BodyWritable body) {
Segment currentSegment = this.segment;
this.segment = null;
StandaloneWSRequest_Instrumentation result = Weaver.callOriginal();
result.segment = currentSegment;
return result;
}
Aggregations