diff --git a/pkg/services/ngalert/schedule/alert_rule.go b/pkg/services/ngalert/schedule/alert_rule.go index 9fe802d3dd1..84303779773 100644 --- a/pkg/services/ngalert/schedule/alert_rule.go +++ b/pkg/services/ngalert/schedule/alert_rule.go @@ -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 {