-
Notifications
You must be signed in to change notification settings - Fork 197
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
Instrument RPC calls to amazon SQS #933
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪 |
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.
Looks good, with the caveat that I don't really know SQS. We should be recording trace context (traceparent & tracestate) in message attributes.
Add the trace context header to the message attribute metadata when creating messages.
I added the trace context to the message attributes, but when I was inspecting the body for
I removed all the instrumentation we do (don't add
This is not happening in |
if tc.hasTraceContext { | ||
wrapped.Handlers.Build.PushBackNamed(request.NamedHandler{ | ||
Name: "spy_message_attrs_added", | ||
Fn: testTracingAttributes(t), |
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.
Took some inspiration from the ruby client test and added another handler to inspect that the params were correctly modified.
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.
nice!
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.
looks good!
Add support for tracing AWS SQS RPCs when using a wrapped `*session.Session` struct
Add instrumentation for SQS methods for sending/receiving/deleting messages.
Note:
Ignoring message queues is part of the messaging spec, but will be included later. This is being tracked in #934.
closes #883