Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding aws.region span attribute to the spec #1113

Open
Ma-Ba opened this issue May 24, 2022 · 4 comments
Open

Adding aws.region span attribute to the spec #1113

Ma-Ba opened this issue May 24, 2022 · 4 comments
Assignees

Comments

@Ma-Ba
Copy link

Ma-Ba commented May 24, 2022

We noticed that the AWS SDK instrumentation in various languages sets a (client) span attribute named aws.region which is currently not part of the spec.

I found the following instrumenation libraries that set aws.region:

Currently, the spec contains the cloud.region resource attribute intended for server-side spans and faas.invoked_region for client-side spans of FaaS invocations. The latter is therefore not suitable for e.g. calls to DynamoDB using the AWS SDK.

I'd like to propose the following:

  • document aws.region in the spec as an existing legancy span attribute
  • introduce a more generic alternative such as cloud.invoked_region that fits client spans for multiple cloud platforms and SDK call types
  • deprecate faas.invoked_region in favor of the new more generic attribute

I am happy to create a PR after the discussion of this issue.

@Oberon00
Copy link
Member

invoked_region might not be the ideal name if we also want to use the attribute to e.g. record the region from which some FaaS invocation was triggered. Maybe cloud.peer_region or cloud.remote_region?

@Oberon00
Copy link
Member

Oberon00 commented Jul 21, 2022

We might also want to consider the (invoked/peer/remote) account_id here as a complement to the callers cloud.account_id, but that might be considered a separate issue.

@arminru
Copy link
Member

arminru commented Oct 17, 2022

@jsuereth can this be added to open-telemetry/opentelemetry-specification#2753?

@jordankay13
Copy link

I'm coming here from

I would argue against documenting the current behaviour - aws.region is too similar to cloud.region and is incredibly confusing, especially for new users. I quite like the idea of having a cloud.peer_region attribute.

Thank you

@danielgblanco danielgblanco transferred this issue from open-telemetry/opentelemetry-specification Jun 3, 2024
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

No branches or pull requests

6 participants