Add subpolicy metrics for And, Composite policies #36966
Labels
enhancement
New feature or request
needs triage
New item requiring triage
processor/tailsampling
Tail sampling processor
Component(s)
processor/tailsampling
Is your feature request related to a problem? Please describe.
I had to comb through the debug logs to determine that my Composite subpolicies weren't being followed as expected. This would be a lot easier if there was an extra level of metrics below
otelcol_processor_tail_sampling_*
which would provide the same statistics about the constituent subpolicies of
And
andComposite
policies.This also seems like an intuitive next step, since the same logic about wanting metrics about the individual policies also applies to subpolicies.
Describe the solution you'd like
In the same vein that we have a suite of metrics which include the label of
policy
andsampled
, e.g.,I would like to see extra label of
subpolicy
added. This could also be a brand new metric, which would allow us to add more details, like in the case ofComposite
where sometimes the subpolicy actually returnedSampled
, but it was over spans-per-second allocation and thus the result wasNotSampled
.A new metric feels like the most straight-forward option, but it might take a bit of work, since it would require updating both the
And
andComposite
policies with a newtelemetry
field like the one we have in the top-leveltailSamplingProcessor
In the case of adding an extra label or labels to the existing metrics, this would just be an empty string for the policies without subpolicies.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: