module documentation

Adds OpenAI Agents traces and spans to Temporal workflows and activities.

Class OpenAIAgentsContextPropagationInterceptor Interceptor that propagates OpenAI agent tracing context through Temporal workflows and activities.
Function temporal_span Create a temporal span context manager.
Constant HEADER_KEY Undocumented
Class _ContextPropagationActivityInboundInterceptor Undocumented
Class _ContextPropagationClientOutboundInterceptor Undocumented
Class _ContextPropagationWorkflowInboundInterceptor Undocumented
Class _ContextPropagationWorkflowOutboundInterceptor Undocumented
Class _InputWithHeaders Undocumented
def temporal_span(add_temporal_spans: bool, span_name: str): (source)

Create a temporal span context manager.

Parameters
add_temporal_spans:boolWhether to add temporal-specific span data.
span_name:strThe name of the span to create.
Yields
A span context with temporal metadata if enabled.
HEADER_KEY: str = (source)

Undocumented

Value
'__openai_span'