Skip to content

Commit

Permalink
Include workflow name in log output
Browse files Browse the repository at this point in the history
  • Loading branch information
cschleiden committed Nov 21, 2023
1 parent a51068b commit 01bc264
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ func (c *Client) CreateWorkflowInstance(ctx context.Context, options WorkflowIns
return nil, fmt.Errorf("creating workflow instance: %w", err)
}

c.backend.Logger().Debug("Created workflow instance", log.InstanceIDKey, wfi.InstanceID, log.ExecutionIDKey, wfi.ExecutionID)
c.backend.Logger().Debug(
"Created workflow instance",
log.InstanceIDKey, wfi.InstanceID,
log.ExecutionIDKey, wfi.ExecutionID,
log.WorkflowNameKey, workflowName,
)

c.backend.Metrics().Counter(metrickeys.WorkflowInstanceCreated, metrics.Tags{}, 1)

Expand Down

0 comments on commit 01bc264

Please sign in to comment.