Skip to content

Commit

Permalink
TBS: log a warning with error field on processing trace failed (#15492)…
Browse files Browse the repository at this point in the history
… (#15494)

(cherry picked from commit 00a250d)

Co-authored-by: Carson Ip <[email protected]>
  • Loading branch information
mergify[bot] and carsonip authored Jan 31, 2025
1 parent 7df5058 commit a3e7297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/apm-server/sampling/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ func (p *Processor) ProcessBatch(ctx context.Context, batch *modelpb.Batch) erro
stored = false
if p.config.DiscardOnWriteFailure {
report = false
p.rateLimitedLogger.Info("processing trace failed, discarding by default")
p.rateLimitedLogger.With(logp.Error(err)).Warn("processing trace failed, discarding by default")
} else {
report = true
p.rateLimitedLogger.Info("processing trace failed, indexing by default")
p.rateLimitedLogger.With(logp.Error(err)).Warn("processing trace failed, indexing by default")
}
}

Expand Down

0 comments on commit a3e7297

Please sign in to comment.