Skip to content

Commit

Permalink
fix: nil map
Browse files Browse the repository at this point in the history
  • Loading branch information
fracasula committed Sep 25, 2024
1 parent 2e9464f commit 2d51ad1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stats/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ func (s *otelStats) getGauge(

if s.gauges == nil {
s.gauges = make(map[string]*otelGauge)
s.gaugesOtel = make(map[string]metric.Float64ObservableGauge)
} else {
og, ok = s.gauges[mapKey]
}
Expand Down

0 comments on commit 2d51ad1

Please sign in to comment.