Merge pull request #331536 from echozio/python3Packages/opentelemetry-instrumentation-psycopg2

python3Packages.opentelemetry-instrumentation-psycopg2: init at 0.46b0
This commit is contained in:
OTABI Tomoya 2024-08-02 01:22:55 +09:00 committed by GitHub
commit fc27807b85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{
buildPythonPackage,
pythonOlder,
pytestCheckHook,
hatchling,
opentelemetry-api,
opentelemetry-instrumentation,
opentelemetry-semantic-conventions,
opentelemetry-test-utils,
}:
buildPythonPackage {
inherit (opentelemetry-instrumentation) version src;
pname = "opentelemetry-instrumentation-dbapi";
pyproject = true;
disabled = pythonOlder "3.8";
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-dbapi";
build-system = [ hatchling ];
dependencies = [
opentelemetry-api
opentelemetry-instrumentation
opentelemetry-semantic-conventions
];
nativeCheckInputs = [
opentelemetry-test-utils
pytestCheckHook
];
pythonImportsCheck = [ "opentelemetry.instrumentation.dbapi" ];
meta = opentelemetry-instrumentation.meta // {
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-dbapi";
description = "OpenTelemetry Database API instrumentation";
};
}

View file

@ -0,0 +1,42 @@
{
buildPythonPackage,
pythonOlder,
pytestCheckHook,
hatchling,
opentelemetry-api,
opentelemetry-instrumentation,
opentelemetry-instrumentation-dbapi,
opentelemetry-test-utils,
psycopg2,
}:
buildPythonPackage {
inherit (opentelemetry-instrumentation) version src;
pname = "opentelemetry-instrumentation-psycopg2";
pyproject = true;
disabled = pythonOlder "3.8";
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-psycopg2";
build-system = [ hatchling ];
dependencies = [
psycopg2
opentelemetry-api
opentelemetry-instrumentation
opentelemetry-instrumentation-dbapi
];
nativeCheckInputs = [
opentelemetry-test-utils
pytestCheckHook
];
pythonImportsCheck = [ "opentelemetry.instrumentation.psycopg2" ];
meta = opentelemetry-instrumentation.meta // {
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-psycopg2";
description = "OpenTelemetry Psycopg Instrumentation";
};
}

View file

@ -9486,6 +9486,8 @@ self: super: with self; {
opentelemetry-instrumentation-asgi = callPackage ../development/python-modules/opentelemetry-instrumentation-asgi { };
opentelemetry-instrumentation-dbapi = callPackage ../development/python-modules/opentelemetry-instrumentation-dbapi { };
opentelemetry-instrumentation-django = callPackage ../development/python-modules/opentelemetry-instrumentation-django { };
opentelemetry-instrumentation-fastapi = callPackage ../development/python-modules/opentelemetry-instrumentation-fastapi { };
@ -9494,6 +9496,8 @@ self: super: with self; {
opentelemetry-instrumentation-grpc = callPackage ../development/python-modules/opentelemetry-instrumentation-grpc { };
opentelemetry-instrumentation-psycopg2 = callPackage ../development/python-modules/opentelemetry-instrumentation-psycopg2 { };
opentelemetry-instrumentation-wsgi = callPackage ../development/python-modules/opentelemetry-instrumentation-wsgi { };
opentelemetry-proto = callPackage ../development/python-modules/opentelemetry-proto { };