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
[processor/tailsampling] Add metric for sampled/not sampled spans (#30485)
**Description:** <Describe what has changed.>
Add metrics to measure sampled/not sampled spans.
**Link to tracking Issue:**
Fixes#30482
**Testing:** <Describe what testing was performed and which tests were
added.>
None
**Documentation:** <Describe the documentation added.>
None
---------
Signed-off-by: Arthur Silva Sens <[email protected]>
featuregate.WithRegisterDescription("When enabled, a new metric stat_count_spans_sampled will be available in the tail sampling processor. Differently from stat_count_traces_sampled, this metric will count the number of spans sampled or not per sampling policy, where the original counts traces."),
Copy file name to clipboardExpand all lines: processor/tailsamplingprocessor/metrics.go
+76-83Lines changed: 76 additions & 83 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ var (
28
28
statPolicyEvaluationErrorCount=stats.Int64("sampling_policy_evaluation_error", "Count of sampling policy evaluation errors", stats.UnitDimensionless)
29
29
30
30
statCountTracesSampled=stats.Int64("count_traces_sampled", "Count of traces that were sampled or not per sampling policy", stats.UnitDimensionless)
31
+
statCountSpansSampled=stats.Int64("count_spans_sampled", "Count of spans that were sampled or not per sampling policy", stats.UnitDimensionless)
31
32
statCountGlobalTracesSampled=stats.Int64("global_count_traces_sampled", "Global count of traces that were sampled or not by at least one policy", stats.UnitDimensionless)
32
33
33
34
statDroppedTooEarlyCount=stats.Int64("sampling_trace_dropped_too_early", "Count of traces that needed to be dropped before the configured wait time", stats.UnitDimensionless)
0 commit comments