opentelemetry-instrumentation-sqlite3
OpenTelemetry SQLite3 instrumentation
What it is and what it does
This package integrates SQLite3 database operations into OpenTelemetry's distributed tracing ecosystem. It acts as a bridge between the sqlite3 standard library module and OpenTelemetry's instrumentation framework, automatically wrapping database calls to emit trace spans. When installed and activated, it captures SQL operations executed through sqlite3 and forwards them to whatever tracer and exporter your application has configured—typically for centralized observability platforms.
The package is built on top of opentelemetry-instrumentation-dbapi, which provides the generic database instrumentation layer, and depends on opentelemetry-api and opentelemetry-instrumentation for core tracing infrastructure. It is currently in beta status and supports Python 3.10 through 3.14. No known security vulnerabilities are recorded.
Use it for:
- Trace SQLite3 queries in a distributed system to correlate database operations with upstream requests and downstream services.
- Monitor SQLite3 performance in production by exporting span metrics (latency, error rates) to observability platforms.
- Debug slow or failing SQLite3 operations by inspecting detailed trace context alongside application logs.
- Validate database query patterns in integration tests by asserting on captured spans.
- Profile SQLite3 usage in embedded or edge applications where centralized logging is unavailable.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds OpenTelemetry tracing instrumentation to SQLite3 database calls, automatically capturing SQL operations and their performance metrics.
Yes, if you are already using OpenTelemetry in your application and need visibility into SQLite3 operations. The package is actively maintained, has low install friction, and carries a permissive license. It is still in beta, so expect potential API changes; verify that span capture and attribute coverage meet your observability needs before relying on it in production.
Install
opentelemetry-instrumentation-sqlite3 on PyPI
pip
pip install opentelemetry-instrumentation-sqlite3uv
uv add opentelemetry-instrumentation-sqlite3poetry
poetry add opentelemetry-instrumentation-sqlite3Installing opentelemetry-instrumentation-sqlite3
Before you install
Low install friction with a pure-Python wheel. Actively maintained as of 2026-08-14 with recent release activity. Depends on three core OpenTelemetry packages (opentelemetry-api, opentelemetry-instrumentation, opentelemetry-instrumentation-dbapi), all standard instrumentation infrastructure.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects without viral obligations.
Quickstart
pip install opentelemetry-instrumentation-sqlite3
from opentelemetry.instrumentation.sqlite3 import SQLite3Instrumentor
SQLite3Instrumentor().instrument()
Requires Python 3.10 or later; an active OpenTelemetry tracer and exporter must be configured separately to capture the instrumented spans.
Verify before relying
- Whether instrumentation automatically wraps all sqlite3 module calls or requires explicit connection/cursor wrapping.
- What specific span attributes (e.g., sql.query, db.name, db.operation) are captured and whether they can be customized.
- Whether there are known performance overheads or sampling strategies recommended for high-volume SQLite3 workloads.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — opentelemetry-api, opentelemetry-instrumentation-dbapi, opentelemetry-instrumentation |
| Maintenance | actively maintained — 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,881,869/month — #2,018 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_instrumentation_sqlite3-0.65b0-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-psycopgAdds OpenTelemetry tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-pymysqlAdds OpenTelemetry tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-mysqlclientAdds OpenTelemetry tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-pymssqlAdds automatic tracing and monitoring of…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-dbapiAdds automatic tracing and observability…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-psycopg2Adds distributed tracing instrumentation to…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-pymongoAdds automatic tracing and observability…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-sqlalchemyAdds distributed tracing to SQLAlchemy database…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-system-metricsCollects system performance metrics (CPU,…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-pyramidAdds automatic tracing and metrics collection…
permissive · top 5,000 on PyPI