-
In code recently written, we want to push the traces to GCE stackdriver. As I started assuming that I could do without any instrumentation (nor even knew it existed), it was written in our codebase. Unfortunately, this became a dead end, because of over reliance on local coroutine scopes and opentelemetry-java-instrumentation was found. So there are two problem I want to solve by adding a trace exports in the instrumented code:
The code I wrote unfortunately depends on a lot of stuff not easily extracted into a separate jar ready for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @tobias- - can you first clarify, it sounds like you wrote a custom exporter for Stackdriver, meaning you aren't using the official exporter here? https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/tree/master/exporters/auto And to confirm, you indeed definitely do need to use the code you wrote instead of switching to this? Ideally no, since I'm not sure of a better answer here. https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/master/examples/distro Let me know if you have any initial thoughts or we can try to come up with something. |
Beta Was this translation helpful? Give feedback.
Hi @tobias- - can you first clarify, it sounds like you wrote a custom exporter for Stackdriver, meaning you aren't using the official exporter here?
https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/tree/master/exporters/auto
And to confirm, you indeed definitely do need to use the code you wrote instead of switching to this? Ideally no, since I'm not sure of a better answer here.
otel.exporter.jar
is our mechanism for users running a custom exporter. We have another mechanism using custom agent distros which you may want to look at, but it's far more complicated so may be a net loss.https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/master/exam…