Report the java vm name as the interpreter

This commit is contained in:
Tyler Benson 2017-07-20 15:42:16 -07:00
parent 8f794f8364
commit b2347f1170
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ import lombok.extern.slf4j.Slf4j;
public class DDTracer extends ThreadLocalActiveSpanSource implements io.opentracing.Tracer { 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_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; public static final String CURRENT_VERSION;
static { static {

View File

@ -91,6 +91,7 @@ public class DDApi {
httpCon.setRequestProperty("Content-Type", "application/json"); httpCon.setRequestProperty("Content-Type", "application/json");
httpCon.setRequestProperty("Datadog-Meta-Lang", "java"); httpCon.setRequestProperty("Datadog-Meta-Lang", "java");
httpCon.setRequestProperty("Datadog-Meta-Lang-Version", DDTracer.JAVA_VERSION); 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); httpCon.setRequestProperty("Datadog-Meta-Tracer-Version", DDTracer.CURRENT_VERSION);
return httpCon; return httpCon;
} }