Skip to content

Commit 20536a1

Browse files
committed
Review PR
1 parent 9540c55 commit 20536a1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

exporter/exporterhelper/queued_retry.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ type queuedRetrySender struct {
7777
}
7878

7979
func newQueuedRetrySender(id component.ID, signal component.DataType, queue internal.ProducerConsumerQueue,
80-
rCfg RetrySettings, nextSender requestSender, sampledLogger *zap.Logger) *queuedRetrySender {
80+
rCfg RetrySettings, nextSender requestSender, logger *zap.Logger) *queuedRetrySender {
8181
retryStopCh := make(chan struct{})
8282
traceAttr := attribute.String(obsmetrics.ExporterKey, id.String())
8383

@@ -88,7 +88,7 @@ func newQueuedRetrySender(id component.ID, signal component.DataType, queue inte
8888
queue: queue,
8989
retryStopCh: retryStopCh,
9090
traceAttribute: traceAttr,
91-
logger: sampledLogger,
91+
logger: logger,
9292
// TODO: this can be further exposed as a config param rather than relying on a type of queue
9393
requeuingEnabled: queue != nil && queue.IsPersistent(),
9494
}
@@ -98,7 +98,7 @@ func newQueuedRetrySender(id component.ID, signal component.DataType, queue inte
9898
cfg: rCfg,
9999
nextSender: nextSender,
100100
stopCh: retryStopCh,
101-
logger: sampledLogger,
101+
logger: logger,
102102
// Following three functions actually depend on queuedRetrySender
103103
onTemporaryFailure: qrs.onTemporaryFailure,
104104
}

service/telemetry/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type LogsConfig struct {
5555
// (default = false)
5656
DisableStacktrace bool `mapstructure:"disable_stacktrace"`
5757

58-
// Sampling sets a sampling policy for the extra sampled logger.
58+
// Sampling sets a sampling policy for the more efficient sampled logger.
5959
// Default:
6060
// initial: 1
6161
// thereafter: 100
@@ -92,7 +92,7 @@ type LogsConfig struct {
9292
InitialFields map[string]any `mapstructure:"initial_fields"`
9393
}
9494

95-
// LogsSamplingConfig sets a sampling strategy for the extra sampled logger. Sampling caps the
95+
// LogsSamplingConfig sets a sampling strategy for the more efficient sampled logger. Sampling caps the
9696
// global CPU and I/O load that logging puts on your process while attempting
9797
// to preserve a representative subset of your logs.
9898
type LogsSamplingConfig struct {

0 commit comments

Comments
 (0)