Skip to content

Commit a3e7297

Browse files
TBS: log a warning with error field on processing trace failed (#15492) (#15494)
(cherry picked from commit 00a250d) Co-authored-by: Carson Ip <[email protected]>
1 parent 7df5058 commit a3e7297

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/apm-server/sampling/processor.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ func (p *Processor) ProcessBatch(ctx context.Context, batch *modelpb.Batch) erro
149149
stored = false
150150
if p.config.DiscardOnWriteFailure {
151151
report = false
152-
p.rateLimitedLogger.Info("processing trace failed, discarding by default")
152+
p.rateLimitedLogger.With(logp.Error(err)).Warn("processing trace failed, discarding by default")
153153
} else {
154154
report = true
155-
p.rateLimitedLogger.Info("processing trace failed, indexing by default")
155+
p.rateLimitedLogger.With(logp.Error(err)).Warn("processing trace failed, indexing by default")
156156
}
157157
}
158158

0 commit comments

Comments
 (0)