Skip to content

Commit 32a9340

Browse files
author
Evan Sandoval
committed
Add attempt # to structured Activity logging
1 parent 3d6e75c commit 32a9340

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/activity.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ func WithActivityTask(
356356
zapcore.Field{Key: tagWorkflowType, Type: zapcore.StringType, String: *task.WorkflowType.Name},
357357
zapcore.Field{Key: tagWorkflowID, Type: zapcore.StringType, String: *task.WorkflowExecution.WorkflowId},
358358
zapcore.Field{Key: tagRunID, Type: zapcore.StringType, String: *task.WorkflowExecution.RunId},
359+
zapcore.Field{Key: tagAttempt, Type: zapcore.Int32Type, Int32: *task.Attempt},
359360
)
360361

361362
return context.WithValue(ctx, activityEnvContextKey, &activityEnvironment{

0 commit comments

Comments
 (0)