---
title: "SQLite3 Tracing"
description: "Trace SQLite3 spans with Judgment."
sidebar:
  label: "SQLite3"
seo:
  title: "SQLite3 Tracing with Judgment | Integration Docs"
  description: "Trace SQLite3 spans with Judgment to connect application behavior to production AI agent monitoring and evaluation."
---

SQLite3 tracing uses the standard OpenTelemetry SQLite3 instrumentation and
routes database spans through Judgment.

{/* @test-flow
  id: tracing-db-sqlite3
  lang: python
  env: JUDGMENT_API_KEY, JUDGMENT_ORG_ID
*/}

**uv**

```bash
uv add judgeval opentelemetry-instrumentation-sqlite3
```

**pip**

```bash
pip install judgeval opentelemetry-instrumentation-sqlite3
```

```python title="sqlite3_tracing.py"

from judgeval import Tracer
from opentelemetry.instrumentation.sqlite3 import SQLite3Instrumentor

Tracer.init(project_name="sqlite3_app")
Tracer.registerOTELInstrumentation(SQLite3Instrumentor())

connection = sqlite3.connect(":memory:")
connection.execute("select 1").fetchone()
Tracer.force_flush()
```
