> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fiddler.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Complete API reference for fiddler-langgraph

[![PyPI](https://img.shields.io/pypi/v/fiddler-langgraph)](https://pypi.org/project/fiddler-langgraph/)

## Overview

Complete API reference documentation for the `fiddler-langgraph` package, which
instruments [LangGraph](https://langchain-ai.github.io/langgraph/) (and the
underlying LangChain callback system) and exports OpenTelemetry traces to
Fiddler.

```bash theme={null}
pip install fiddler-langgraph
```

```python theme={null}
from fiddler_langgraph import LangGraphInstrumentor
```

## 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](/sdk-api/langgraph/add-session-attributes)
* [add\_span\_attributes](/sdk-api/langgraph/add-span-attributes)
* [clear\_llm\_context](/sdk-api/langgraph/clear-llm-context)
* [LangGraphInstrumentor](/sdk-api/langgraph/lang-graph-instrumentor)
* [set\_conversation\_id](/sdk-api/langgraph/set-conversation-id)
* [set\_llm\_context](/sdk-api/langgraph/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](/sdk-api/otel) 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`.

* [FiddlerChain](/sdk-api/langgraph/fiddler-chain)
* [FiddlerClient](/sdk-api/langgraph/fiddler-client)
* [FiddlerGeneration](/sdk-api/langgraph/fiddler-generation)
* [FiddlerSpan](/sdk-api/langgraph/fiddler-span)
* [FiddlerTool](/sdk-api/langgraph/fiddler-tool)
* [get\_client](/sdk-api/langgraph/get-client)
* [get\_current\_span](/sdk-api/langgraph/get-current-span)
* [trace](/sdk-api/langgraph/trace)
