diff --git a/.chloggen/SampledLoggerTelemetry.yaml b/.chloggen/SampledLoggerTelemetry.yaml index 8fa0defd6b8..68678e936d1 100644 --- a/.chloggen/SampledLoggerTelemetry.yaml +++ b/.chloggen/SampledLoggerTelemetry.yaml @@ -15,7 +15,7 @@ issues: [8134] # (Optional) One or more lines of additional information to render under the primary note. # These lines will be padded with 2 spaces and then inserted directly into the document. # Use pipe (|) for multiline entries. -subtext: The sampled logger configuration can be disabled easily by setting the 'enabled' field to 'false'. +subtext: The sampled logger configuration can be disabled easily by setting the `service::telemetry::logs::sampling::enabled` to `false`. # Optional: The change log or logs in which this entry should be included. diff --git a/service/telemetry/config.go b/service/telemetry/config.go index cb07357e8b6..becc1b11e38 100644 --- a/service/telemetry/config.go +++ b/service/telemetry/config.go @@ -105,7 +105,7 @@ type LogsSamplingConfig struct { Tick time.Duration `mapstructure:"tick"` // Initial represents the first M messages logged each Tick. Initial int `mapstructure:"initial"` - // Thereafter represents the N messages logged after Initial and the rest are dropped, during each Tick. + // Thereafter represents the sampling rate, every Nth message will be sampled after Initial messages are logged during each Tick. // If Thereafter is zero, the logger will drop all the messages after the Initial each Tick. Thereafter int `mapstructure:"thereafter"` }