Skip to content

Conversation

lukeina2z
Copy link
Contributor

AWS Step Functions defines two semantic convention attributes:

aws.step_functions.activity.arn
aws.step_functions.state_machine.arn

https://github.com/open-telemetry/semantic-conventions/blob/main/docs/registry/attributes/aws.md#amazon-step-functions-attributes

Currently, these attributes are not set in the botocore instrumentation library. This PR adds support for them by extracting values from both Request and Response objects.

Tests
Added new unit tests (passing).

Verified with:
tox -e py312-test-instrumentation-botocore
tox -e spellcheck
tox -e lint-instrumentation-botocore
tox -e ruff

Backward Compatibility
This change is backward compatible. It only adds instrumentation for additional AWS resources and does not modify existing behavior in the auto-instrumentation library.

Note
This PR depends on #3736. Since #3736 has not yet been merged, its changes are included here as well.

…ibutes AWS Step Functions defines two semantic convention attributes: aws.step_functions.activity.arn aws.step_functions.state_machine.arn https://github.com/open-telemetry/semantic-conventions/blob/main/docs/registry/attributes/aws.md#amazon-step-functions-attributes Currently, these attributes are not set in the botocore instrumentation library. This PR adds support for them by extracting values from both Request and Response objects. Tests Added new unit tests (passing). Verified with: tox -e py312-test-instrumentation-botocore tox -e spellcheck tox -e lint-instrumentation-botocore tox -e ruff Backward Compatibility This change is backward compatible. It only adds instrumentation for additional AWS resources and does not modify existing behavior in the auto-instrumentation library. Note This PR depends on open-telemetry#3736. Since open-telemetry#3736 has not yet been merged, its changes are included here as well.
@lukeina2z lukeina2z requested a review from a team as a code owner September 6, 2025 03:22
@xrmx xrmx moved this to Ready for review in @xrmx's Python PR digest Sep 9, 2025
Copy link

@yiyuan-he yiyuan-he left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit and merge conflict (probably from the moto version upgrade). Otherwise, LGTM!

@xrmx xrmx moved this from Ready for review to Approved PRs in @xrmx's Python PR digest Sep 10, 2025
@xrmx xrmx enabled auto-merge (squash) September 10, 2025 12:16
@xrmx xrmx merged commit 4afa1ee into open-telemetry:main Sep 10, 2025
632 checks passed
@github-project-automation github-project-automation bot moved this from Approved PRs to Done in @xrmx's Python PR digest Sep 10, 2025
@lukeina2z lukeina2z deleted the pr-sfn-foo branch September 29, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants