diff --git a/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/net/NetClientAttributesGetter.java b/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/net/NetClientAttributesGetter.java index fbd032d75df6..634524b5724b 100644 --- a/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/net/NetClientAttributesGetter.java +++ b/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/net/NetClientAttributesGetter.java @@ -12,7 +12,7 @@ * response into the 4 common network attribute values. * *

Instrumentation authors will create implementations of this interface for their specific - * library/framework. It will be used by the NetworkClientAttributesExtractor to obtain the various + * library/framework. It will be used by the NetClientAttributesExtractor to obtain the various * network attributes in a type-generic way. */ public interface NetClientAttributesGetter { diff --git a/instrumentation/async-http-client/async-http-client-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/asynchttpclient/v2_0/AsyncHttpClientSingletons.java b/instrumentation/async-http-client/async-http-client-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/asynchttpclient/v2_0/AsyncHttpClientSingletons.java index f7e5ed128505..f88c890ec9b8 100644 --- a/instrumentation/async-http-client/async-http-client-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/asynchttpclient/v2_0/AsyncHttpClientSingletons.java +++ b/instrumentation/async-http-client/async-http-client-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/asynchttpclient/v2_0/AsyncHttpClientSingletons.java @@ -29,10 +29,10 @@ public final class AsyncHttpClientSingletons { HttpSpanNameExtractor.create(httpAttributesExtractor); SpanStatusExtractor spanStatusExtractor = HttpSpanStatusExtractor.create(httpAttributesExtractor); - AsyncHttpClientNetAttributesGetter netAttributeAdapter = + AsyncHttpClientNetAttributesGetter netAttributeGetter = new AsyncHttpClientNetAttributesGetter(); NetClientAttributesExtractor netAttributesExtractor = - NetClientAttributesExtractor.create(netAttributeAdapter); + NetClientAttributesExtractor.create(netAttributeGetter); INSTRUMENTER = Instrumenter.builder( @@ -40,7 +40,7 @@ public final class AsyncHttpClientSingletons { .setSpanStatusExtractor(spanStatusExtractor) .addAttributesExtractor(httpAttributesExtractor) .addAttributesExtractor(netAttributesExtractor) - .addAttributesExtractor(PeerServiceAttributesExtractor.create(netAttributeAdapter)) + .addAttributesExtractor(PeerServiceAttributesExtractor.create(netAttributeGetter)) .addAttributesExtractor(new AsyncHttpClientAdditionalAttributesExtractor()) .addRequestMetrics(HttpClientMetrics.get()) .newClientInstrumenter(HttpHeaderSetter.INSTANCE);