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

rpc.system has priority to determine aws namespace in awsxrayexporter #5833

Conversation

NathanielRN
Copy link
Contributor

Description:

This PR makes it so that rpc.system has the highest priority to set the namspace value of the segment. Specifically, it is used to determine if the span was made using an instrumented AWS SDK as defined in the aws instrumentation spec. If rpc.system is set to aws-api then the namespace is set to aws.

This PR aims to be backwards compatible because if rpc.system is not set (as it is for some languages today) then it will fallback to checking if aws.service is set.

Link to tracking Issue:

Fixes #5766

Testing:

The test makes a span which does not have aws.service set.

Documentation:

N/A (this is just following the spec)

cc @mxiamxia @anuraaga

@mx-psi mx-psi added the ready to merge Code review completed; ready to merge by maintainers label Oct 20, 2021
@bogdandrutu bogdandrutu merged commit 99c1c32 into open-telemetry:main Oct 20, 2021
@NathanielRN NathanielRN deleted the aws-xray-exporter-checks-newest-attributes branch October 20, 2021 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

awsxrayexporter is expecting out of date attributes from traces generated instrumented AWS SDK
4 participants