Skip to content

Commit

Permalink
Don't fail the workflow when failed to emit metrics for one domain in…
Browse files Browse the repository at this point in the history
… ES analyzer
  • Loading branch information
neil-xie committed Jan 23, 2025
1 parent 61caf40 commit bc6c923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (w *Workflow) emitWorkflowTypeCountMetrics(ctx context.Context) error {
err = w.emitWorkflowTypeCountMetricsES(ctx, domainName, logger)
}
if err != nil {
return err
logger.Error(fmt.Sprintf("Failed to emit workflow type metrics for domain %s", domainName), zap.Error(err))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion service/worker/esanalyzer/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (w *Workflow) emitWorkflowVersionMetrics(ctx context.Context) error {
err = w.emitWorkflowVersionMetricsES(ctx, domainName, logger)
}
if err != nil {
return err
logger.Error(fmt.Sprintf("Failed to emit workflow version metrics for domain %s", domainName), zap.Error(err))
}
}
}
Expand Down

0 comments on commit bc6c923

Please sign in to comment.