Skip to main content

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

NameTypeDescription
ctxcontext.ContextThe parent context to which the workflow ID will be added.
workflowstringThe string identifier for the workflow to be associated with the context.

Returns

TypeDescription
context.ContextA new context with the WorkflowIDKey set to the provided workflow string.