opentelemetry-instrumentation-aiopg
OpenTelemetry aiopg instrumentation
Decision gist · record as of 2026-08-14
Yes, if you use aiopg in an async application and need distributed tracing. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it safe to adopt. The beta status is not a blocker—it reflects ongoing refinement, not instability. Install it if observability of your async database layer is a priority; skip it if you have no tracing infrastructure or do not use aiopg.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; aiopg must be installed and used in an async context; an OpenTelemetry exporter must be configured separately to send traces.
- Low install friction with four runtime dependencies.
- Actively maintained as of 2026-08-14 with recent releases.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in commercial and open-source projects with minimal restrictions beyond attribution.
last release 2026-07-16 (29 days) · last repo commit 2026-08-14 · 1,086 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,285,352 downloads/mo, #2,673 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-instrumentation-aiopg
from opentelemetry.instrumentation.aiopg import AiopgInstrumentor
AiopgInstrumentor().instrument()- Whether instrumentation works with all aiopg connection pool patterns or only direct connections.
- Performance overhead of tracing in high-throughput async database workloads.
- Compatibility with specific OpenTelemetry exporter backends (Jaeger, Datadog, etc.).
What it is and what it does
This package integrates OpenTelemetry tracing into aiopg, the async PostgreSQL driver for Python. When installed and initialized, it automatically wraps aiopg database calls to emit spans—structured records of database operations—that can be exported to observability platforms for monitoring, debugging, and performance analysis.
It sits between your application and aiopg, intercepting queries and connections to record timing, status, and query details. The instrumentation depends on opentelemetry-instrumentation-dbapi for shared database tracing logic and wrapt for non-invasive function wrapping. It is currently in beta (version 0.65b0) and requires Python 3.10 or later.
Use it for
- Monitor query latency and database operation timing in async web applications using aiopg.
- Correlate database calls with HTTP requests and other services in distributed tracing systems.
- Debug slow or failing database operations by examining detailed spans in a tracing backend.
- Track database connection pool behavior and identify bottlenecks in async workloads.
- Export database metrics to observability platforms like Jaeger or Datadog for centralized monitoring.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use aiopg in an async application and need distributed tracing.
The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it safe to adopt. The beta status is not a blocker—it reflects ongoing refinement, not instability. Install it if observability of your async database layer is a priority; skip it if you have no tracing infrastructure or do not use aiopg.
Install
opentelemetry-instrumentation-aiopg on PyPI
Before you install
Low install friction with four runtime dependencies. Actively maintained as of 2026-08-14 with recent releases. Beta status (0.65b0) indicates the instrumentation is still stabilizing but usable.
Requires Python 3.10 or later; aiopg must be installed and used in an async context; an OpenTelemetry exporter must be configured separately to send traces.
License in practice
Apache-2.0 permissive license allows use in commercial and open-source projects with minimal restrictions beyond attribution.
Quickstart
pip install opentelemetry-instrumentation-aiopg
from opentelemetry.instrumentation.aiopg import AiopgInstrumentor
AiopgInstrumentor().instrument()
Verify before relying
- Whether instrumentation works with all aiopg connection pool patterns or only direct connections.
- Performance overhead of tracing in high-throughput async database workloads.
- Compatibility with specific OpenTelemetry exporter backends (Jaeger, Datadog, etc.).
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesopentelemetry-apiopentelemetry-instrumentation-dbapiopentelemetry-instrumentationwrapt |
| Maintenance | Actively maintained 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,285,352 / month, #2,673 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | 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 |
Evidence: opentelemetry_instrumentation_aiopg-0.65b0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “opentelemetry aiopg instrumentation”
- opentelemetry-instrumentation-aiopgAdds distributed tracing instrumentation for aiopg, an async…
- opentelemetry-test-utilsProvides test utilities and helpers for writing unit tests for…
- opentelemetry-instrumentation-pymemcacheAdds OpenTelemetry tracing instrumentation to pymemcache client…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also opentelemetry-instrumentation-asyncpg · opentelemetry-instrumentation-mysql · opentelemetry-instrumentation-aiokafka · opentelemetry-instrumentation-psycopg2 · opentelemetry-instrumentation-aio-pika · opentelemetry-instrumentation-psycopg · opentelemetry-instrumentation-sqlalchemy · aiopg · opentelemetry-instrumentation-cassandra · opentelemetry-instrumentation-redis