-
Notifications
You must be signed in to change notification settings - Fork 870
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
Flink with auto instrumentation throws NotSerializableException on GlobalOpenTelemetry$ObfuscatedOpenTelemetry #7597
Comments
hi @MosheElisha! can you put together a small repro that can be used to investigate? it's unclear to me why |
Thanks, @trask . I will try to create a small repo but it isn't easy. |
if you could build from git and narrow down the commit that would be very helpful |
I would guess that it is probably #6533 Try with |
Thanks, @laurit ! You are correct. With this flag, I was able to use 1.18.0 and also 1.22.1. I hope now the issue is clear to you. BTW - I am currently using |
Resolves #7597 I wasn't able to reproduce this. Figuring out how to run beam, flink and kafka together feels like too much effort. Without reproducing it is too hard to tell why the configuration is serialized, but my hunch is that it is enough to ensure that the configuration can be serialized.
Thanks, @laurit ! I can help with verifying the fix once a new release is available. |
Hi @laurit , I used the javaagent from the nightly build and removed the
|
Hopefully resolves #7597 Without reproducing the issue it is hard to tell whether this will help. Another issue that could arise is that we add our metrics class in `metric.reporters` property which will probably break if this configuration is used to build consumer or producer after deserializing as our classes don't seem to be available there. If this fails we'll need to ask the issue reporter for instructions how to reproduce and find a different strategy for fixing this.
Thanks, @laurit ! I can confirm that Flink started properly with this new build. |
Describe the bug
Deploying a task on Apache Flink Task Manager with javaagent opentelemetry-javaagent.jar version 1.22.1 results in the exception below.
With opentelemetry-javaagent.jar version 1.13.1, the issue was not there.
What version are you using?
opentelemetry-javaagent.jar version 1.22.1
Environment
Apache Flink version: 1.14.6, Scala: 2.12
JVM: OpenJDK 64-Bit Server VM - Eclipse Adoptium - 11/11.0.16.1+1
Additional context
The text was updated successfully, but these errors were encountered: