-
Notifications
You must be signed in to change notification settings - Fork 5
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
Starting PyroscopeAgent manually causes link errors #10
Comments
One more thing: if I do not prevent my own code from starting the PyroscopeAgent while having
– which sheds a bit more light on the nature of the problem, it looks. I wonder if maybe there's sth wrong with my setup, or perhaps I have misunderstood what can even be achieved with setting |
I think the problem is that
When As far as I can see, the easiest solution is to depend only on See also #9 |
yepp, same problem for me too. Profiling itself works beautifully, I can browse through the icicles in Grafana and see what's going on. But when I want to connect profiles to Tempo (traces), the docs say I have to use otel-profiling-java OTel extension, and combined with pyroscope.jar javaagent it causes the same LinkError. ref.: #1 (comment) P.S. my project is auto-instrumented using k8s pod annotations. |
@bmorris591 Can this be done with current version of pyroscope-otel w/o integrating it into the codebase (i.e. launching it as a javaagent, maybe with JVM params/envs/smth)? |
Environment
Running my app with:
Having
io.pyroscope:agent:0.13.0
JAR in classpath.macOS 14.0 (23A344)
JDK installed through sdkman:
java -version openjdk version "17.0.8" 2023-07-18 LTS OpenJDK Runtime Environment Zulu17.44+15-CA (build 17.0.8+7-LTS) OpenJDK 64-Bit Server VM Zulu17.44+15-CA (build 17.0.8+7-LTS, mixed mode, sharing)
Expected behavior
I can start the
io.pyroscope.PyroscopeAgent
manually and profiling works with opentelemetry integration as intended.Observed behavior
Creating a span fails with the following exception (including just the relevant part):
Additional context
I would like to be able to start the agent manually while otherwise using Pyroscope OTEL integration so that I can configure the
Logger
Pyroscope uses.If I simply switch
-Dotel.pyroscope.start.profiling
totrue
and do not start the agent manually, it looks like everything else works just fine.BTW, a big thank you to all the contributors for this fantastic piece of software!
The text was updated successfully, but these errors were encountered: