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. |
| Class | |
Random uuid generator seeded by the run id of the workflow. Doesn't currently support replay over reset correctly. |
| 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 |
| Function | _ensure |
We use a custom uuid generator for spans to ensure that changes to user code workflow.random usage do not affect tracing and vice versa. |
@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.