class _LangSmithClientOutboundInterceptor(temporalio.client.OutboundInterceptor): (source)
Constructor: _LangSmithClientOutboundInterceptor(next, config)
Instruments all client-side calls with LangSmith runs.
| Method | __init__ |
Create the outbound interceptor. |
| Async Method | query |
Called for every WorkflowHandle.query call. |
| Async Method | signal |
Called for every WorkflowHandle.signal call. |
| Async Method | start |
Called for every Client.start_update_with_start_workflow and Client.execute_update_with_start_workflow call. |
| Async Method | start |
Called for every Client.start_workflow call. |
| Async Method | start |
Called for every WorkflowHandle.start_update and WorkflowHandle.execute_update call. |
| Method | _traced |
Wrap a client call with a LangSmith run and inject context into headers. |
| Method | _traced |
Wrap a start operation, injecting ambient parent context before creating the run. |
| Instance Variable | _config |
Undocumented |
Inherited from OutboundInterceptor:
temporalio.client.OutboundInterceptor, config: LangSmithInterceptor):
(source)
¶
Create the outbound interceptor.
| Parameters | |
next:temporalio.client.OutboundInterceptor | The next interceptor in the chain. The default implementation of all calls is to delegate to the next interceptor. |
config:LangSmithInterceptor | Undocumented |
temporalio.client.StartWorkflowUpdateWithStartInput) -> temporalio.client.WorkflowUpdateHandle[ Any]:
(source)
¶
Called for every Client.start_update_with_start_workflow and Client.execute_update_with_start_workflow call.
temporalio.client.StartWorkflowInput) -> temporalio.client.WorkflowHandle[ Any, Any]:
(source)
¶
Called for every Client.start_workflow call.
temporalio.client.StartWorkflowUpdateInput) -> temporalio.client.WorkflowUpdateHandle[ Any]:
(source)
¶
Called for every WorkflowHandle.start_update and WorkflowHandle.execute_update call.
Wrap a client call with a LangSmith run and inject context into headers.
Wrap a start operation, injecting ambient parent context before creating the run.
Unlike _traced_call, this injects headers before maybe_run so the downstream RunFoo becomes a sibling of StartFoo rather than a child.