Skip to content

feat(attributes): Add AWS Lambda, Step Functions and Secrets Manager name attributes - #716

Merged
pabloDeputter merged 2 commits into
mainfrom
pablo/aws-resource-name-attributes
Oct 23, 2026
Merged

pabloDeputter merged 2 commits into
mainfrom
pablo/aws-resource-name-attributes

Conversation

@pabloDeputter

@pabloDeputter pabloDeputter commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Description

Adds the following attributes (non-OTel):

  • aws.lambda.target_function.name: the function a Lambda API call acts on (GetFunction, UpdateFunctionCode, …)
  • aws.step_functions.state_machine.name
  • aws.step_functions.activity.name
  • aws.secretsmanager.secret.name: from the Name Secrets Manager returns

Why

Next PR (#717) in stack adds descriptions for AWS SDK spans by service, operation and resource, e.g. SecretsManager.GetSecretValue db-password. Other services already have a short name for this (aws.s3.bucket, aws.kinesis.stream_name, faas.invoked_name). These only had the full ARN, e.g. arn:aws:secretsmanager:us-east-1:123456789012:secret:db-password-AbCdEf, which is too long and already in the respective ARN attribute.

All of these resource names are already part of the ARNs we collect, so no new data is sent.

@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Oct 23, 2026 11:10am UTC

Request Review

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (attributes) Add AWS Lambda, Step Functions and Secrets Manager name attributes by pabloDeputter in #716
  • (names) Add span name and description rules for object.* ops by pabloDeputter in #707

Internal Changes 🔧

  • (attributes) Use JSON for aws.s3.delete & document multi-collection db.collection.name by pabloDeputter in #711

🤖 This preview updates automatically when you update the PR.

@pabloDeputter
pabloDeputter added this pull request to stack #718 October 14, 2026 13:24
@pabloDeputter
pabloDeputter marked this pull request as ready for review October 14, 2026 13:44

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for 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.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2f60aee. Configure here.

Comment thread javascript/sentry-conventions/src/attributes.ts Outdated
pabloDeputter added a commit to getsentry/sentry-python that referenced this pull request Oct 19, 2026
### Description
Adds the following attributes:
- `aws.secretsmanager.secret.arn` (OTel): from an ARN `SecretID`,
replaced by the response `ARN` (if available).
- `aws.secretsmanager.secret.name` (getsentry/sentry-conventions#716):
from response `Name` or the request `Name` or `SecretId`, else the ARN
without its random `-XXXXXX` suffix (in case of failed calls).

The actual secret values are never read.

#### Issues
Resolves #7574
pabloDeputter added a commit to getsentry/sentry-python that referenced this pull request Oct 19, 2026
## Description
Adds the following attributes:
- `aws.step_functions.state_machine.arn`, `*.activity.arn` (OTel) and
`*.execution.arn` (getsentry/sentry-conventions#672), from the request
and response.
- `aws.step_functions.state_machine.name` and `*.activity.name`
(getsentry/sentry-conventions#716), from `name` on create calls or from
the ARN without its version/alias qualifier.

Whenever `StartSyncExecution` returns a failed call (`FAILED` or
`TIMED_OUT`), `error.type` will be set to the respective value.


### Issues
Resolves #7478
…name attributes

Add `aws.lambda.function.name`, `aws.step_functions.state_machine.name`, `aws.step_functions.activity.name` and `aws.secretsmanager.secret.name`.
@pabloDeputter
pabloDeputter force-pushed the pablo/aws-resource-name-attributes branch from 373b2bb to fb49b2c Compare October 23, 2026 11:10
@pabloDeputter
pabloDeputter merged commit bcaf7d6 into main Oct 23, 2026
18 of 19 checks passed
@pabloDeputter
pabloDeputter deleted the pablo/aws-resource-name-attributes branch October 23, 2026 11:14

This branch was successfully deployed

1 active deployment
Preview — fb49b2cc Deployed Oct 23, 2026 by vercel[bot]
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.

2 participants