From 9f1e9873b71e336ca405b4acf0ee46c55165e69e Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Thu, 13 Mar 2025 10:47:35 +0100 Subject: [PATCH] Relax openai dependency in boostrap So we can release the elastic openai instrumentation without requiring a release of EDOT. While at it bump the elastic openai instrumentation version installed in the Dockerfile to latest. --- operator/requirements.txt | 2 +- src/elasticotel/instrumentation/bootstrap.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/operator/requirements.txt b/operator/requirements.txt index 4a3b616..387b68c 100644 --- a/operator/requirements.txt +++ b/operator/requirements.txt @@ -55,4 +55,4 @@ opentelemetry-instrumentation-urllib==0.51b0 opentelemetry-instrumentation-urllib3==0.51b0 opentelemetry-instrumentation-wsgi==0.51b0 -elastic-opentelemetry-instrumentation-openai==0.6.0 +elastic-opentelemetry-instrumentation-openai==0.6.1 diff --git a/src/elasticotel/instrumentation/bootstrap.py b/src/elasticotel/instrumentation/bootstrap.py index 1036a09..f89afb0 100644 --- a/src/elasticotel/instrumentation/bootstrap.py +++ b/src/elasticotel/instrumentation/bootstrap.py @@ -32,7 +32,7 @@ _EDOT_INSTRUMENTATIONS = [ { "library": "openai >= 1.2.0", - "instrumentation": "elastic-opentelemetry-instrumentation-openai==0.6.0", + "instrumentation": "elastic-opentelemetry-instrumentation-openai", } ]