Search in sources :

Example 1 with HttpResponse

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;
}
Also used : HttpResponse(akka.http.scaladsl.model.HttpResponse) Segment(com.newrelic.api.agent.Segment)

Example 2 with HttpResponse

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;
}
Also used : HttpResponse(akka.http.scaladsl.model.HttpResponse) Segment(com.newrelic.api.agent.Segment)

Example 3 with HttpResponse

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;
}
Also used : HttpResponse(akka.http.scaladsl.model.HttpResponse) Segment(com.newrelic.api.agent.Segment)

Aggregations

HttpResponse (akka.http.scaladsl.model.HttpResponse)3 Segment (com.newrelic.api.agent.Segment)3