-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
bugSomething isn't workingSomething isn't workingcontribution welcomeRequest makes sense, maintainers probably won't have time, contribution would be welcomeRequest makes sense, maintainers probably won't have time, contribution would be welcome
Description
Describe the bug
In semantic convention registry, the attribute name for request id is aws.request_id schema, while the SDK generated spans are using aws.requestId
Both v1 and v2 SDK are using aws.requestId
- V1 defined the attribute name in AwsExperimentalAttributes and used in AwsSdlExperimentalAtributesExtractor
- V2 hard code the attribute name in TracingExecutionInterceptor
Permlinks
v1
Line 20 in 0c22a8e
| static final AttributeKey<String> AWS_REQUEST_ID = stringKey("aws.requestId"); |
v2
Line 365 in 0c22a8e
| span.setAttribute("aws.requestId", ((AwsResponse) response).responseMetadata().requestId()); |
Steps to reproduce
N/A the attribute names are defined in code. Though I found this while using Application Signal's SDK on EKS calling S3 aws-observability/aws-otel-java-instrumentation#894
Expected behavior
aws.request_id in snake_case
Actual behavior
aws.requestId in camelCase
Javaagent or library instrumentation version
N/A
Environment
N/A
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcontribution welcomeRequest makes sense, maintainers probably won't have time, contribution would be welcomeRequest makes sense, maintainers probably won't have time, contribution would be welcome