python3Packages.opentelemetry-instrumentation-celery: init at 0.47b0 (#347444)

This commit is contained in:
Sandro 2024-10-10 14:22:58 +02:00 committed by GitHub
commit 4565c4988d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{
lib,
buildPythonPackage,
hatchling,
opentelemetry-api,
opentelemetry-instrumentation,
opentelemetry-semantic-conventions,
opentelemetry-test-utils,
billiard,
celery,
pytestCheckHook,
}:
buildPythonPackage rec {
inherit (opentelemetry-instrumentation) version src;
pname = "opentelemetry-instrumentation-celery";
pyproject = true;
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-celery";
build-system = [ hatchling ];
dependencies = [
billiard
celery
opentelemetry-api
opentelemetry-instrumentation
opentelemetry-semantic-conventions
];
optional-dependencies = {
instruments = [ celery ];
};
nativeCheckInputs = [
opentelemetry-test-utils
pytestCheckHook
];
pythonImportsCheck = [ "opentelemetry.instrumentation.celery" ];
meta = opentelemetry-instrumentation.meta // {
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-celery";
description = "Celery instrumentation for OpenTelemetry";
};
}

View File

@ -9389,6 +9389,8 @@ self: super: with self; {
opentelemetry-instrumentation-asgi = callPackage ../development/python-modules/opentelemetry-instrumentation-asgi { };
opentelemetry-instrumentation-celery = callPackage ../development/python-modules/opentelemetry-instrumentation-celery { };
opentelemetry-instrumentation-dbapi = callPackage ../development/python-modules/opentelemetry-instrumentation-dbapi { };
opentelemetry-instrumentation-django = callPackage ../development/python-modules/opentelemetry-instrumentation-django { };