You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for posting this as an issue, don't know where else to ask.
I am using open-telemetry/opentelemetry-auto-psr16 to automatically create spans for CacheInterface calls.
Among the hooked-into methods, there are some that return iterable via yield keyword (Generators) (e.g. getMultiple).
This results in one span for each yield call, resulting in very long traces.
Is there any way that these can be grouped or deduplicated?
Do maintainers consider this an issue?
Thank you!
The text was updated successfully, but these errors were encountered:
I don't think that the iterator/generator is relevant here, the issue is that getMultiple seems to then call get for each param to getMultiple.
I think the correct OpenTelemetry solution to your issue would be to use sampling. Since getMultiple already records each of the cache keys, perhaps you could just sample out all of the get spans?
The collector's filterprocessor will probably do what you want - the telemetry will still be generated, but you can discard the noisy parts as part of the processing pipeline.
You might be interested in trying out our RuleBasedSampler. It's still fairly new, but I think you'll be able to use it to not generate the get's.
Hi,
Sorry for posting this as an issue, don't know where else to ask.
I am using open-telemetry/opentelemetry-auto-psr16 to automatically create spans for CacheInterface calls.
Among the hooked-into methods, there are some that return
iterable
viayield
keyword (Generators) (e.g.getMultiple
).This results in one span for each
yield
call, resulting in very long traces.Is there any way that these can be grouped or deduplicated?
Do maintainers consider this an issue?
Thank you!
The text was updated successfully, but these errors were encountered: