-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add subpolicy metrics for And, Composite policies #36966
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@cancub would a metric label solve this generally? Because can't you have arbitrarily nested sub-policies i.e. an |
Would also be interested in hearing @jpkrohling's opinion |
Yup, that works. |
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: