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

The net/http integration doesn't annotate requests that raise exceptions #888

Closed
djmb opened this issue Dec 17, 2019 · 3 comments
Closed
Labels
bug Involves a bug community Was opened by a community member integrations Involves tracing integrations
Projects
Milestone

Comments

@djmb
Copy link

djmb commented Dec 17, 2019

If a net/http request raises an exception (e.g. Net::OpenTimeout), then the span is not annotated with tags from the request.

See:

annotate_span!(span, req, response)

annotate_span! is called after the request completes and will be missed if an exception is raised. Since some of the annotations rely on having a response it should maybe be split into two parts, one called before the request is issued and one after.

@marcotc marcotc added bug Involves a bug integrations Involves tracing integrations community Was opened by a community member labels Dec 17, 2019
@marcotc
Copy link
Member

marcotc commented Dec 17, 2019

Thank you @djmb for your report.

I was able to create a test case to reproduce the issue.

We'll follow up if we need more information, but I believe the problem is clearly defined here.

@delner
Copy link
Contributor

delner commented Dec 17, 2019

Makes sense to me, thanks for the report @djmb!

@marcotc
Copy link
Member

marcotc commented Jan 22, 2020

👋 @djmb, we've just released v0.32.0 that includes a fix for this issue.

Let us know if the problem still persists after these changes.

@marcotc marcotc closed this as completed Jan 22, 2020
@delner delner added this to Resolved/Closed in Active work Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Involves a bug community Was opened by a community member integrations Involves tracing integrations
Projects
Active work
  
Resolved/Closed
Development

No branches or pull requests

3 participants