module documentation
Adds OpenAI Agents traces and spans to Temporal workflows and activities.
Class |
|
Interceptor that propagates OpenAI agent tracing context through Temporal workflows and activities. |
Function | context |
Extracts and initializes trace information the input header. |
Function | set |
Inserts the OpenAI Agents trace/span data in the input header. |
Constant | HEADER |
Undocumented |
Class | _ |
Undocumented |
Class | _ |
Undocumented |
Class | _ |
Undocumented |
Class | _ |
Undocumented |
Class | _ |
Undocumented |
@contextmanager
def context_from_header(span_name:
def context_from_header(span_name:
str
, input: _InputWithHeaders
, payload_converter: temporalio.converter.PayloadConverter
):
(source)
¶
Extracts and initializes trace information the input header.
def set_header_from_context(input:
_InputWithHeaders
, payload_converter: temporalio.converter.PayloadConverter
):
(source)
¶
Inserts the OpenAI Agents trace/span data in the input header.