Skip to content

Commit

Permalink
python3Packages.opentelemetry-instrumentation-logging: init at 0.47b0 (
Browse files Browse the repository at this point in the history
  • Loading branch information
happysalada authored Oct 13, 2024
2 parents a693354 + 7ffeca7 commit ab6ea0b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
lib,
buildPythonPackage,
hatchling,
opentelemetry-api,
opentelemetry-instrumentation,
opentelemetry-test-utils,
pytestCheckHook,
}:

buildPythonPackage rec {
inherit (opentelemetry-instrumentation) version src;
pname = "opentelemetry-instrumentation-logging";
pyproject = true;

sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-logging";

build-system = [ hatchling ];

dependencies = [
opentelemetry-api
opentelemetry-instrumentation
];

nativeCheckInputs = [
opentelemetry-test-utils
pytestCheckHook
];

pythonImportsCheck = [ "opentelemetry.instrumentation.logging" ];

meta = opentelemetry-instrumentation.meta // {
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-logging";
description = "Logging instrumentation for OpenTelemetry";
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9415,6 +9415,8 @@ self: super: with self; {

opentelemetry-instrumentation-grpc = callPackage ../development/python-modules/opentelemetry-instrumentation-grpc { };

opentelemetry-instrumentation-logging = callPackage ../development/python-modules/opentelemetry-instrumentation-logging { };

opentelemetry-instrumentation-psycopg2 = callPackage ../development/python-modules/opentelemetry-instrumentation-psycopg2 { };

opentelemetry-instrumentation-requests = callPackage ../development/python-modules/opentelemetry-instrumentation-requests { };
Expand Down

0 comments on commit ab6ea0b

Please sign in to comment.