aws-sdk-kotlin icon indicating copy to clipboard operation
aws-sdk-kotlin copied to clipboard

Instrument DynamoDB spans with semantic attributes

Open aajtodd opened this issue 2 years ago • 0 comments

Describe the feature

OpenTelemetry/X-Ray define several additional span attributes for one or more DDB operations:

https://opentelemetry.io/docs/specs/otel/trace/semantic_conventions/instrumentation/aws-sdk/#dynamodb

https://github.com/aws/aws-xray-sdk-java/blob/v2.14.0/aws-xray-recorder-sdk-aws-sdk-v2/src/main/resources/com/amazonaws/xray/interceptors/DefaultOperationParameterWhitelist.json

Is your Feature Request related to a problem?

It would be great if these attributes were instrumented by default in the SDK and didn't need to be set externally via an interceptor in specific instrumentation libraries (e.g. OTeL, X-Ray, etc).

Proposed Solution

Add one or more interceptors automatically registered to extend the set of attributes to include the DDB attributes documented.

Describe alternative solutions or features you've considered

No response

Acknowledge

  • [X] I may be able to implement this feature request

AWS Kotlin SDK version used

N/A

Platform (JVM/JS/Native)

N/A

Operating System and version

N/A

aajtodd avatar Jul 18 '23 18:07 aajtodd