How do I disable polling traces to an SQS queue? #1614
Replies: 1 comment 2 replies
-
The SQS instrumentation is currently unmaintained and I have to admit I don't know much about it. Generally speaking filtering spans in the collector may work but you'll likely need to match the instrumentation scope name and the span name but without a bit more research I don't know what those would be. I am not familiar with the AWS SDK configuration options or this instrumentation so I cannot confirm if the option you describe will have any effect on suppressing polling spans. We have set a precedent If you're up for it, I'm amenable to accepting a contribution from you that adds this option to the SQS instrumentation. Would you be interested in helping us out with this? There's also an open PR for shoryuken that the contributor is not able to maintain longer term so we did not accept it. That instrumentation may provide you with additional insights for non-polling spans if you'd be interested in maintaining it going forward. |
Beta Was this translation helpful? Give feedback.
-
Background
I have an application that periodically polls an AWS SQS queue to see if there are jobs available with the Shoryuken gem.
Problem
I'm ultimately exporting these traces to AWS X-Ray, and they aren't all that useful. What is the best way to exclude these traces?
Example Raw Trace from AWS X-Ray
Potential Solutions
Not Instrument Them
Ideally, I would like my application to just not instrument these calls at all. I've seen documentation from the Instrumentation for the AWS SDK that might do this, but I'm unsure.
I have not found a detailed explanation for what
suppress_internal_instrumentation
actually does.Tail Sampling
At my collector, I could use a tail sampling or filter processor to filter these requests out. What would be the appropriate fields to filter by?
Beta Was this translation helpful? Give feedback.
All reactions