python312Packages.opentelemetry-instrumentation-httpx: init at 0.50b0

This commit is contained in:
Pol Dellaiera
2025-04-01 08:25:01 +02:00
parent d2e19a0277
commit c7354f14f3
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
{
buildPythonPackage,
hatchling,
httpx,
opentelemetry-api,
opentelemetry-instrumentation,
opentelemetry-util-http,
opentelemetry-test-utils,
pytestCheckHook,
respx,
}:
buildPythonPackage {
inherit (opentelemetry-instrumentation) version src;
pname = "opentelemetry-instrumentation-httpx";
pyproject = true;
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-httpx";
build-system = [ hatchling ];
dependencies = [
httpx
opentelemetry-api
opentelemetry-instrumentation
opentelemetry-util-http
];
nativeCheckInputs = [
opentelemetry-test-utils
pytestCheckHook
respx
];
pythonImportsCheck = [ "opentelemetry.instrumentation.httpx" ];
meta = opentelemetry-instrumentation.meta // {
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-httpx";
description = "Allows tracing HTTP requests made by the httpx library";
};
}

View File

@@ -10291,6 +10291,10 @@ self: super: with self; {
callPackage ../development/python-modules/opentelemetry-instrumentation-grpc
{ };
opentelemetry-instrumentation-httpx =
callPackage ../development/python-modules/opentelemetry-instrumentation-httpx
{ };
opentelemetry-instrumentation-logging =
callPackage ../development/python-modules/opentelemetry-instrumentation-logging
{ };