Skip to content

Commit

Permalink
Hardcode noop metrics handler to avoid logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegrone committed Jul 21, 2023
1 parent 57d29ee commit 924e9d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/internal_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,9 @@ func (aw *WorkflowReplayer) replayWorkflowHistory(logger log.Logger, service wor
FailureConverter: aw.failureConverter,
ContextPropagators: aw.contextPropagators,
EnableLoggingInReplay: aw.enableLoggingInReplay,
// Hardcoding NopHandler avoids "No metrics handler configured for temporal worker"
// logs during replay.
MetricsHandler: metrics.NopHandler,
capabilities: &workflowservice.GetSystemInfoResponse_Capabilities{
SignalAndQueryHeader: true,
InternalErrorDifferentiation: true,
Expand Down

0 comments on commit 924e9d7

Please sign in to comment.