Merge pull request #282349 from Ma27/otel-python
python3.pkgs: opentelemetry-api: 1.21.0 -> 1.22.0, opentelemetry-instrumentation: 1.16.0 -> 0.43b0 (sic), opentelemetry-instrumentation-flask: init at 0.43b0
This commit is contained in:
commit
fc1b3f6a60
5 changed files with 57 additions and 4 deletions
|
@ -14,7 +14,7 @@
|
|||
let
|
||||
self = buildPythonPackage rec {
|
||||
pname = "opentelemetry-api";
|
||||
version = "1.21.0";
|
||||
version = "1.22.0";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
# to avoid breakage, every package in opentelemetry-python must inherit this version, src, and meta
|
||||
|
@ -22,7 +22,7 @@ let
|
|||
owner = "open-telemetry";
|
||||
repo = "opentelemetry-python";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-igG0oHRa6M4d7pMp7fgBo13x5XADZeYgFAL8WzDXsyw=";
|
||||
hash = "sha256-6BmBmooVaH1FOpgXpFlYth0r9XaNtmb9UezeP8hWEok=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/opentelemetry-api";
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
{ buildPythonPackage
|
||||
, flask
|
||||
, hatchling
|
||||
, opentelemetry-api
|
||||
, opentelemetry-instrumentation
|
||||
, opentelemetry-instrumentation-wsgi
|
||||
, opentelemetry-semantic-conventions
|
||||
, opentelemetry-test-utils
|
||||
, opentelemetry-util-http
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
inherit (opentelemetry-instrumentation) version src;
|
||||
pname = "opentelemetry-instrumentation-flask";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-flask";
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
nativeBuildInputs = [ hatchling ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
flask
|
||||
opentelemetry-api
|
||||
opentelemetry-instrumentation
|
||||
opentelemetry-instrumentation-wsgi
|
||||
opentelemetry-semantic-conventions
|
||||
opentelemetry-util-http
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
opentelemetry-test-utils
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "opentelemetry.instrumentation.flask" ];
|
||||
|
||||
meta = opentelemetry-instrumentation.meta // {
|
||||
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-flask";
|
||||
description = "Flask Middleware for OpenTelemetry based on the WSGI middleware";
|
||||
};
|
||||
}
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "opentelemetry-instrumentation";
|
||||
version = "1.16.0";
|
||||
version = "0.43b0";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
# to avoid breakage, every package in opentelemetry-python-contrib must inherit this version, src, and meta
|
||||
|
@ -21,7 +21,7 @@ buildPythonPackage rec {
|
|||
owner = "open-telemetry";
|
||||
repo = "opentelemetry-python-contrib";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-6tGQjPBej2zv5yJN0S46le3kyD7q3TELYyDmyxlp5Wo=";
|
||||
hash = "sha256-fUyA3cPXAxO506usEWxOUX9xiapc8Ocnbx73LP6ghRE=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/opentelemetry-instrumentation";
|
||||
|
|
|
@ -33,6 +33,12 @@ buildPythonPackage {
|
|||
pytestCheckHook
|
||||
];
|
||||
|
||||
# https://github.com/open-telemetry/opentelemetry-python-contrib/issues/1940
|
||||
disabledTests = [
|
||||
"test_nonstandard_method"
|
||||
"test_nonstandard_method_allowed"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "opentelemetry.util.http" ];
|
||||
|
||||
meta = opentelemetry-instrumentation.meta // {
|
||||
|
|
|
@ -8772,6 +8772,8 @@ self: super: with self; {
|
|||
|
||||
opentelemetry-instrumentation-django = callPackage ../development/python-modules/opentelemetry-instrumentation-django { };
|
||||
|
||||
opentelemetry-instrumentation-flask = callPackage ../development/python-modules/opentelemetry-instrumentation-flask { };
|
||||
|
||||
opentelemetry-instrumentation-grpc = callPackage ../development/python-modules/opentelemetry-instrumentation-grpc { };
|
||||
|
||||
opentelemetry-instrumentation-wsgi = callPackage ../development/python-modules/opentelemetry-instrumentation-wsgi { };
|
||||
|
|
Loading…
Reference in a new issue