use of com.nr.agent.instrumentation.playws.OutboundWrapper in project newrelic-java-agent by newrelic.
the class StandaloneWSClient_Instrumentation method url.
public StandaloneWSRequest_Instrumentation url(String url) {
Segment segment = PlayWSUtils.start();
StandaloneWSRequest_Instrumentation request = Weaver.callOriginal();
Buffer<Tuple2<String, String>> headers = PlayWSUtils.createSeq();
segment.addOutboundRequestHeaders(new OutboundWrapper(headers));
request.segment = segment;
// This is here to ensure that we always add our outbound CAT headers
return request.addHttpHeaders(headers);
}
Aggregations