Replies: 5 comments 4 replies
-
@kedare There isn't anything in the API or SDK specification that provides granular suppression of spans so there isn't an easy way to do this in the SDK. One option you have is to write a custom sampler that samples out specific commands however that will be quite slow and I would not recommend it. The only supported option, AFAIK, is to filter the spans in the OTLP collector: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/filterprocessor/README.md#ottl-examples Hope that helps. |
Beta Was this translation helpful? Give feedback.
-
@kedare Removing it from that array won't actually suppress a span. The span just won't have Can you share the statements that are actually generating this? One thing we could do is actually implement some filters that skip really noisy things - if these statements aren't really helpful in the vast majority of cases, we might consider unilaterally suppressing such spans. But, without seeing the statements in front of me it's hard to know what value they might provide to others. (This instrumentation is a little chatty, especially when you're using it with Rails. That's been something I've worried about since we initially wrote it, but you're one of the first to mention that it's troublesome.) |
Beta Was this translation helpful? Give feedback.
-
The kind of
|
Beta Was this translation helpful? Give feedback.
-
Hey folks, I'm running into a similar problem where the Would adding an I'd be happy to implement such an option, I'd just like to get some feedback on the direction before committing too much effort. |
Beta Was this translation helpful? Give feedback.
-
I see this as well with This is a small app and these account for 6% of root spans / traces. Not a big deal but its just unnecessary noise. Rack has a similar |
Beta Was this translation helpful? Give feedback.
-
Hello
I am looking to disable spans for specific SQL commands on the PostgreSQL integration,
Typically I get a lot of
SET
spans before each queries.Looks like there is no "clean" way to do this ? So far I think the only way to do it would be to remove
SET
from the constants ? (not tested yet) ( https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/instrumentation/pg/lib/opentelemetry/instrumentation/pg/constants.rb#L58 )Thanks
Beta Was this translation helpful? Give feedback.
All reactions