skillfed

opentelemetry-instrumentation-aiohttp-server

Aiohttp server instrumentation for OpenTelemetry

opentelemetry-instrumentation-aiohttp-server v0.65b0 1.4M downloads/30d#3,986 on PyPI1,086
Permissive license Apache-2.0 Active released

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

uv

uv add opentelemetry-instrumentation-aiohttp-server

poetry

poetry add opentelemetry-instrumentation-aiohttp-server

Installing 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

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

aiohttp server tracingopentelemetry http instrumentationdistributed tracing aiohttphttp request observabilityopentelemetry aiohttp integration
observabilitydistributed-tracingasync-web

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-aiohttp-client

Adds distributed tracing to HTTP requests made…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-starlette

Adds automatic tracing and observability…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-boto

Adds distributed tracing to AWS SDK (Boto)…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-aiokafka

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI

acceldata-sdk

Acceldata SDK provides Python instrumentation…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-django

Adds distributed tracing to Django applications…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-aio-pika

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-fastapi

Automatically instruments FastAPI applications…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-boto3sqs

Adds distributed tracing to Boto3 SQS calls via…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-redis

Adds distributed tracing to Redis client calls…

permissive · top 1,000 on PyPI