Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use server span when determining status from code (#1973)
* Use server span when determining status from code Switches to `SpanStatusFromHTTPStatusCodeAndSpanKind` with a span kind of `SpanKindServer` so that 4xx status codes don't get labelled as errors. Since these codes represent client errors, they make it difficult to differentiate bad server behavior from bad client behavior. * Add CHANGELOG entry * Add test to verify that 4xx does not set error on span Adds a test to verify that the span created by a request that returns status "not found" is not an error span. * Test that span code is explicitly unset Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
- Loading branch information
1 parent
20f04ef
commit e841342
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters