-
Notifications
You must be signed in to change notification settings - Fork 890
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
OpenTelemetry Automatic instrumentation - General usability question #8227
Comments
this isn't supported out-of-the-box since it's not part of the OpenTelemetry specification (yet?), but you could implement it using a javaagent extension using the new
I'm not sure if anyone has tried this. It may not work since we add the javaagent jar to the bootstrap classpath, and that could be problematic if the javaagent classes are in an uber jar. Let us know how if you have any success / run into any problems. |
This really helps. Will try out :) |
May be I missed to convey my requirement clearly. What I wanted is "use automatic instrumentation and get the traceId inside the service either by adding opentelemetry api jars as dependency or someother way". |
We have that feature already -- you can add the |
I haven't tried |
Can you point some examples. Not sure whether , i understood it rightly |
This runtime attach has a limitation "The application is running on a JRE (a JDK is necessary, see raphw/byte-buddy#374)". Usually runtime contains JRE not the JDK so it can fail in higher environment |
I don't believe anybody has tried this before, so there is no sample code. |
This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed automatically if there is no response from the author within 7 additional days from this comment. |
I'm using automatic instrumentation in my springboot app.
Would like to return the traceId being generated from Opentelemetry agents in my application response header so it will be used for request tracing.
Currently adding -javaagent for automatic instrumentation, would like to include this javaagent jar in classpath and enforce this instrumentation via manifest.mf
SpringBoot maven plugin creates a executable jar , in that i wanted to include this Launcher-Agent-Class to point to the opentelemetry agent class so that it can be automatically added whenever the jar is executed
The text was updated successfully, but these errors were encountered: