-
Notifications
You must be signed in to change notification settings - Fork 532
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
Capture ARNs in SNS instrumentation #1716
Comments
Thanks @alingamn - Also it is worth noting java sdk is capturing the http.url of the sns - example
Note that, I am not proposing to use |
I don't see specifically which instrumentation you're asking about, but it seems most likely to be the This sounds like a change request most applicable to the OpenTelemetry Semantic Conventions. This repository simply follows the recommendations of the Semantic Conventions and the Specification. If the existing Semantic Convention would be sufficient for your use case, but we are not following the Semantic Convention, please update this issue to reflect that or open a new issue to update the instrumentation following Semantic Conventions. |
Hi @dyladan yes, this is related to aws-sdk instrumentation. We are setting the span attribute to just the topic name here which doesn't provide uniqueness since multiple accounts can have an identical topic. The request here is to either capture the entire ARN as part of the existing attribute(messaging.destination) or add an additional attribute to identify the account. |
Is that what is recommended by the semantic conventions? I'm not familiar with the messaging semconv but you can find it here: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/messaging/messaging-spans.md |
Thanks @dyladan - This has to do more with the value we are setting for please let us know if it is acceptable to use arn instead of name of the topic cc: @alingamn |
The semconv says it should be unique. If it is not unique the current implementation seems be not correct. |
In that case then yes I would accept a PR |
Thanks @dyladan @Flarna . We have also followed up with this query in semconventions slack thread and they have confirmed the same. ARNs are technically names, (- longer names). @alingamn please open the PRs - letme know if you need any help. |
Problem: The use of topic names instead of ARNs in `messaging.destination` omits essential account information, making topic localization cumbersome. Solution: Adopt full ARNs as the value for `messaging.destination`, preserving both topic name and account details, aligning with current SNS ServiceExtension approach. Closes open-telemetry#1716
…essaging.destination.name for SNS topics (#1727) * Capture full ARN for SNS topics in messaging.destination Problem: The use of topic names instead of ARNs in `messaging.destination` omits essential account information, making topic localization cumbersome. Solution: Adopt full ARNs as the value for `messaging.destination`, preserving both topic name and account details, aligning with current SNS ServiceExtension approach. Closes #1716 * Add new span attribute instead of modifying the existing attribute --------- Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
Is your feature request related to a problem?
The current approach of capturing topic names instead of ARNs in the messaging.destination attribute leads to a loss of valuable information regarding the account associated with the topic. This information is crucial for efficiently locating the topic.
Describe the solution you'd like
To address this issue, we propose utilizing ARNs as the value of the messaging.destination attribute to capture the full ARN of the topic. This change aligns with an existing implementation in the ServiceExtension for SNS.
Alternate Solution:
Instead of modifying the existing attribute, account information related to the topic can be included as an additional span attribute. However, it's important to note that there are currently no defined semantics for specifying the value.
Suggested attribute: aws.account.id:12343441
cc: @svrnm @pavankrish123 @noltak3 @yumarg
The text was updated successfully, but these errors were encountered: