-
Notifications
You must be signed in to change notification settings - Fork 291
Open
Description
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:
- https://github.com/open-telemetry/opentelemetry-ruby/blob/main/instrumentation/aws_sdk/lib/opentelemetry/instrumentation/aws_sdk/handler.rb
- https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/node/opentelemetry-instrumentation-aws-sdk/src/enums.ts
- https://github.com/open-telemetry/opentelemetry-dotnet-contrib/blob/main/src/OpenTelemetry.Contrib.Instrumentation.AWS/Implementation/AWSSemanticConventions.cs
- https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/attributes.go
- https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-boto/src/opentelemetry/instrumentation/boto/__init__.py
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.regionin the spec as an existing legancy span attribute - introduce a more generic alternative such as
cloud.invoked_regionthat fits client spans for multiple cloud platforms and SDK call types - deprecate
faas.invoked_regionin favor of the new more generic attribute
I am happy to create a PR after the discussion of this issue.
Oberon00, arminru, z1c0, jordankay13 and Vlaaaaaaad
Metadata
Metadata
Assignees
Labels
No labels