temporalio.client.Interceptor

class documentation

class Interceptor: (source)

Known subclasses: temporalio.contrib.openai_agents._trace_interceptor.OpenAIAgentsContextPropagationInterceptor, temporalio.contrib.opentelemetry.OpenTelemetryInterceptor, temporalio.contrib.opentelemetry.TracingInterceptor, temporalio.testing._workflow._AssertionErrorInterceptor, temporalio.testing._workflow._TimeSkippingClientInterceptor

View In Hierarchy

Interceptor for clients.

This should be extended by any client interceptors.

Method intercept_client Method called for intercepting a client.

def intercept_client(self, next: OutboundInterceptor) -> OutboundInterceptor: (source) ΒΆ

Method called for intercepting a client.

Parameters
next:OutboundInterceptorThe underlying outbound interceptor this interceptor should delegate to.
Returns
OutboundInterceptorThe new interceptor that will be called for each client call.