-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Auto" doesn't work with opentelemetry-javaagent v0.9.0 #47
Comments
Hi @kewats! It seems that you're passing the wrong jar in See README Feel free to reopen if you still have issues with using it. |
Hi @nilebox, thanks for your response. I tried with exporter-auto too, but I'm running into the same problem.
I also looked at https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/blob/master/build.gradle to see if I am using the wrong versions. It seems we need to use 0.8.0 of javaagent with 0.9.1 of exporter-auto. However, that leads to |
By looking at the code in java-instrumentation, it requires Factory implementing Line 6 in fb7b39a
This incompatibility is caused by this PR open-telemetry/opentelemetry-java-instrumentation#1187 This is easy to fix:
The bigger problem is that Java agent tooling wasn't released in sync with SDK, that's why we have inconsistent dependency now. |
@kewats feel free to submit a PR fixing this issue if that's urgent. |
Thanks @nilebox for the insight. I will submit a PR soon. |
@nilebox Even after this change and on using the exporter-auto generated with it, I still get this:
Am I missing something more here that needs to be fixed? |
@kewats Looks like the |
@nilebox Looks like we need to supply exporter-trace as xbootclasspath for the agent to pick it up. However, it seems this too is not sufficient.
|
@kewats now you're missing You need all other dependencies in opentelemetry-operations-java/build.gradle Lines 33 to 46 in fb7b39a
path/to/myApp.jar which will include all dependencies.
|
Created an issue #50 for addressing this on our side. |
I am trying to use opentelemetry javaagent and export traces to cloud trace. I am running into "No span exporter found" issues:
Any suggestions on what could I be missing here or ways to investigate this further?
The text was updated successfully, but these errors were encountered: