Skip to main content
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

conversation_id
str
required
Unique identifier for the conversation session.

Returns

None Example: default from fiddler_otel import set_conversation_id import uuid set_conversation_id(str(uuid.uuid4())) agent.invoke({“messages”: [{“role”: “user”, “content”: “Hello”}]})