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

contrib/net/http: errCheck function #1716

Merged
merged 4 commits into from
Mar 21, 2023

Conversation

johanneswuerbach
Copy link
Contributor

@johanneswuerbach johanneswuerbach commented Feb 3, 2023

What does this PR do?

Adds an errCheck function to the net/http roundtripper to decide whether a span should be treated as errored or not.

Motivation

This applies the same logic introduced by #1315 on sql tracer. We need this otherwise DD raises an issue for every kind of error.

Describe how to test/QA your changes

Additional unit test.

Reviewer's Checklist

  • If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
  • Changed code has unit tests for its functionality.
  • If this interacts with the agent in a new way, a system test has been added.

@johanneswuerbach
Copy link
Contributor Author

@knusbaum sorry for the direct ping, but any chance to get this or something similar merge? This is currently polluting our error tracking :-/

katiehockman
katiehockman previously approved these changes Feb 14, 2023
contrib/net/http/option.go Outdated Show resolved Hide resolved
@katiehockman katiehockman added this to the v1.48.0 milestone Feb 14, 2023
@katiehockman katiehockman added the apm:ecosystem contrib/* related feature requests or bugs label Feb 14, 2023
@katiehockman katiehockman merged commit 62a9886 into DataDog:main Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:ecosystem contrib/* related feature requests or bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants