Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maciuszek committed Jan 16, 2025
1 parent 7e5a451 commit a54db1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const (
DefaultFlushIntervalS = 5
// DefaultLoggingSinkDisabled is the default behavior of logging sink suppression, default is false.
DefaultLoggingSinkDisabled = false
// DefaultUseReservoirTimer defines if reservoir timers should be used by default, default is false.
// DefaultUseReservoirTimer defines if all timers should be reservoir timers by default.
DefaultUseReservoirTimer = false
// FixedTimerReservoirSize is the max capacity of the reservoir for reservoir timers.
// note: needs to be rounded to a power of two e.g. 1 << bits.Len(uint(100)) = 128
Expand All @@ -44,7 +44,7 @@ type Settings struct {
// Disable the LoggingSink when USE_STATSD is false and use the NullSink instead.
// This will cause all stats to be silently dropped.
LoggingSinkDisabled bool `envconfig:"GOSTATS_LOGGING_SINK_DISABLED" default:"false"`
// Enable all timers to act as reservoir timers with sampling
// Make all timers reservoir timers with implied sampling under flush interval of FlushIntervalS
UseReservoirTimer bool `envconfig:"GOSTATS_USE_RESERVOIR_TIMER" default:"false"`
}

Expand Down

0 comments on commit a54db1a

Please sign in to comment.