Alerting: Add traceID to rule evalutor logger (#98549)

This commit is contained in:
Yuri Tseretyan
2025-01-06 15:00:25 -05:00
committed by GitHub
parent 54b357125b
commit f851379f7d

View File

@@ -315,6 +315,7 @@ func (a *alertRule) Run() error {
attribute.String("rule_fingerprint", fpStr),
attribute.String("tick", utcTick),
))
logger := logger.FromContext(tracingCtx)
// Check before any execution if the context was cancelled so that we don't do any evaluations.
if tracingCtx.Err() != nil {