Skip to content

Fix Netty connection failure handling when listener is lambda - #3569

Merged
laurit merged 3 commits into
open-telemetry:mainfrom
laurit:netty-connection-failure-handling
Jul 23, 2021
Merged

Fix Netty connection failure handling when listener is lambda#3569
laurit merged 3 commits into
open-telemetry:mainfrom
laurit:netty-connection-failure-handling

Conversation

@laurit

@laurit laurit commented Jul 14, 2021

Copy link
Copy Markdown
Contributor

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 <mrzeszutek@splunk.com>
@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