use of akka.http.scaladsl.model.HttpResponse in project newrelic-java-agent by newrelic.
the class HttpExtInstrumentation method singleRequest.
// We are weaving the singleRequestImpl method here rather than just singleRequest because the javadsl only flows through here
public Future<HttpResponse> singleRequest(HttpRequest httpRequest, HttpsConnectionContext connectionContext, ConnectionPoolSettings settings, LoggingAdapter log, Materializer fm) {
final Segment segment = NewRelic.getAgent().getTransaction().startSegment("Akka", "singleRequest");
Future<HttpResponse> responseFuture = Weaver.callOriginal();
AkkaHttpUtils.finishSegmentOnComplete(httpRequest, responseFuture, segment);
return responseFuture;
}
use of akka.http.scaladsl.model.HttpResponse in project newrelic-java-agent by newrelic.
the class HttpExtInstrumentation method singleRequest.
public Future<HttpResponse> singleRequest(HttpRequest httpRequest, HttpsConnectionContext connectionContext, ConnectionPoolSettings poolSettings, LoggingAdapter loggingAdapter) {
final Segment segment = NewRelic.getAgent().getTransaction().startSegment("Akka", "singleRequest");
Future<HttpResponse> responseFuture = Weaver.callOriginal();
AkkaHttpUtils.finishSegmentOnComplete(httpRequest, responseFuture, segment);
return responseFuture;
}
use of akka.http.scaladsl.model.HttpResponse in project newrelic-java-agent by newrelic.
the class HttpExtInstrumentation method singleRequestImpl.
// We are weaving the singleRequestImpl method here rather than just singleRequest because the javadsl only flows through here
public Future<HttpResponse> singleRequestImpl(HttpRequest httpRequest, HttpsConnectionContext connectionContext, ConnectionPoolSettings poolSettings, LoggingAdapter loggingAdapter) {
final Segment segment = NewRelic.getAgent().getTransaction().startSegment("Akka", "singleRequest");
Future<HttpResponse> responseFuture = Weaver.callOriginal();
AkkaHttpUtils.finishSegmentOnComplete(httpRequest, responseFuture, segment);
return responseFuture;
}
Aggregations