> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fiddler.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# set_conversation_id

> Set the conversation ID for the current execution context.

Set the conversation ID for the current execution context.

The conversation ID is propagated to all spans created in the current
thread or async coroutine, allowing the Fiddler dashboard to filter and
display the full ordered sequence of operations for a single conversation.

This value persists until it is called again with a new ID.

## Parameters

<ParamField path="conversation_id" type="str" required={true}>
  Unique identifier for the conversation session.
</ParamField>

## Returns

<ResponseField>
  None Example: default import uuid from fiddler\_otel import set\_conversation\_id set\_conversation\_id(str(uuid.uuid4())) # All spans created in this thread or coroutine after this call # carry the same conversation\_id, until set\_conversation\_id is # called again with a new value.
</ResponseField>
