Search in sources :

Example 11 with Segment

use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.

the class StandaloneWSRequest_Instrumentation method put.

public <T> Future<StandaloneWSResponse> put(T body, BodyWritable<T> evidence$4) {
    Segment currentSegment = this.segment;
    Future<StandaloneWSResponse> responseFuture = Weaver.callOriginal();
    responseFuture = tryRecordExternalRequest("put", responseFuture, currentSegment);
    return responseFuture;
}
Also used : Segment(com.newrelic.api.agent.Segment)

Example 12 with Segment

use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.

the class StandaloneWSRequest_Instrumentation method get.

public Future<StandaloneWSResponse> get() {
    Segment currentSegment = this.segment;
    Future<StandaloneWSResponse> responseFuture = Weaver.callOriginal();
    responseFuture = tryRecordExternalRequest("get", responseFuture, currentSegment);
    return responseFuture;
}
Also used : Segment(com.newrelic.api.agent.Segment)

Example 13 with Segment

use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.

the class StandaloneWSRequest_Instrumentation method addQueryStringParameters.

public StandaloneWSRequest_Instrumentation addQueryStringParameters(Seq<Tuple2<String, String>> parameters) {
    Segment currentSegment = this.segment;
    this.segment = null;
    StandaloneWSRequest_Instrumentation result = Weaver.callOriginal();
    result.segment = currentSegment;
    return result;
}
Also used : Segment(com.newrelic.api.agent.Segment)

Example 14 with Segment

use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.

the class StandaloneWSRequest_Instrumentation method withRequestTimeout.

public StandaloneWSRequest_Instrumentation withRequestTimeout(Duration timeout) {
    Segment currentSegment = this.segment;
    this.segment = null;
    StandaloneWSRequest_Instrumentation result = Weaver.callOriginal();
    result.segment = currentSegment;
    return result;
}
Also used : Segment(com.newrelic.api.agent.Segment)

Example 15 with Segment

use of com.newrelic.api.agent.Segment in project newrelic-java-agent by newrelic.

the class StandaloneWSRequest_Instrumentation method withMethod.

public StandaloneWSRequest_Instrumentation withMethod(String method) {
    Segment currentSegment = this.segment;
    this.segment = null;
    StandaloneWSRequest_Instrumentation result = Weaver.callOriginal();
    result.segment = currentSegment;
    return result;
}
Also used : Segment(com.newrelic.api.agent.Segment)

Aggregations

Segment (com.newrelic.api.agent.Segment)138 Trace (com.newrelic.api.agent.Trace)13 URI (java.net.URI)6 NoOpSegment (com.newrelic.agent.bridge.NoOpSegment)5 URISyntaxException (java.net.URISyntaxException)4 HttpResponse (akka.http.scaladsl.model.HttpResponse)3 Transaction (com.newrelic.agent.bridge.Transaction)3 DatastoreParameters (com.newrelic.api.agent.DatastoreParameters)3 ExternalParameters (com.newrelic.api.agent.ExternalParameters)3 InetSocketAddress (java.net.InetSocketAddress)3 Test (org.junit.Test)3 Transaction (com.newrelic.agent.Transaction)2 MessageProduceParameters (com.newrelic.api.agent.MessageProduceParameters)2 Transaction (com.newrelic.api.agent.Transaction)2 OutboundWrapper (com.nr.agent.instrumentation.asynchttpclient.OutboundWrapper)2 HelloReply (io.grpc.examples.helloworld.HelloReply)2 HelloRequest (io.grpc.examples.helloworld.HelloRequest)2 IOException (java.io.IOException)2 SocketAddress (java.net.SocketAddress)2 MemcachedNode (net.spy.memcached.MemcachedNode)2