-
Notifications
You must be signed in to change notification settings - Fork 225
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
feature: sqs queue instrumentation #2013
Conversation
…f tests, context data
💚 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.
Neato! I have some suggestions and questions.
Co-authored-by: Trent Mick <trent.mick@elastic.co>
jenkins run the tests please |
@trentm the span strategy, |
jenkins run the tests please |
jenkins run the tests please |
* feat: instrument amazon SQS Adds support for Amazon SQS queues via `aws-sdk` instrumentation that partially implements the APM messaging spec https://github.com/elastic/apm/blob/master/specs/agents/tracing-instrumentation-messaging Also adds `queue.latency.min.ms`, `queue.latency.max.ms`, and `queue.latency.avg.ms` metrics for SQS queues.
Part of #1956
This PR provides instrumentation for Amazon's SQS queues and partially implements the messaging spec.
This PR does not automatically generate transactions during message processing -- see #2012 for more information. To work around this limitation we provide documentation showing a few different ways users could use the API to generate transactions when processing messages.
We instrument the SQS method calls by wrapping the underlying AWS SDK
AWS.Request.send
method. The main instrumentation entry point is built in such a way that should allow us to instrument future aws-sdk services in a similar fashion.We also generate a queue latency metric using the existing measured based metric system. These new metrics are query-able via the Kibana
apm
index pattern