GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(boto3): Add common OTel AWS client attributes by pabloDeputter · Pull Request #7481 · getsentry/sentry-python Conversation
|
Codecov Results 📊✅ 132565 passed | ⏭️ 7220 skipped | Total: 139785 | Pass Rate: 94.83% | Execution Time: 446m 31s 📊 Comparison with Base Branch
➖ Removed Tests (60)View removed tests
All tests are passing successfully. ✅ Patch coverage is 92.98%. Project has 2561 uncovered lines. Files with missing lines (2)
Coverage diff@@ Coverage Diff @@ ## master #PR +/-## ========================================== + Coverage 90.30% 90.32% +0.02% ========================================== Files 195 199 +4 Lines 26261 26469 +208 Branches 9798 9846 +48 ========================================== + Hits 23714 23908 +194 - Misses 2547 2561 +14 - Partials 1485 1493 +8 Generated by Codecov Action |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Stale Bugbot comment from a previous run.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
9fe9acf to
4e8f427
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Stale Bugbot comment from a previous run.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| except BaseException as exc: | ||
| if span is not None: | ||
| with capture_internal_exceptions(): | ||
| _finish_active_http_child_span(span) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Why are we ending the stdlib span here?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We finish the HTTP span before the parent boto3 span so that the correct order is preserved. Otherwise the HTTP span would be kept active until the whole response is read, while the parent boto3 span finishes first; afterwards when the HTTP span finishes, it will restore the already-finished parent as current, causing subsequent calls to be parented incorrectly.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I can send a screenshot from sentry maybe to show against latest release
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
aa1d65a to
939a3f8
Compare
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Stale Bugbot comment from a previous run.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Stale Bugbot comment from a previous run.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Stale Bugbot comment from a previous run.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ddf5deb to
351e3b6
Compare
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Stale Bugbot comment from a previous run.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 64d7159. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
1824d8f to
3d95ef4
Compare
3d95ef4 to
f3ed486
Compare
| ) -> "Attributes": | ||
| attributes: "Attributes" = {} | ||
|
|
||
| # `rpc.service` is deprecated in OTel, but js still uses it. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
They likely still use it because it's listed as a valid attribute in our conventions.
Not something for this pull request, but it might be worth raising this in our Slack channel for the conventions to see if this is something that we should look to deprecate as well.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I was gonna make a collection of all new attributes that will be added during this project (including all the service-specific as well) to check which ones contain sensitive data and whether they already map to existing data collection categories. So I'll add rpc.service to that document as well.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| assert span["name" if span_streaming else "description"] == span_name | ||
| assert attributes[SPANDATA.RPC_SERVICE] == rpc_service | ||
| assert attributes[SPANDATA.RPC_METHOD] == rpc_method | ||
| assert attributes[SPANDATA.RPC_SYSTEM_NAME] == "aws-api" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
A small nitpick here (feel free to ignore): you could update the hard-coded string here to be the constant that you created in the other file.
| assert attributes[SPANDATA.RPC_SYSTEM_NAME] == "aws-api" | |
| assert attributes[SPANDATA.RPC_SYSTEM_NAME] == _AWS_RPC_SYSTEM_NAME |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Yupp, I'll move that to consts.py as well
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if span_streaming: | ||
| _assert_one_failed_span(client_spans, span_streaming=True) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Small cleanup suggestion: you could remove this conditional and the extra line inside the block by assigning the span_streaming variable to equal span_streaming:
| if span_streaming: | |
| _assert_one_failed_span(client_spans, span_streaming=True) | |
| if span_streaming: | |
| _assert_one_failed_span(client_spans, span_streaming=span_streaming) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
4562898 to
dca0a7b
Compare
dca0a7b to
4a23000
Compare
4a23000 to
8b758b2
Compare
There was an error while loading. Please reload this page.
8b758b2 to
6868ffd
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
feat(boto3): Add generic attributes that are common across services
There was an error while loading. Please reload this page.