Skip to content

Conversation

@mspletz
Copy link
Contributor

@mspletz mspletz commented Aug 14, 2025

What

This pull request improves error handling for Ethon instrumentation by ensuring that spans are properly closed and marked as errors when an exception occurs during the HTTP request execution, before the complete method is called.

Why

Today, we've observed that some ethon.client http POST spans from this otel library continue unexpectedly for a long time (up to 13 hours). This has led us to believe that there are occasions where the perform method ran into an unhandled exception and never properly made it to the complete method to close the span.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 14, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@mspletz mspletz changed the title fix: close Ethon span on error fix: improve Ethon exception handling Aug 14, 2025
@kaylareopelle
Copy link
Contributor

Hi @mspletz! Thanks for your contribution! There's a few Rubocop failures that need to be addressed to get the tests to pass.

@mspletz
Copy link
Contributor Author

mspletz commented Aug 25, 2025

👋 I believe I fixed the rubocop failures

Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mspletz!

@kaylareopelle kaylareopelle merged commit 36ea12c into open-telemetry:main Aug 29, 2025
62 checks passed
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