Skip to content

Commit c02b4c3

Browse files
committed
fix: remove redundant workflow.IsReplaying checks
1 parent 0cabbec commit c02b4c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interceptor/tracing_interceptor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,8 @@ func (t *tracingWorkflowInboundInterceptor) HandleQuery(
529529
ctx workflow.Context,
530530
in *HandleQueryInput,
531531
) (any, error) {
532-
// Only add tracing if enabled and not replaying
533-
if t.root.options.DisableQueryTracing || workflow.IsReplaying(ctx) {
532+
// Only add tracing if enabled
533+
if t.root.options.DisableQueryTracing {
534534
return t.Next.HandleQuery(ctx, in)
535535
}
536536
// Start span reading from header

0 commit comments

Comments
 (0)