Skip to content

Commit

Permalink
python3Packages.opentelemetry-instrumentation-requests: init at 0.47b0
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Oct 8, 2024
1 parent 4e9e794 commit 70495ce
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
buildPythonPackage,
requests,
hatchling,
opentelemetry-api,
opentelemetry-instrumentation,
opentelemetry-semantic-conventions,
opentelemetry-util-http,
httpretty,
opentelemetry-test-utils,
pytestCheckHook,
pythonOlder,
}:

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

disabled = pythonOlder "3.8";

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

build-system = [ hatchling ];

dependencies = [
opentelemetry-api
opentelemetry-instrumentation
opentelemetry-semantic-conventions
opentelemetry-util-http
requests
];

nativeCheckInputs = [
httpretty
opentelemetry-test-utils
pytestCheckHook
];

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

meta = opentelemetry-instrumentation.meta // {
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-requests";
description = "Requests 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 @@ -9387,6 +9387,8 @@ self: super: with self; {

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

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

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

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

0 comments on commit 70495ce

Please sign in to comment.