Skip to main content

WithExecutionID

Gets a new context with ExecutionID set.

def WithExecutionID(
ctx: context.Context,
execID: string
) - > context.Context

Gets a new context with ExecutionID set.

Parameters​

NameTypeDescription
ctxcontext.ContextThe parent context to which the execution ID will be added.
execIDstringThe unique identifier for the execution to be associated with the context.

Returns​

TypeDescription
context.ContextA new context derived from the input context, with the provided execution ID associated.