Report the java vm name as the interpreter
This commit is contained in:
parent
8f794f8364
commit
b2347f1170
|
@ -26,6 +26,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||
public class DDTracer extends ThreadLocalActiveSpanSource implements io.opentracing.Tracer {
|
||||
|
||||
public static final String JAVA_VERSION = System.getProperty("java.version", "unknown");
|
||||
public static final String JAVA_VM_NAME = System.getProperty("java.vm.name", "unknown");
|
||||
public static final String CURRENT_VERSION;
|
||||
|
||||
static {
|
||||
|
|
|
@ -91,6 +91,7 @@ public class DDApi {
|
|||
httpCon.setRequestProperty("Content-Type", "application/json");
|
||||
httpCon.setRequestProperty("Datadog-Meta-Lang", "java");
|
||||
httpCon.setRequestProperty("Datadog-Meta-Lang-Version", DDTracer.JAVA_VERSION);
|
||||
httpCon.setRequestProperty("Datadog-Meta-Lang-Interpreter", DDTracer.JAVA_VM_NAME);
|
||||
httpCon.setRequestProperty("Datadog-Meta-Tracer-Version", DDTracer.CURRENT_VERSION);
|
||||
return httpCon;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue