WithWorkflowID
Gets a new context with WorkflowName set.
def WithWorkflowID(
ctx: context.Context,
workflow: string
) - > context.Context
Gets a new context with WorkflowName set.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The parent context to which the workflow ID will be added. |
| workflow | string | The string identifier for the workflow to be associated with the context. |
Returns
| Type | Description |
|---|---|
context.Context | A new context with the WorkflowIDKey set to the provided workflow string. |