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(aws-lambda): Add Lambda runtime resource attributes by pabloDeputter · Pull Request #7941 · getsentry/sentry-python Conversation
|
Coverage Results 📊✅ 56199 passed | ⏭️ 2872 skipped | Total: 59071 | Pass Rate: 95.14% | Execution Time: 155m 37s 📊 Comparison with Base Branch
All tests are passing successfully. ❌ Patch coverage is 25.00% (6 of 24 changed executable lines covered; target 80%). Changed files with executable lines (2)
Coverage diff@@ Coverage Diff @@ ## master #7941 +/-## ========================================== - Coverage 90.25% 90.00% -0.25% ========================================== Files 202 197 -5 Tracked lines 26660 20983 -5677 Branches 9926 7208 -2718 ========================================== - Hits 24062 18885 -5177 + Misses 2598 2098 -500 + Partials 1510 1234 -276 Generated by Coverage 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 an error while loading. Please reload this page.
2060499 to
d5b8521
Compare
There was an error while loading. Please reload this page.
d5b8521 to
c191469
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
See comment 🙏🏻
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return _lambda_metadata_cache[1] | ||
|
|
||
| # bearer token is required to prevent SSRF. | ||
| response = _lambda_metadata_http.request( |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We can't make requests from the SDK. We need to only work with what we can intercept from the natural execution of a user's program without creating side effects like network or DB traffic that are not necessary for making the SDK work (e.g. sending events to Sentry).
Can we get this info from elsewhere? If not, let's not add it.
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.
ok yeah makes sense, didn't think about this.
It's not really available anywhere else, so I'll remove it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
f7d4930 to
295d5c3
Compare
There was an error while loading. Please reload this page.
… span (#8229) ### Description The Lambda span set `messaging.batch.message_count` to `1` for every event that isn't a list, and to `len(event)` for a top-level list. An SQS or SNS delivery is a dict with `Records`, so a batch of 10 messages reported 1. HTTP calls and direct invocations reported a batch they don't have. This PR removes the attribute from the Lambda span. The count belongs on messaging spans, as in the OTel messaging conventions: - boto3 `ReceiveMessage` and batch-send spans already set it (#8137, #8142). - For SQS/SNS-triggered Lambdas, the `queue.process` span in #8223 sets it. The JS SDK doesn't set it on the Lambda span either. The attribute was added in 3.0 (#7941) and never shipped in 2.x, so no released behavior changes. Replaces #8219 (same commits). GitHub never ran CI on #8219. **Note for review:** this is narrower than PY-3015, which asks to keep the attribute for SQS/SNS deliveries. @alexander-alderman-webb, please confirm that's OK. #### Issues * resolves: PY-3015 <!-- junior-request-attribution:start --> via @dingsdax. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0C9X9V5NMT%3A1793904671.980379 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0C9X9V5NMT%3A1793904671.980379) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0C9X9V5NMT%3A1793904671.980379/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Johannes Daxböck <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
feat(aws-lambda): Add AWS cloud attributes
There was an error while loading. Please reload this page.