class documentation

LangSmith tracing plugin for Temporal SDK.

Provides automatic LangSmith run creation for workflows, activities, and other Temporal operations with context propagation.

Method __init__ Initialize the LangSmith plugin.

Inherited from SimplePlugin:

Method configure_client See base class.
Method configure_replayer See base class.
Method configure_worker See base class.
Async Method connect_service_client See base class.
Method name See base class.
Async Method run_replayer See base class.
Async Method run_worker See base class.
Instance Variable activities Undocumented
Instance Variable data_converter Undocumented
Instance Variable interceptors Undocumented
Instance Variable nexus_service_handlers Undocumented
Instance Variable run_context Undocumented
Instance Variable workflow_failure_exception_types Undocumented
Instance Variable workflow_runner Undocumented
Instance Variable workflows Undocumented
Instance Variable _name Undocumented
def __init__(self, *, client: langsmith.Client | None = None, project_name: str | None = None, add_temporal_runs: bool = False, default_metadata: dict[str, Any] | None = None, default_tags: list[str] | None = None): (source) ΒΆ

Initialize the LangSmith plugin.

Parameters
client:langsmith.Client | NoneA langsmith.Client instance. If None, one will be created automatically (using LANGSMITH_API_KEY env var).
project_name:str | NoneLangSmith project name for traces.
add_temporal_runs:boolWhether to create LangSmith runs for Temporal operations. Defaults to False.
default_metadata:dict[str, Any] | NoneDefault metadata to attach to all runs.
default_tags:list[str] | NoneDefault tags to attach to all runs.