Skip to main content

set_context_emitter

Function
This function is defined in the context_events module.
Set the context trace emitter for the current async context.

Signature

Parameters

ContextTraceEmitter
required
The emitter to set as current.

Returns

contextvars.Token
Token that can be used with reset_context_emitter() to restore previous state.

Used By

Source

View on GitHub

praisonaiagents/trace/context_events.py at line 64

Context Concept

Context Management

Context Strategies