Alerting: Contextual log provider for rule key (#57476)
* create contextual log context provider * use contextual provider in scheduler * init logger in the package * use context for log context * use context in state manager
This commit is contained in:
@@ -92,7 +92,7 @@ func (api *API) RegisterAPIEndpoints(m *metrics.API) {
|
||||
ac: api.AccessControl,
|
||||
}
|
||||
|
||||
evaluator := eval.NewEvaluator(api.Cfg, log.New("ngalert.eval"), api.DatasourceCache, api.ExpressionService)
|
||||
evaluator := eval.NewEvaluator(api.Cfg, api.DatasourceCache, api.ExpressionService)
|
||||
|
||||
// Register endpoints for proxying to Alertmanager-compatible backends.
|
||||
api.RegisterAlertmanagerApiEndpoints(NewForkingAM(
|
||||
|
||||
Reference in New Issue
Block a user