Skip to content

Commit

Permalink
Revert import style change
Browse files Browse the repository at this point in the history
  • Loading branch information
bryce-anderson committed Jan 9, 2025
1 parent 3174d84 commit 86164b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
import io.opentelemetry.instrumentation.api.instrumenter.http.HttpClientMetrics;
import io.opentelemetry.instrumentation.api.instrumenter.http.HttpSpanNameExtractor;
import io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesExtractor;
import io.opentelemetry.semconv.SemanticAttributes;

import java.util.function.UnaryOperator;

import static io.opentelemetry.semconv.SemanticAttributes.PEER_SERVICE;

/**
* An HTTP filter that supports <a href="https://opentelemetry.io/docs/instrumentation/java/">open telemetry</a>.
Expand Down Expand Up @@ -142,7 +142,7 @@ public OpenTelemetryHttpRequestFilter() {
componentName = componentName.trim();
if (!componentName.isEmpty()) {
clientInstrumenterBuilder.addAttributesExtractor(
AttributesExtractor.constant(PEER_SERVICE, componentName));
AttributesExtractor.constant(SemanticAttributes.PEER_SERVICE, componentName));
}
instrumenter =
clientInstrumenterBuilder.buildClientInstrumenter(RequestHeadersPropagatorSetter.INSTANCE);
Expand Down

0 comments on commit 86164b1

Please sign in to comment.