-
Notifications
You must be signed in to change notification settings - Fork 674
feat(boto3): Add response, retry, and error span attributes #7499
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
Open
pabloDeputter
wants to merge
10
commits into
pablo/improve-boto3-call-lifecycle
from
pablo/add-boto3-response-retry-error-attributes
+490
−15
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d62036b
ref(boto3): simplify client span lifecycle and header handling
pabloDeputter 96c2ef9
feat(boto3): add attributes to `consts.py`
pabloDeputter 52c3f84
merge changes
pabloDeputter 433e7ad
add tests
pabloDeputter 8db0fed
patch correct methods
pabloDeputter 98b3086
lint
pabloDeputter 7d6543a
use ordered search for request id and hist id
pabloDeputter 8af1b42
ref(boto3): remove redundant span checks during enrichment
pabloDeputter 82258cc
fix duplicates when merging
pabloDeputter a72a791
use consts and string lookup for `client.getintegration`
pabloDeputter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stream read failures omit error.type on legacy parent spans
Set error attributes on the parent span in both modes; the StreamedSpan guard drops error.type from the legacy boto client span even though that span is still marked internal_error.
Evidence
finish_span(error)computes_get_error_attributes(error)and always applies them tostreaming_span.if isinstance(span, StreamedSpan), so legacySpanparents skip_set_span_attributes._finish_span(span, error)still sets the legacy parent status toINTERNAL_ERRORwithouterror.type._client.pyset_get_error_attributeson the client span in both modes, so stream-read failures are inconsistent.test_streaming_body_read_failure_finishes_stream_spanonly assertsERROR_TYPEon the client span whenspan_streaming=True.Identified by Warden · code-review · VG3-QTU