in aws-xray-agent-benchmark/src/jmh/java/com/amazonaws/xray/agent/benchmark/HttpDownstreamBenchmark.java [34:45]
public void setup() {
recorder = BenchmarkUtils.configureXRayRecorder();
if (System.getProperty("com.amazonaws.xray.sdk") != null) {
httpClient = ClientProvider.instrumentedApacheHttpClient();
} else {
httpClient = ClientProvider.normalApacheHttpClient();
}
httpGet = new HttpGet("http://localhost:" + PORT + PATH);
jettyServer = SimpleJettyServer.create(PORT, PATH);
}