python3Packages.openinference-instrumentation: init at 0.1.53

OpenTelemetry Instrumentation for AI Observability

https://github.com/Arize-ai/openinference
This commit is contained in:
Fabian Affolter
2026-06-16 12:36:43 +02:00
parent 9bee562b8c
commit e2a645256b
2 changed files with 73 additions and 0 deletions
@@ -0,0 +1,69 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
jsonschema,
nix-update-script,
openai,
openinference-semantic-conventions,
opentelemetry-api,
opentelemetry-sdk,
pytest-asyncio,
pytest-vcr,
pytestCheckHook,
typing-extensions,
wrapt,
}:
buildPythonPackage (finalAttrs: {
pname = "openinference-instrumentation";
version = "0.1.53";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Arize-ai";
repo = "openinference";
tag = "python-openinference-instrumentation-v${finalAttrs.version}";
hash = "sha256-1FzAiO3Vxt2o9YCzwPfHOn4hwvOLDt9Luv3zQTJ6J2Q=";
};
sourceRoot = "${finalAttrs.src.name}/python/${finalAttrs.pname}";
build-system = [ hatchling ];
dependencies = [
opentelemetry-api
opentelemetry-sdk
openinference-semantic-conventions
typing-extensions
wrapt
];
nativeCheckInputs = [
jsonschema
openai
pytest-asyncio
pytest-vcr
pytestCheckHook
];
pythonImportsCheck = [ "openinference.instrumentation" ];
disabledTests = [
# Tests want to connect to OpenAI's API
"TestTracerLLMDecorator"
];
passthru.updateScript = nix-update-script { };
meta = {
description = "OpenTelemetry Instrumentation for AI Observability";
homepage = "https://github.com/Arize-ai/openinference";
changelog = "https://github.com/Arize-ai/openinference/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})
+4
View File
@@ -11834,6 +11834,10 @@ self: super: with self; {
}
);
openinference-instrumentation =
callPackage ../development/python-modules/openinference-instrumentation
{ };
openinference-semantic-conventions =
callPackage ../development/python-modules/openinference-semantic-conventions
{ };