Fix tracer names to match others
MODIFY
instrumentation/elasticsearch/elasticsearch-common/src/main/java/io/opentelemetry/auto/instrumentation/elasticsearch/ElasticsearchRestClientDecorator.java
instrumentation/elasticsearch/elasticsearch-common/src/main/java/io/opentelemetry/auto/instrumentation/elasticsearch/ElasticsearchRestClientDecorator.java
@@ -28,7 +28,8 @@ public class ElasticsearchRestClientDecorator extends DatabaseClientDecorator {
public static final ElasticsearchRestClientDecorator DECORATE =
new ElasticsearchRestClientDecorator();
- public static final Tracer TRACER = OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto");
+ public static final Tracer TRACER =
+ OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto.elasticsearch");
@Override
protected String service() {

MODIFY
instrumentation/elasticsearch/elasticsearch-common/src/main/java/io/opentelemetry/auto/instrumentation/elasticsearch/ElasticsearchTransportClientDecorator.java
instrumentation/elasticsearch/elasticsearch-common/src/main/java/io/opentelemetry/auto/instrumentation/elasticsearch/ElasticsearchTransportClientDecorator.java
@@ -26,7 +26,8 @@ public class ElasticsearchTransportClientDecorator extends DatabaseClientDecorat
public static final ElasticsearchTransportClientDecorator DECORATE =
new ElasticsearchTransportClientDecorator();
- public static final Tracer TRACER = OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto");
+ public static final Tracer TRACER =
+ OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto.elasticsearch");
@Override
protected String service() {

MODIFY
instrumentation/jaxrs-client/jaxrs-client-2.0/src/main/java/io/opentelemetry/auto/instrumentation/jaxrs/JaxRsClientDecorator.java
instrumentation/jaxrs-client/jaxrs-client-2.0/src/main/java/io/opentelemetry/auto/instrumentation/jaxrs/JaxRsClientDecorator.java
@@ -27,8 +27,7 @@ public class JaxRsClientDecorator
public static final JaxRsClientDecorator DECORATE = new JaxRsClientDecorator();
public static final Tracer TRACER =
- OpenTelemetry.getTracerFactory()
- .get("io.opentelemetry.instrumentation.auto.jaxrs-client-2.0");
+ OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto.jaxrs-client-2.0");
@Override
protected String getComponentName() {

MODIFY
instrumentation/logback-1.0/src/main/java/io/opentelemetry/auto/instrumentation/logback/LogbackSpans.java
instrumentation/logback-1.0/src/main/java/io/opentelemetry/auto/instrumentation/logback/LogbackSpans.java
@@ -30,7 +30,7 @@ import lombok.extern.slf4j.Slf4j;
public class LogbackSpans {
private static final Tracer TRACER =
- OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto");
+ OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto.logback-1.0");
public static void capture(final ILoggingEvent event) {

MODIFY
instrumentation/rmi/src/main/java/io/opentelemetry/auto/instrumentation/rmi/server/RmiServerDecorator.java
instrumentation/rmi/src/main/java/io/opentelemetry/auto/instrumentation/rmi/server/RmiServerDecorator.java
@@ -24,7 +24,7 @@ public class RmiServerDecorator extends ServerDecorator {
public static final RmiServerDecorator DECORATE = new RmiServerDecorator();
public static final Tracer TRACER =
- OpenTelemetry.getTracerFactory().get("io.opentelemetry.instrumentation.auto.rmi");
+ OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto.rmi");
@Override
protected String getSpanType() {

MODIFY
instrumentation/servlet/src/main/java/io/opentelemetry/auto/instrumentation/servlet/dispatcher/RequestDispatcherDecorator.java
instrumentation/servlet/src/main/java/io/opentelemetry/auto/instrumentation/servlet/dispatcher/RequestDispatcherDecorator.java
@@ -21,7 +21,8 @@ import io.opentelemetry.trace.Tracer;
public class RequestDispatcherDecorator extends BaseDecorator {
public static final RequestDispatcherDecorator DECORATE = new RequestDispatcherDecorator();
- public static final Tracer TRACER = OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto");
+ public static final Tracer TRACER =
+ OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto.servlet");
@Override
protected String getSpanType() {

MODIFY
instrumentation/servlet/src/main/java/io/opentelemetry/auto/instrumentation/servlet/filter/FilterDecorator.java
instrumentation/servlet/src/main/java/io/opentelemetry/auto/instrumentation/servlet/filter/FilterDecorator.java
@@ -21,7 +21,8 @@ import io.opentelemetry.trace.Tracer;
public class FilterDecorator extends BaseDecorator {
public static final FilterDecorator DECORATE = new FilterDecorator();
- public static final Tracer TRACER = OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto");
+ public static final Tracer TRACER =
+ OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto.servlet");
@Override
protected String getSpanType() {

MODIFY
instrumentation/servlet/src/main/java/io/opentelemetry/auto/instrumentation/servlet/http/HttpServletDecorator.java
instrumentation/servlet/src/main/java/io/opentelemetry/auto/instrumentation/servlet/http/HttpServletDecorator.java
@@ -21,7 +21,8 @@ import io.opentelemetry.trace.Tracer;
public class HttpServletDecorator extends BaseDecorator {
public static final HttpServletDecorator DECORATE = new HttpServletDecorator();
- public static final Tracer TRACER = OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto");
+ public static final Tracer TRACER =
+ OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto.servlet");
@Override
protected String getSpanType() {

MODIFY
instrumentation/servlet/src/main/java/io/opentelemetry/auto/instrumentation/servlet/http/HttpServletResponseDecorator.java
instrumentation/servlet/src/main/java/io/opentelemetry/auto/instrumentation/servlet/http/HttpServletResponseDecorator.java
@@ -21,7 +21,8 @@ import io.opentelemetry.trace.Tracer;
public class HttpServletResponseDecorator extends BaseDecorator {
public static final HttpServletResponseDecorator DECORATE = new HttpServletResponseDecorator();
- public static final Tracer TRACER = OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto");
+ public static final Tracer TRACER =
+ OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto.servlet");
@Override
protected String getSpanType() {

MODIFY
instrumentation/spring-webflux-5.0/src/main/java8/io/opentelemetry/auto/instrumentation/springwebflux/server/SpringWebfluxHttpServerDecorator.java
instrumentation/spring-webflux-5.0/src/main/java8/io/opentelemetry/auto/instrumentation/springwebflux/server/SpringWebfluxHttpServerDecorator.java
@@ -26,8 +26,7 @@ public class SpringWebfluxHttpServerDecorator extends ServerDecorator {
public static final SpringWebfluxHttpServerDecorator DECORATE =
new SpringWebfluxHttpServerDecorator();
public static final Tracer TRACER =
- OpenTelemetry.getTracerFactory()
- .get("io.opentelemetry.instrumentation.auto.spring-webflux-5.0");
+ OpenTelemetry.getTracerFactory().get("io.opentelemetry.auto.spring-webflux-5.0");
@Override
protected String getSpanType() {

Fix tracer names to match others (#249)