Skip to content

feat(boto3): Add SNS extension - #8142

Open
pabloDeputter wants to merge 5 commits into
pablo/boto3-add-sqs-extensionfrom
pablo/boto3-add-sns-extension
Open

pabloDeputter wants to merge 5 commits into
pablo/boto3-add-sqs-extensionfrom
pablo/boto3-add-sns-extension

Conversation

@pabloDeputter

Copy link
Copy Markdown
Contributor

Description

Adds the SNS extension to the boto3 integration, now SNS Publish and PublishBatch become queue.publish spans so they show up in the Queues insight; all other operations stay on rpc:

  • Publish, PublishBatch: queue.publish, kind producer (default is client), named send <topic>

Adds the following attributes:

  • messaging.system (aws.sns), messaging.operation.type (send) and messaging.operation.name (publish) on the publish APIs (all from OTel)
  • messaging.batch.message_count on PublishBatch, messaging.message.id on Publish
  • aws.sns.topic.arn and messaging.destination.name (topic name) on every API with TopicArn, ResourceArn or a topic TargetArn; destination name also from CreateTopic's Name

Other changes:

  • PhoneNumber and platform-endpoint TargetArn publishes get messaging.destination.name=[Filtered] (send [Filtered])

Issues

Resolves #7573 & PY-2804

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 57877 passed | ⏭️ 2985 skipped | Total: 60862 | Pass Rate: 95.1% | Execution Time: 157m 7s

All tests are passing successfully.

✅ Patch coverage is 100.00% (51 of 51 changed executable lines covered; target 80%).
Project statement coverage is 90.21% (down 0.08 percentage points from base (9235dd0) to head (4738824)).

Changed files with executable lines (2)
File Patch coverage Changed executable lines
sentry_sdk/consts.py 100.00% 2/2 covered
sentry_sdk/integrations/boto3/_services/sns.py 100.00% 49/49 covered
Coverage diff
@@            Coverage Diff             @@
##        master     #8142       +/-##
==========================================
- Coverage    90.29%    90.21%    -0.08%
==========================================
  Files          203       198        -5
  Tracked lines     26883     21423     -5460
  Branches     10046      7444     -2602
==========================================
- Hits         24272     19325     -4947
+ Misses        2611      2098      -513
+ Partials      1518      1240      -278

Generated by Coverage Action

@pabloDeputter
pabloDeputter marked this pull request as ready for review October 28, 2026 15:05
@pabloDeputter
pabloDeputter requested a review from a team as a code owner October 28, 2026 15:05

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