Skip to content

Commit

Permalink
adding triggerID to incrementRegisterTriggerFailureCounter
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhuie19 committed Dec 16, 2024
1 parent fa3240c commit 0a55f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/workflows/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func (e *Engine) registerTrigger(ctx context.Context, t *triggerCapability, trig
}
eventsCh, err := t.trigger.RegisterTrigger(ctx, triggerRegRequest)
if err != nil {
e.metrics.incrementRegisterTriggerFailureCounter(ctx)
e.metrics.with(platform.KeyTriggerID, triggerID).incrementRegisterTriggerFailureCounter(ctx)
// It's confusing that t.ID is different from triggerID, but
// t.ID is the capability ID, and triggerID is the trigger ID.
//
Expand Down

0 comments on commit 0a55f79

Please sign in to comment.