mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-02 19:47:17 +08:00

* refactor(fastapi): migrate HTTP_ROUTE from SpanAttributes to new semantic conventions Replaced usage of `SpanAttributes.HTTP_ROUTE` with `opentelemetry.semconv.attributes.http_attributes.HTTP_ROUTE` as part of the migration away from `SpanAttributes`. Refs: #3475 * refactor(fastapi): refactor tests * refactor(fastapi): remove duplicated import * sort imports --------- Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
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>`_