Skip to content
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 connection failure handling when listener is lambda #3569

Merged
merged 3 commits into from
Jul 23, 2021

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Jul 14, 2021

This pr removes netty 4.0 & 4.1 ChannelFutureListenerInstrumentation which was responsible for creating connection failure span and instead uses FutureListenerWrappers for the same purpose. The reason behind this is that instrumentations using a matcher like implementsInterface(named("io.netty.channel.ChannelFutureListener")) don't apply to lambdas. For vert.x 4 the listener we want to intercept happens to be a lambda.

laurit and others added 2 commits July 14, 2021 18:15
…o/opentelemetry/javaagent/instrumentation/netty/common/client/AbstractNettyHttpClientTracer.java

Co-authored-by: Mateusz Rzeszutek <[email protected]>
@laurit laurit merged commit 1b5df6d into open-telemetry:main Jul 23, 2021
@laurit laurit deleted the netty-connection-failure-handling branch July 23, 2021 08:21
@trask trask changed the title Netty connection failure handling Netty connection failure handling when callback is lambda Jul 29, 2021
@trask trask changed the title Netty connection failure handling when callback is lambda Netty connection failure handling when listener is lambda Jul 29, 2021
@trask trask changed the title Netty connection failure handling when listener is lambda Fix Netty connection failure handling when listener is lambda Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants