class OpenTelemetryInterceptor(temporalio.client.Interceptor, temporalio.worker.Interceptor): (source)
Constructor: OpenTelemetryInterceptor(add_temporal_spans)
Interceptor that supports client and worker OpenTelemetry span creation and propagation.
Warning
This class is experimental and may change in future versions. Use with caution in production environments.
This should be created and used for interceptors on the
temporalio.client.Client.connect call to apply to all client
calls and worker calls using that client. To only apply to workers, set as
worker creation option instead of in client.
| Method | __init__ |
Initialize a OpenTelemetry tracing interceptor. |
| Method | intercept |
Implementation of temporalio.worker.Interceptor.intercept_activity. |
| Method | intercept |
Implementation of temporalio.client.Interceptor.intercept_client. |
| Method | intercept |
Implementation of temporalio.worker.Interceptor.intercept_nexus_operation. |
| Method | workflow |
Implementation of temporalio.worker.Interceptor.workflow_interceptor_class. |
| Instance Variable | _add |
Undocumented |
temporalio.worker.ActivityInboundInterceptor) -> temporalio.worker.ActivityInboundInterceptor:
(source)
¶
Implementation of
temporalio.worker.Interceptor.intercept_activity.
temporalio.client.OutboundInterceptor) -> temporalio.client.OutboundInterceptor:
(source)
¶
Implementation of
temporalio.client.Interceptor.intercept_client.
temporalio.worker.NexusOperationInboundInterceptor) -> temporalio.worker.NexusOperationInboundInterceptor:
(source)
¶
Implementation of
temporalio.worker.Interceptor.intercept_nexus_operation.
temporalio.worker.WorkflowInterceptorClassInput) -> type[ _TracingWorkflowInboundInterceptor]:
(source)
¶
Implementation of
temporalio.worker.Interceptor.workflow_interceptor_class.