python3Packages.opentelemetry-instrumentation-redis: init at 0.47b0 (#347253)

This commit is contained in:
Yt 2024-10-10 06:35:20 -04:00 committed by GitHub
commit a963b98703
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 53 additions and 0 deletions

View File

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

View File

@ -9403,6 +9403,8 @@ self: super: with self; {
opentelemetry-instrumentation-requests = callPackage ../development/python-modules/opentelemetry-instrumentation-requests { };
opentelemetry-instrumentation-redis = callPackage ../development/python-modules/opentelemetry-instrumentation-redis { };
opentelemetry-instrumentation-wsgi = callPackage ../development/python-modules/opentelemetry-instrumentation-wsgi { };
opentelemetry-proto = callPackage ../development/python-modules/opentelemetry-proto { };