skillfed

opentelemetry-instrumentation-fastapi

OpenTelemetry FastAPI Instrumentation

opentelemetry-instrumentation-fastapi Permissive license Apache-2.0 Active 1,086 v0.65b0 released

Install

opentelemetry-instrumentation-fastapi on PyPI

pip

pip install opentelemetry-instrumentation-fastapi

uv

uv add opentelemetry-instrumentation-fastapi

poetry

poetry add opentelemetry-instrumentation-fastapi

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

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

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
fastapi tracing instrumentationopentelemetry fastapihttp request observabilityfastapi distributed tracingautomatic span generationfastapi telemetryweb framework instrumentation

Similar packages