devel/py-opentelemetry-instrumentation-psycopg2: Add py-opentelemetry-instrumentation-psycopg2 0.55b1
OpenTelemetry Psycopg Instrumentation provides the integration with PostgreSQL. It supports the Psycopg library, it can be enabled by using Psycopg2Instrumentor.
This commit is contained in:
@@ -5330,6 +5330,7 @@
|
||||
SUBDIR += py-opentelemetry-instrumentation-django
|
||||
SUBDIR += py-opentelemetry-instrumentation-fastapi
|
||||
SUBDIR += py-opentelemetry-instrumentation-flask
|
||||
SUBDIR += py-opentelemetry-instrumentation-psycopg2
|
||||
SUBDIR += py-opentelemetry-proto
|
||||
SUBDIR += py-opentelemetry-sdk
|
||||
SUBDIR += py-opentelemetry-semantic-conventions
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
PORTNAME= opentelemetry-instrumentation-psycopg2
|
||||
PORTVERSION= 0.55b1
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= PYPI
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= opentelemetry_instrumentation_psycopg2-${PORTVERSION}
|
||||
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
COMMENT= OpenTelemetry psycopg2 instrumentation
|
||||
WWW= https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-psycopg2 \
|
||||
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-dbapi>=${PORTVERSION}<${PORTVERSION}_99:devel/py-opentelemetry-instrumentation-dbapi@${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}psycopg2>=2.7.3.1:databases/py-psycopg2@${PY_FLAVOR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1751208104
|
||||
SHA256 (opentelemetry_instrumentation_psycopg2-0.55b1.tar.gz) = fa7035b328b77196e03a631921e0fc10f4b1d4d36d9b66fe9a38971bb88af6d4
|
||||
SIZE (opentelemetry_instrumentation_psycopg2-0.55b1.tar.gz) = 10651
|
||||
@@ -0,0 +1,10 @@
|
||||
--- pyproject.toml.orig 2020-02-02 00:00:00 UTC
|
||||
+++ pyproject.toml
|
||||
@@ -33,7 +33,6 @@ instruments = [
|
||||
[project.optional-dependencies]
|
||||
instruments = [
|
||||
"psycopg2 >= 2.7.3.1",
|
||||
- "psycopg2-binary >= 2.7.3.1",
|
||||
]
|
||||
|
||||
[project.entry-points.opentelemetry_instrumentor]
|
||||
@@ -0,0 +1,3 @@
|
||||
OpenTelemetry Psycopg Instrumentation provides the integration with PostgreSQL.
|
||||
It supports the Psycopg library, it can be enabled by using
|
||||
Psycopg2Instrumentor.
|
||||
Reference in New Issue
Block a user