Overview
Complete API reference documentation for thefiddler-langgraph package, which
instruments LangGraph (and the
underlying LangChain callback system) and exports OpenTelemetry traces to
Fiddler.
Components
Instrumentation
Native LangGraph APIs for tracing, attributes, and LLM context.LangGraphInstrumentor patches the LangChain callback manager so all LangGraph runs emit Fiddler spans. add_span_attributes attaches component-scoped attributes to a specific model, retriever, or tool. set_llm_context and clear_llm_context attach and remove retrieval context (e.g. retrieved documents) on the active model so it appears on its LLM spans. add_session_attributes adds an attribute that appears on every span in the current context, and set_conversation_id (re-exported from fiddler-otel) tags all spans in the current context with a conversation ID.
- add_session_attributes
- add_span_attributes
- clear_llm_context
- LangGraphInstrumentor
- set_conversation_id
- set_llm_context
Re Exported From Otel
fiddler-langgraph re-exports the core fiddler-otel symbols so you only need to install one package. See the Fiddler OTel SDK reference for full details on each: FiddlerClient (the global client; required to construct LangGraphInstrumentor), trace (decorator that starts a Fiddler span around any function), get_current_span (return the active Fiddler span if any), get_client (return the global FiddlerClient instance), and the manual span wrappers FiddlerChain, FiddlerGeneration, FiddlerSpan, and FiddlerTool.