opentelemetry-instrumentation-fastapi
OpenTelemetry FastAPI Instrumentation
Install
opentelemetry-instrumentation-fastapi on PyPI
pip
pip install opentelemetry-instrumentation-fastapiuv
uv add opentelemetry-instrumentation-fastapipoetry
poetry add opentelemetry-instrumentation-fastapiPackage 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-asgi, opentelemetry-instrumentation, opentelemetry-semantic-conventions, opentelemetry-util-http |
| Maintenance | actively maintained — 28 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: opentelemetry_instrumentation_fastapi-0.65b0-py3-none-any.whl
About opentelemetry-instrumentation-fastapi
from the package's own PyPI description — quoted content, verbatim
OpenTelemetry FastAPI Instrumentation
|pypi|
.. |pypi| image:: https://badge.fury.io/py/opentelemetry-instrumentation-fastapi.svg :target: https://pypi.org/project/opentelemetry-instrumentation-fastapi/
This library provides automatic and manual instrumentation of FastAPI web frameworks, instrumenting http requests served by applications utilizing the framework.
auto-instrumentation using the opentelemetry-instrumentation package is also supported.
Installation
::
pip install opentelemetry-instrumentation-fastapi
References
OpenTelemetry Project <https://opentelemetry.io/>_OpenTelemetry Python Examples <https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples>_
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Automatically instruments FastAPI applications to emit OpenTelemetry traces for HTTP requests, enabling observability of web request handling and performance.
Low install friction with a pure-wheel distribution and five straightforward OpenTelemetry dependencies. Actively maintained with a release 28 days ago and recent commits; Beta status indicates ongoing development.
Apache-2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions, requiring only license and copyright notice retention.
Usage
pip install opentelemetry-instrumentation-fastapi
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor
FastAPIInstrumentor.instrument_app(app)
Requires Python >=3.10; OpenTelemetry SDK and exporter must be configured separately to emit traces.
Verdict: A well-maintained, low-friction instrumentation library for FastAPI observability. Active development, permissive licensing, and zero known vulnerabilities make it suitable for production tracing pipelines, though Beta status warrants monitoring for API changes.
Needs verification
- Whether auto-instrumentation via opentelemetry-instrumentation entry points is fully functional in version 0.65b0
- Performance overhead of automatic instrumentation on high-throughput applications
- Compatibility with specific middleware or async patterns in instrumented applications
Similar packages
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-dbapipermissive · top 1,000 on PyPI
opentelemetry-instrumentation-psycopg2permissive · top 1,000 on PyPI
opentelemetry-instrumentation-djangopermissive · top 1,000 on PyPI
opentelemetry-instrumentation-asgipermissive · top 1,000 on PyPI
opentelemetry-instrumentation-flaskpermissive · top 1,000 on PyPI
opentelemetry-instrumentation-redispermissive · top 1,000 on PyPI
opentelemetry-semantic-conventionspermissive · top 100 on PyPI
opentelemetry-instrumentationpermissive · top 1,000 on PyPI
azure-monitor-opentelemetry-exporterpermissive · top 1,000 on PyPI