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
onny committed Oct 12, 2024
1 parent 8270506 commit a5e0e45
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
lib,
buildPythonPackage,
hatchling,
opentelemetry-api,
opentelemetry-instrumentation,
opentelemetry-test-utils,
}:

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 = [ 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 @@ -9409,6 +9409,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 a5e0e45

Please sign in to comment.