devel/py-opentelemetry-instrumentation-fastapi: Add py-opentelemetry-instrumentation-fastapi 0.55b1

OpenTelemetry FastAPI Instrumentation 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.
This commit is contained in:
Po-Chuan Hsieh
2025-07-01 04:48:26 +08:00
parent 3b9a9a17fe
commit 90818ffd7d
4 changed files with 45 additions and 0 deletions
+1
View File
@@ -5328,6 +5328,7 @@
SUBDIR += py-opentelemetry-instrumentation-asgi
SUBDIR += py-opentelemetry-instrumentation-dbapi
SUBDIR += py-opentelemetry-instrumentation-django
SUBDIR += py-opentelemetry-instrumentation-fastapi
SUBDIR += py-opentelemetry-proto
SUBDIR += py-opentelemetry-sdk
SUBDIR += py-opentelemetry-semantic-conventions
@@ -0,0 +1,35 @@
PORTNAME= opentelemetry-instrumentation-fastapi
PORTVERSION= 0.55b1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= opentelemetry_instrumentation_fastapi-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= OpenTelemetry FastAPI Instrumentation
WWW= https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-fastapi \
https://github.com/open-telemetry/opentelemetry-python-contrib \
https://opentelemetry.io/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}opentelemetry-api>=1.12<2:devel/py-opentelemetry-api@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}opentelemetry-instrumentation>=${PORTVERSION}<${PORTVERSION}_99:devel/py-opentelemetry-instrumentation@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}opentelemetry-instrumentation-asgi>=${PORTVERSION}<${PORTVERSION}_99:devel/py-opentelemetry-instrumentation-asgi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}opentelemetry-semantic-conventions>=${PORTVERSION}<${PORTVERSION}_99:devel/py-opentelemetry-semantic-conventions@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}opentelemetry-util-http>=${PORTVERSION}<${PORTVERSION}_99:devel/py-opentelemetry-util-http@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
OPTIONS_DEFINE= INSTRUMENTS
OPTIONS_DEFAULT=INSTRUMENTS
INSTRUMENTS_DESC= Instrumentation library
INSTRUMENTS_RUN_DEPENDS=${PYTHON_PKGNAMEPREFIX}asgiref>=3.0<4:www/py-asgiref@${PY_FLAVOR}
.include <bsd.port.mk>
@@ -0,0 +1,3 @@
TIMESTAMP = 1751208100
SHA256 (opentelemetry_instrumentation_fastapi-0.55b1.tar.gz) = bb9f8c13a053e7ff7da221248067529cc320e9308d57f3908de0afa36f6c5744
SIZE (opentelemetry_instrumentation_fastapi-0.55b1.tar.gz) = 20275
@@ -0,0 +1,6 @@
OpenTelemetry FastAPI Instrumentation 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.