typo in class name
MODIFY
dd-trace/src/main/java/com/datadoghq/trace/resolver/DDTracerFactory.java
dd-trace/src/main/java/com/datadoghq/trace/resolver/DDTracerFactory.java
@@ -7,7 +7,7 @@ import com.datadoghq.trace.sampling.RateSampler;
import com.datadoghq.trace.sampling.Sampler;
import com.datadoghq.trace.writer.DDAgentWriter;
import com.datadoghq.trace.writer.DDApi;
-import com.datadoghq.trace.writer.LoggingWritter;
+import com.datadoghq.trace.writer.LoggingWriter;
import com.datadoghq.trace.writer.Writer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -25,7 +25,7 @@ public class DDTracerFactory {
public static final String CONFIG_PATH = "dd-trace.yaml";
private static final String DD_AGENT_WRITER_TYPE = DDAgentWriter.class.getSimpleName();
- private static final String LOGGING_WRITER_TYPE = LoggingWritter.class.getSimpleName();
+ private static final String LOGGING_WRITER_TYPE = LoggingWriter.class.getSimpleName();
private static final String ALL_SAMPLER_TYPE = AllSampler.class.getSimpleName();
private static final String RATE_SAMPLER_TYPE = RateSampler.class.getSimpleName();
@@ -46,7 +46,7 @@ public class DDTracerFactory {
if (DD_AGENT_WRITER_TYPE.equals(c.getType())) {
writer = new DDAgentWriter(new DDApi(c.getHost(DDAgentWriter.DEFAULT_HOSTNAME), c.getPort(DDAgentWriter.DEFAULT_PORT)));
} else if (LOGGING_WRITER_TYPE.equals(c.getType())) {
- writer = new LoggingWritter();
+ writer = new LoggingWriter();
} else {
writer = DDTracer.UNASSIGNED_WRITER;
}

RENAME
dd-trace/src/main/java/com/datadoghq/trace/writer/LoggingWritter.java
dd-trace/src/main/java/com/datadoghq/trace/writer/LoggingWriter.java
@@ -10,9 +10,9 @@ import com.google.auto.service.AutoService;
import io.opentracing.Span;
@AutoService(Writer.class)
-public class LoggingWritter implements Writer{
+public class LoggingWriter implements Writer{
- private static final Logger logger = LoggerFactory.getLogger(LoggingWritter.class.getName());
+ private static final Logger logger = LoggerFactory.getLogger(LoggingWriter.class.getName());
@Override
public void write(List<Span> trace) {

MODIFY
dd-trace/src/test/java/ExampleWithLoggingWriter.java
dd-trace/src/test/java/ExampleWithLoggingWriter.java
-import java.util.ArrayList;
-import java.util.List;
-
import com.datadoghq.trace.DDTracer;
import com.datadoghq.trace.sampling.AllSampler;
-import com.datadoghq.trace.writer.DDAgentWriter;
-import com.datadoghq.trace.writer.LoggingWritter;
-import com.datadoghq.trace.writer.Writer;
+import com.datadoghq.trace.writer.LoggingWriter;
import io.opentracing.Span;
@@ -13,7 +8,7 @@ public class ExampleWithLoggingWriter {
public static void main(String[] args) throws Exception {
- DDTracer tracer = new DDTracer(new LoggingWritter(), new AllSampler());
+ DDTracer tracer = new DDTracer(new LoggingWriter(), new AllSampler());
Span parent = tracer
.buildSpan("hello-world")

typo in class name