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

Capture the SNS topic ARN under the 'messaging.destination.name' span attribute. #10096

Merged
merged 10 commits into from
Jan 3, 2024
Prev Previous commit
Next Next commit
Add comment explaining that only one of TopicArn and TargetArn will b…
…e set on an AWS SDK v2 request.
  • Loading branch information
tduncan committed Dec 22, 2023
commit 943a4a9e795f6fe6ff6acfa3cf341de989deb69b
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ enum AwsSdkRequestType {
KINESIS(request("aws.stream.name", "StreamName")),
DYNAMODB(request("aws.table.name", "TableName")),
SNS(
/*
* Only one of TopicArn and TargetArn are permitted on an SNS request.
*/
request(SemanticAttributes.MESSAGING_DESTINATION_NAME.getKey(), "TargetArn"),
laurit marked this conversation as resolved.
Show resolved Hide resolved
request(SemanticAttributes.MESSAGING_DESTINATION_NAME.getKey(), "TopicArn"));

Expand Down