---
title: Langgraph
seo:
  title: Langgraph — Python SDK
  description: >-
    Integration that routes LangGraph spans through the Judgment pipeline.
    (Python SDK)
description: Integration that routes LangGraph spans through the Judgment pipeline.
---

Enables LangGraph's built-in OpenTelemetry export and points it at the
active Judgment tracer provider. Call `initialize()` once at startup.

```python
from judgeval import Tracer
from judgeval.integrations import Langgraph

Tracer.init(project_name="my-agent")
Langgraph.initialize()
```

## initialize()

Activate LangGraph OTEL tracing through Judgment.

```python
def initialize(otel_only=True):
```

### Parameters

| Prop | Type | Default | Description |
| - | - | - | - |
| `otel_only?` | `bool` | `True` | If True (default), disables the LangSmith backend so spans are only sent to Judgment. |
