Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions internal/activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ func WithActivityTask(
zapcore.Field{Key: tagWorkflowID, Type: zapcore.StringType, String: *task.WorkflowExecution.WorkflowId},
zapcore.Field{Key: tagRunID, Type: zapcore.StringType, String: *task.WorkflowExecution.RunId},
)
if task.Attempt != nil {
logger = logger.With(zapcore.Field{Key: tagAttempt, Type: zapcore.Int64Type, Integer: int64(*task.Attempt)})
}

return context.WithValue(ctx, activityEnvContextKey, &activityEnvironment{
taskToken: task.TaskToken,
Expand Down
1 change: 1 addition & 0 deletions internal/internal_logging_tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const (
tagDomain = "Domain"
tagEventID = "EventID"
tagEventType = "EventType"
tagAttempt = "Attempt"
tagRunID = "RunID"
tagTaskList = "TaskList"
tagTimerID = "TimerID"
Expand Down
Loading