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
{{ message }}
This repository was archived by the owner on Nov 7, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: internal/collector/processor/tail_sampling/metrics.go
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,8 @@ import (
24
24
25
25
// Variables related to metrics specific to tail sampling.
26
26
var (
27
-
tagPolicyKey, _=tag.NewKey("policy")
27
+
tagPolicyKey, _=tag.NewKey("policy")
28
+
tagSampledKey, _=tag.NewKey("sampled")
28
29
29
30
statDecisionLatencyMicroSec=stats.Int64("sampling_decision_latency", "Latency (in microseconds) of a given sampling policy", "µs")
30
31
statOverallDecisionLatencyµs=stats.Int64("sampling_decision_timer_latency", "Latency (in microseconds) of each run of the sampling decision timer", "µs")
@@ -34,6 +35,8 @@ var (
34
35
35
36
statPolicyEvaluationErrorCount=stats.Int64("sampling_policy_evaluation_error", "Count of sampling policy evaluation errors", stats.UnitDimensionless)
36
37
38
+
statCountTracesSampled=stats.Int64("count_traces_sampled", "Count of traces that were sampled or not", stats.UnitDimensionless)
39
+
37
40
statDroppedTooEarlyCount=stats.Int64("sampling_trace_dropped_too_early", "Count of traces that needed to be dropped the configured wait time", stats.UnitDimensionless)
38
41
statNewTraceIDReceivedCount=stats.Int64("new_trace_id_received", "Counts the arrival of new traces", stats.UnitDimensionless)
39
42
statTracesOnMemoryGauge=stats.Int64("sampling_traces_on_memory", "Tracks the number of traces current on memory", stats.UnitDimensionless)
0 commit comments