Skip to content

Commit

Permalink
fix: register kept_from_stress metric (#1487)
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?

register `kept_from_stress` metric

## Short description of the changes

- register `kept_from_stress` metric
  • Loading branch information
VinozzZ authored Feb 13, 2025
1 parent d9224c4 commit 85ab17b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions collect/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ var inMemCollectorMetrics = []metrics.Metadata{
{Name: TraceSendLateSpan, Type: metrics.Counter, Unit: metrics.Dimensionless, Description: "number of spans that are sent due to late span arrival"},

{Name: "dropped_from_stress", Type: metrics.Counter, Unit: metrics.Dimensionless, Description: "number of spans dropped due to stress relief"},
{Name: "kept_from_stress", Type: metrics.Counter, Unit: metrics.Dimensionless, Description: "number of spans kept due to stress relief"},
{Name: "trace_kept_sample_rate", Type: metrics.Histogram, Unit: metrics.Dimensionless, Description: "sample rate of kept traces"},
{Name: "trace_aggregate_sample_rate", Type: metrics.Histogram, Unit: metrics.Dimensionless, Description: "aggregate sample rate of both kept and dropped traces"},
{Name: "collector_redistribute_traces_duration_ms", Type: metrics.Histogram, Unit: metrics.Milliseconds, Description: "duration of redistributing traces to peers"},
Expand Down

0 comments on commit 85ab17b

Please sign in to comment.