-
Notifications
You must be signed in to change notification settings - Fork 619
feat(aws-sdk)!: SQS receive: use span links instead of processing spans #2345
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2345 +/- ##
==========================================
+ Coverage 89.52% 89.53% +0.01%
==========================================
Files 192 192
Lines 9677 9679 +2
Branches 2009 2009
==========================================
+ Hits 8663 8666 +3
+ Misses 1014 1013 -1
🚀 New features to boost your workflow:
|
|
@jj22ee please give this a review. It is implementing spec behavior |
|
^^ I merged with main (fixing a couple easy conflicts) so we can get the tests running here again. |
This just re-orders and adds the block comments from the semantic-conventions package.
| spanName = `${queueName} receive`; | ||
| spanAttributes[SEMATTRS_MESSAGING_OPERATION] = | ||
| MESSAGINGOPERATIONVALUES_RECEIVE; | ||
| spanAttributes[ATTR_MESSAGING_OPERATION_TYPE] = 'receive'; |
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.
nit: There are enum value exports from the unstable semantic-conventions exports that could be used for 'receive' here (and aws_sqs above):
8674:export const MESSAGING_OPERATION_TYPE_VALUE_CREATE = "create" as const;
8685:export const MESSAGING_OPERATION_TYPE_VALUE_DELIVER = "deliver" as const;
8694:export const MESSAGING_OPERATION_TYPE_VALUE_PROCESS = "process" as const;
8705:export const MESSAGING_OPERATION_TYPE_VALUE_PUBLISH = "publish" as const;
8714:export const MESSAGING_OPERATION_TYPE_VALUE_RECEIVE = "receive" as const;
8723:export const MESSAGING_OPERATION_TYPE_VALUE_SEND = "send" as const;
8732:export const MESSAGING_OPERATION_TYPE_VALUE_SETTLE = "settle" as const;
However, this is very minor and could be done in a follow-up PR.
Which problem is this PR solving?
Drop SQS processing spans in favor of span links as per latest specification.
Fixes #707
Short description of the changes
Create a span link for each incoming message that has a propagation context.