By default, report to the DD Agent
package com.datadoghq.trace.resolver;
import com.datadoghq.trace.DDTracer;
+import com.datadoghq.trace.sampling.AllSampler;
+import com.datadoghq.trace.writer.DDAgentWriter;
import com.google.auto.service.AutoService;
import io.opentracing.Tracer;
import io.opentracing.contrib.tracerresolver.TracerResolver;
@@ -11,6 +13,7 @@ public class DDTracerResolver extends TracerResolver{
@Override
protected Tracer resolve() {
- return new DDTracer();
+ // TODO find a way to close the reader ...
+ return new DDTracer(new DDAgentWriter(), new AllSampler());
}
}
