use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class WSRequest_Instrumentation method post.
public Future<StandaloneWSResponse> post(Source<MultipartFormData.Part<Source<ByteString, ?>>, ?> 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 put.
public Future<StandaloneWSResponse> put(Source<MultipartFormData.Part<Source<ByteString, ?>>, ?> body) {
Segment currentSegment = StandaloneWSRequest_Instrumentation.class.cast(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 delete.
public CompletionStage<? extends StandaloneWSResponse> delete() {
Segment currentSegment = this.segment;
CompletionStage<? extends StandaloneWSResponse> responseFuture = Weaver.callOriginal();
responseFuture = tryRecordExternalRequest("delete", responseFuture, currentSegment);
return responseFuture;
}
use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class StandaloneWSRequest_Instrumentation method execute.
public CompletionStage<? extends StandaloneWSResponse> execute(String method) {
Segment currentSegment = this.segment;
CompletionStage<? extends StandaloneWSResponse> responseFuture = Weaver.callOriginal();
responseFuture = tryRecordExternalRequest("execute", responseFuture, currentSegment);
return responseFuture;
}
use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.
the class StandaloneWSRequest_Instrumentation method execute.
public CompletionStage<? extends StandaloneWSResponse> execute() {
Segment currentSegment = this.segment;
CompletionStage<? extends StandaloneWSResponse> responseFuture = Weaver.callOriginal();
responseFuture = tryRecordExternalRequest("execute", responseFuture, currentSegment);
return responseFuture;
}
Aggregations