Skip to content

Commit

Permalink
Expose tailsamplingprocessor metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
pmm-sumo committed Nov 10, 2020
1 parent ff6a3a8 commit fcd7685
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions processor/tailsamplingprocessor/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ var (
statTracesOnMemoryGauge = stats.Int64("sampling_traces_on_memory", "Tracks the number of traces current on memory", stats.UnitDimensionless)
)

func init() {
// TODO: this is hardcoding the metrics level and skips error handling
_ = view.Register(SamplingProcessorMetricViews(configtelemetry.LevelNormal)...)
}

// SamplingProcessorMetricViews return the metrics views according to given telemetry level.
func SamplingProcessorMetricViews(level configtelemetry.Level) []*view.View {
if level == configtelemetry.LevelNone {
Expand Down

0 comments on commit fcd7685

Please sign in to comment.