Skip to content

feat(boto3): Add Lambda extension - #8117

Open
pabloDeputter wants to merge 5 commits into
major/3.0from
pablo/boto3-add-lambda-extension
Open

pabloDeputter wants to merge 5 commits into
major/3.0from
pablo/boto3-add-lambda-extension

Conversation

@pabloDeputter

@pabloDeputter pabloDeputter commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds the following attributes:

Other changes:

  • FunctionError sets error.type=lambda_function_error
  • whenever ClientContext.custom is available, we add trace propagation headers; trace continuing in aws-lambda integration is not done yet

Issues

Resolves #8069
Part of #8071

@pabloDeputter pabloDeputter changed the title Pablo/boto3 add lambda extension feat(boto3): Add Lambda extension Oct 23, 2026
@pabloDeputter
pabloDeputter marked this pull request as ready for review October 23, 2026 14:45
@pabloDeputter
pabloDeputter requested a review from a team as a code owner October 23, 2026 14:45
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 57643 passed | ⏭️ 2979 skipped | Total: 60622 | Pass Rate: 95.09% | Execution Time: 158m 30s

All tests are passing successfully.

✅ Patch coverage is 98.80% (82 of 83 changed executable lines covered; target 80%).
Project statement coverage is 90.20% (down 0.09 percentage points from base (c15fd9b) to head (7ff8eb7)).

Changed files with executable lines (7)
File Patch coverage Changed executable lines
sentry_sdk/integrations/boto3/_utils.py 88.89% 8/9 covered; missed: 55; partial branches: 52
sentry_sdk/integrations/boto3/services/lambda.py 100.00% 44/44 covered; partial branches: 46
sentry_sdk/consts.py 100.00% 10/10 covered
sentry_sdk/integrations/boto3/_client.py 100.00% 7/7 covered
sentry_sdk/integrations/boto3/_instrumentation.py 100.00% 6/6 covered
sentry_sdk/integrations/boto3/_services/base.py 100.00% 4/4 covered
sentry_sdk/integrations/boto3/_services/registry.py 100.00% 3/3 covered
Coverage diff
@@            Coverage Diff             @@
##        master     #8117       +/-##
==========================================
- Coverage    90.29%    90.20%    -0.09%
==========================================
  Files          203       198        -5
  Tracked lines     26883     21389     -5494
  Branches     10046      7402     -2644
==========================================
- Hits         24272     19292     -4980
+ Misses        2611      2097      -514
+ Partials      1518      1240      -278

Generated by Coverage Action

sentrivana added a commit that referenced this pull request Oct 29, 2026
### Description

Removes `AwsCallContext.service_id_hyphenized` from
`sentry_sdk/integrations/boto3/_context.py`. It's still computed on
every call (`service_id.hyphenize()`), but on `major/3.0` nothing reads
it.

It had two readers. One was the `aws.service_id` span tag, which #7261
("Drop tags auto-set by the SDK") removed. The other was the span name:
#7800 ("align span names with OTel conventions") switched that to
`ctx.service_id`, so the hyphenized value lost its last reader. This
removes the slot, the attribute and the `hyphenize()` call.

**Evidence**
- On `major/3.0`, `git grep -w service_id_hyphenized` matches only the
three lines in `_context.py` that set it up.
- The open boto3 extension PRs against `major/3.0` (#8117 SQS, #8137
Lambda) don't reference it.

On `master`, `service_id_hyphenized` is still used for the span name and
the tag, so this only applies to `major/3.0`.

#### Issues
n/a

<!-- junior-request-attribution:start -->
via **Ivana Kellyer**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0BTREZTS2Z%3A1793270559.842119 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0BTREZTS2Z%3A1793270559.842119)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0BTREZTS2Z%3A1793270559.842119/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Ivana Kellyer <ivana.kellyer@sentry.io>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant