You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--
* New contributors are highly encouraged to read our
[CONTRIBUTING](/CONTRIBUTING.md) documentation.
* Commit and PR titles should be prefixed with the general area of the
pull request's change.
-->
### What does this PR do?
Adds a `aws.partition` tag onto AWS traces based on the region. The
logic to derive this partition is
[identical](https://github.com/DataDog/dd-trace-go/blob/main/contrib/aws/aws-sdk-go-v2/aws/aws.go#L206-L215)
to what we do within other tracing libraries.
### Motivation
Part of a larger effort to better link cloud resources within Datadog.
We often need the AWS partition during downstream enrichment - it is
almost always a required part of constructing an ARN, but it's currently
not captured in the library
[Jira Ticket](https://datadoghq.atlassian.net/browse/CLP-1021) and more
[context](https://datadoghq.atlassian.net/wiki/x/toGyLwE) around this
effort
<!--
* What inspired you to submit this pull request?
* Link any related GitHub issues or PRs here.
* If this resolves a GitHub issue, include "Fixes #XXXX" to link the
issue and auto-close it on merge.
-->
## Checklist
- [x] PR author has checked that all the criteria below are met
- The PR description includes an overview of the change
- The PR description articulates the motivation for the change
- The change includes tests OR the PR description describes a testing
strategy
- The PR description notes risks associated with the change, if any
- Newly-added code is easy to change
- The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- The change includes or references documentation updates if necessary
- Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))
## Reviewer Checklist
- [ ] Reviewer has checked that all the criteria below are met
- Title is accurate
- All changes are related to the pull request's stated goal
- Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- Testing strategy adequately addresses listed risks
- Newly-added code is easy to change
- Release note makes sense to a user of the library
- If necessary, author has acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment
- Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
---------
Co-authored-by: wantsui <[email protected]>
0 commit comments