-
Notifications
You must be signed in to change notification settings - Fork 873
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
Fix netty issue #6469
Fix netty issue #6469
Conversation
Is there an easy way to reproduce this? I suspect that the real error might be around here: https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/netty/netty-4.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/v4_1/NettyChannelPipelineInstrumentation.java#L128 Removing the
Reactor-netty's |
@mateuszrzeszutek thx! that makes a lot of sense, I pushed a new fix |
@@ -20,6 +22,9 @@ public final class NettySslInstrumentationHandler extends ChannelDuplexHandler { | |||
private static final Class<?> SSL_HANDSHAKE_COMPLETION_EVENT; | |||
private static final MethodHandle GET_CAUSE; | |||
|
|||
private static final VirtualField<ChannelHandler, ChannelHandler> instrumentationHandlerField = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps here should be a comment that the same virtual field is used elsewhere. Currently it is not obvious what it is for because in this file this virtual field is only set to null.
* Fix * Comment
* Fix * Comment
* Fix * Comment
App was failing due to:
because the
NettySslInstrumentationHandler
was removing itself.I'm not sure why it was removing itself, but tests still pass without that code, and my test app no longer fails.