opentelemetry-instrumentation-aiohttp-server
Aiohttp server instrumentation for OpenTelemetry
What it is and what it does
This package integrates OpenTelemetry tracing into aiohttp server applications, automatically capturing HTTP request and response data for distributed tracing. It works by instrumenting the aiohttp server library to emit trace spans that can be exported to observability backends like Jaeger, Datadog, or other OpenTelemetry-compatible collectors.
The package depends on opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, opentelemetry-util-http, and wrapt to hook into aiohttp's request lifecycle. It requires Python 3.10 or later and is designed for developers building async web services who need visibility into HTTP traffic patterns, latencies, and errors across distributed systems.
Use it for:
- Add distributed tracing to an aiohttp server to track request flows across microservices
- Export HTTP request spans to a tracing backend for performance monitoring and debugging
- Correlate aiohttp server requests with upstream client traces in a full-stack observability setup
- Capture HTTP metadata (status codes, headers, latency) automatically without modifying handler code
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds distributed tracing to aiohttp server applications by instrumenting HTTP requests with OpenTelemetry, capturing request/response metadata for observability.
Yes, if you are running aiohttp servers and need distributed tracing. The package has low install friction, active maintenance, no known vulnerabilities, and Apache-2.0 licensing. The Beta status warrants checking release notes, but the OpenTelemetry ecosystem is mature and widely used in production. Install it as part of your observability stack.
Install
opentelemetry-instrumentation-aiohttp-server on PyPI
pip
pip install opentelemetry-instrumentation-aiohttp-serveruv
uv add opentelemetry-instrumentation-aiohttp-serverpoetry
poetry add opentelemetry-instrumentation-aiohttp-serverInstalling opentelemetry-instrumentation-aiohttp-server
Before you install
Low friction install with a stable dependency chain. Actively maintained as of 2026-08-14 with recent releases; marked Beta but part of the established OpenTelemetry ecosystem.
License in practice
Apache-2.0 permissive license allows use in most projects, including proprietary software, with minimal legal friction.
Quickstart
pip install opentelemetry-instrumentation-aiohttp-server
from opentelemetry.instrumentation.aiohttp_server import AioHttpServerInstrumentor
AioHttpServerInstrumentor().instrument()
Requires Python 3.10 or later; aiohttp server library must be installed separately and configured before instrumentation is applied.
Verify before relying
- Whether this version (0.65b0) is production-ready or still experimental despite Beta status
- Compatibility with specific aiohttp server versions not listed in the fact sheet
- Performance overhead of instrumentation in high-throughput scenarios
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, opentelemetry-util-http, wrapt |
| Maintenance | actively maintained — 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,375,973/month — #3,986 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_instrumentation_aiohttp_server-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-aiohttp-clientAdds distributed tracing to HTTP requests made…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-starletteAdds automatic tracing and observability…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-botoAdds distributed tracing to AWS SDK (Boto)…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-aiokafkaAdds distributed tracing instrumentation to…
permissive · top 5,000 on PyPI
acceldata-sdkAcceldata SDK provides Python instrumentation…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-djangoAdds distributed tracing to Django applications…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-aio-pikaAdds distributed tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-fastapiAutomatically instruments FastAPI applications…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-boto3sqsAdds distributed tracing to Boto3 SQS calls via…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-redisAdds distributed tracing to Redis client calls…
permissive · top 1,000 on PyPI