Skip to content

Commit

Permalink
code review comments -- renaming for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
breedx-splk committed Jan 14, 2022
1 parent 0a7ebd5 commit 781fffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* response into the 4 common network attribute values.
*
* <p>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<REQUEST, RESPONSE> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ public final class AsyncHttpClientSingletons {
HttpSpanNameExtractor.create(httpAttributesExtractor);
SpanStatusExtractor<RequestContext, Response> spanStatusExtractor =
HttpSpanStatusExtractor.create(httpAttributesExtractor);
AsyncHttpClientNetAttributesGetter netAttributeAdapter =
AsyncHttpClientNetAttributesGetter netAttributeGetter =
new AsyncHttpClientNetAttributesGetter();
NetClientAttributesExtractor<RequestContext, Response> netAttributesExtractor =
NetClientAttributesExtractor.create(netAttributeAdapter);
NetClientAttributesExtractor.create(netAttributeGetter);

INSTRUMENTER =
Instrumenter.<RequestContext, Response>builder(
GlobalOpenTelemetry.get(), INSTRUMENTATION_NAME, spanNameExtractor)
.setSpanStatusExtractor(spanStatusExtractor)
.addAttributesExtractor(httpAttributesExtractor)
.addAttributesExtractor(netAttributesExtractor)
.addAttributesExtractor(PeerServiceAttributesExtractor.create(netAttributeAdapter))
.addAttributesExtractor(PeerServiceAttributesExtractor.create(netAttributeGetter))
.addAttributesExtractor(new AsyncHttpClientAdditionalAttributesExtractor())
.addRequestMetrics(HttpClientMetrics.get())
.newClientInstrumenter(HttpHeaderSetter.INSTANCE);
Expand Down

0 comments on commit 781fffb

Please sign in to comment.