skillfed

opentelemetry-instrumentation-sqlite3

OpenTelemetry SQLite3 instrumentation

opentelemetry-instrumentation-sqlite3 v0.65b0 5.9M downloads/30d#2,018 on PyPI1,086
Permissive license Apache-2.0 Active released

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-sqlite3

uv

uv add opentelemetry-instrumentation-sqlite3

poetry

poetry add opentelemetry-instrumentation-sqlite3

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

sqlite3 tracing instrumentationopentelemetry database monitoringsql query observabilitysqlite3 performance metricsdistributed tracing sqlitedatabase call instrumentationopentelemetry sqlite3
observabilitytracingdatabase-instrumentation

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-psycopg

Adds OpenTelemetry tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-pymysql

Adds OpenTelemetry tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-mysqlclient

Adds OpenTelemetry tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-pymssql

Adds automatic tracing and monitoring of…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-dbapi

Adds automatic tracing and observability…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-psycopg2

Adds distributed tracing instrumentation to…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-pymongo

Adds automatic tracing and observability…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-sqlalchemy

Adds distributed tracing to SQLAlchemy database…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-system-metrics

Collects system performance metrics (CPU,…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-pyramid

Adds automatic tracing and metrics collection…

permissive · top 5,000 on PyPI