remove lang tag
MODIFY
dd-trace/src/main/java/com/datadoghq/trace/DDSpanContext.java
dd-trace/src/main/java/com/datadoghq/trace/DDSpanContext.java
@@ -19,7 +19,6 @@ import lombok.extern.slf4j.Slf4j;
@Slf4j
public class DDSpanContext implements io.opentracing.SpanContext {
- public static final String LANGUAGE_FIELDNAME = "lang";
// Opentracing attributes
private final long traceId;
private final long spanId;

MODIFY
dd-trace/src/main/java/com/datadoghq/trace/DDTracer.java
dd-trace/src/main/java/com/datadoghq/trace/DDTracer.java
@@ -13,12 +13,7 @@ import io.opentracing.BaseSpan;
import io.opentracing.SpanContext;
import io.opentracing.propagation.Format;
import io.opentracing.util.ThreadLocalActiveSpanSource;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Queue;
+import java.util.*;
import java.util.concurrent.ThreadLocalRandom;
import lombok.extern.slf4j.Slf4j;
@@ -356,11 +351,6 @@ public class DDTracer extends ThreadLocalActiveSpanSource implements io.opentrac
parentTrace,
DDTracer.this);
- // Force the lang meta
- if (context.getBaggageItem(DDSpanContext.LANGUAGE_FIELDNAME) == null) {
- context.setBaggageItem(DDSpanContext.LANGUAGE_FIELDNAME, "java");
- }
-
return context;
}
}

MODIFY
dd-trace/src/test/java/com/datadoghq/trace/DDSpanBuilderTest.java
dd-trace/src/test/java/com/datadoghq/trace/DDSpanBuilderTest.java
@@ -91,16 +91,6 @@ public class DDSpanBuilderTest {
.isEqualTo(Thread.currentThread().getId());
}
- @Test
- public void shouldAddLangMeta() {
-
- final String expectedName = "fakeName";
-
- final DDSpan span = tracer.buildSpan(expectedName).withServiceName("foo").startManual();
-
- assertThat(span.getBaggageItem(DDSpanContext.LANGUAGE_FIELDNAME)).isEqualTo("java");
- }
-
@Test
public void shouldBuildSpanTimestampInNano() {

remove lang tag