Adding a tracer resolver (naive)
MODIFY
pom.xml
pom.xml
<version>4.9</version>
</dependency>
+ <dependency>
+ <groupId>com.google.auto.service</groupId>
+ <artifactId>auto-service</artifactId>
+ <version>1.0-rc3</version>
+ </dependency>
+
<!-- Testing dependencies -->
<dependency>
<groupId>junit</groupId>
<version>2.7.22</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>io.opentracing.contrib</groupId>
+ <artifactId>opentracing-tracerresolver</artifactId>
+ <version>0.0.3</version>
+ </dependency>
</dependencies>
<build>

ADD
src/main/java/com/datadoghq/trace/resolver/DDTracerResolver.java
+package com.datadoghq.trace.resolver;
+
+import com.datadoghq.trace.DDTracer;
+import com.google.auto.service.AutoService;
+import io.opentracing.Tracer;
+import io.opentracing.contrib.tracerresolver.TracerResolver;
+
+
+@AutoService(TracerResolver.class)
+public class DDTracerResolver extends TracerResolver{
+
+ @Override
+ protected Tracer resolve() {
+ return new DDTracer();
+ }
+}

Adding a tracer resolver (naive)