dd-trace-java
dd-trace-java copied to clipboard
How to run DD trace on mule2
DataDog support suggested that I post this question here:
I've been able to build and deploy a mule3 docker container with DataDog tracing included, but we also run an older mule2 service we'd like to instrument with tracing. However, I'm seeing a difference at runtime between mule3 and mule2:
mule3 has an opentracing-api Tracer registered (datadog.trace.instrumentation.opentracing32.OTTracer), so calls to the tracing API from our code report data off to DataDog as expected.
mule2 has no DataDog tracer registered, so I get the default 'NoopTracer' instead. So nothing is being traced from mule2 to DataDog as a result.
I'm using the exact same parameters in my docker script to start mule2 and start mule3, as well as in my mule wrapper.conf, so I'm not sure what the difference is at this point.
If you have any experience or insights here as to why the DataDog tracer is incompatible with mule2 and what I could do to get around this, I'd appreciate hearing about it.
Thanks!