-
Notifications
You must be signed in to change notification settings - Fork 867
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
fix(aws-sdk): use RPC attributes from spec #5166
Conversation
A test seems to fail in CI (
Is it just flacky test? should I ignore it? |
Yes, that's just a flaky test that's been introduced very recently - don't worry about it. I'll rerun the checks on your branch just in case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
...rc/main/java/io/opentelemetry/instrumentation/awssdk/v1_11/AwsSdkRpcAttributesExtractor.java
Outdated
Show resolved
Hide resolved
...src/main/java/io/opentelemetry/instrumentation/awssdk/v2_2/AwsSdkRpcAttributesExtractor.java
Outdated
Show resolved
Hide resolved
…opentelemetry/instrumentation/awssdk/v1_11/AwsSdkRpcAttributesExtractor.java Co-authored-by: Anuraag Agrawal <[email protected]>
…pentelemetry/instrumentation/awssdk/v2_2/AwsSdkRpcAttributesExtractor.java Co-authored-by: Anuraag Agrawal <[email protected]>
* style: rename AwsSdkAttributes to AwsSdkHttpAttributes * feat(aws-sdk-1.11): use rpc attributes from spec * feat(aws-sdk-2.2): use rpc attributes from spec * fix: update apache-camel test with aws-sdk rpc attributes * chore: lint fix * Update instrumentation/aws-sdk/aws-sdk-1.11/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v1_11/AwsSdkRpcAttributesExtractor.java Co-authored-by: Anuraag Agrawal <[email protected]> * Update instrumentation/aws-sdk/aws-sdk-2.2/library/src/main/java/io/opentelemetry/instrumentation/awssdk/v2_2/AwsSdkRpcAttributesExtractor.java Co-authored-by: Anuraag Agrawal <[email protected]> Co-authored-by: Anuraag Agrawal <[email protected]>
Fix #5159
For
aws-sdk-1.11
andaws-sdk-2.2
instrumentations:aws.service
torpc.service
according to the spec.aws.operation
torpc.method
according to the spec.rpc.system
aws.*
attributes which are set only whenotel.instrumentation.aws-sdk.experimental-span-attributes=true
AwsSdkAttributesExtractor.java
toAwsSdkHttpAttributesExtractor.java
, to make it consistent with the other extractors in the module. This extractor is extracting http client attributes only, and not aws-sdk domain attributes.This is my first PR in java, so please take a good look.