diff --git a/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/http/HttpClientAttributesExtractor.java b/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/http/HttpClientAttributesExtractor.java index 4ef3936ec3e4..564066e411ef 100644 --- a/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/http/HttpClientAttributesExtractor.java +++ b/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/http/HttpClientAttributesExtractor.java @@ -29,15 +29,6 @@ public static HttpClientAttributesExtractor HttpClientAttributesExtractorBuilder builder( - HttpClientAttributesGetter getter) { - return new HttpClientAttributesExtractorBuilder<>(getter); - } - /** * Creates the HTTP client attributes extractor. * @@ -52,6 +43,15 @@ public static HttpClientAttributesExtractor HttpClientAttributesExtractorBuilder builder( + HttpClientAttributesGetter getter) { + return new HttpClientAttributesExtractorBuilder<>(getter); + } + HttpClientAttributesExtractor( HttpClientAttributesGetter getter, CapturedHttpHeaders capturedHttpHeaders) { diff --git a/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/http/HttpServerAttributesExtractor.java b/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/http/HttpServerAttributesExtractor.java index 9598e0228c4d..332cdc60ece6 100644 --- a/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/http/HttpServerAttributesExtractor.java +++ b/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/http/HttpServerAttributesExtractor.java @@ -35,15 +35,6 @@ public static HttpServerAttributesExtractor HttpServerAttributesExtractorBuilder builder( - HttpServerAttributesGetter getter) { - return new HttpServerAttributesExtractorBuilder<>(getter); - } - /** * Creates the HTTP server attributes extractor. * @@ -58,6 +49,15 @@ public static HttpServerAttributesExtractor HttpServerAttributesExtractorBuilder builder( + HttpServerAttributesGetter getter) { + return new HttpServerAttributesExtractorBuilder<>(getter); + } + private final Function httpRouteHolderGetter; HttpServerAttributesExtractor(