From a4ba44f61f857c0adfae62b4c5d4747c85350057 Mon Sep 17 00:00:00 2001 From: Deborah Jacob Date: Fri, 6 Feb 2026 22:00:48 -0500 Subject: [PATCH 1/2] fix: add Python 3.10 markers for GenAI instrumentation packages Five GenAI instrumentation packages (anthropic, vertexai, google-generativeai, langchain, crewai) require Python >= 3.10. Add environment markers so pip install succeeds on Python 3.9. Also fix trailing whitespace from merge. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Deborah Jacob --- pyproject.toml | 10 +++++----- tests/unit/test_data_tracking.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 224eb49..035a2b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,12 +103,12 @@ dependencies = [ # ── GenAI / AI ───────────────────────────────────────────────── "opentelemetry-instrumentation-openai-v2 >= 2.0b0", - "opentelemetry-instrumentation-anthropic >= 0.1b0", - "opentelemetry-instrumentation-vertexai >= 0.1b0", - "opentelemetry-instrumentation-google-generativeai >= 0.1b0", - "opentelemetry-instrumentation-langchain >= 0.1b0", + "opentelemetry-instrumentation-anthropic >= 0.1b0; python_version >= '3.10'", + "opentelemetry-instrumentation-vertexai >= 0.1b0; python_version >= '3.10'", + "opentelemetry-instrumentation-google-generativeai >= 0.1b0; python_version >= '3.10'", + "opentelemetry-instrumentation-langchain >= 0.1b0; python_version >= '3.10'", "opentelemetry-instrumentation-ollama >= 0.1b0", - "opentelemetry-instrumentation-crewai >= 0.1b0", + "opentelemetry-instrumentation-crewai >= 0.1b0; python_version >= '3.10'", # ── Runtime / Concurrency ────────────────────────────────────── "opentelemetry-instrumentation-logging >= 0.41b0", diff --git a/tests/unit/test_data_tracking.py b/tests/unit/test_data_tracking.py index a9990be..6d0f003 100644 --- a/tests/unit/test_data_tracking.py +++ b/tests/unit/test_data_tracking.py @@ -207,7 +207,7 @@ def test_messaging_operations(self): assert MessagingOperation.PUBLISH == "publish" assert MessagingOperation.RECEIVE == "receive" assert MessagingOperation.CONSUME == "consume" - + class TestSystemNormalization: """Tests for system name normalization maps.""" From c52c467d67092c43710fa0eb0bac50f9faf17340 Mon Sep 17 00:00:00 2001 From: Deborah Jacob Date: Fri, 6 Feb 2026 22:39:11 -0500 Subject: [PATCH 2/2] fix: cap httpx < 0.28 for Python 3.9 (starlette TestClient compat) httpx 0.28+ removed the `app` parameter from Client.__init__(), breaking starlette < 0.30's TestClient. Cap httpx on Python 3.9 where starlette is pinned to < 0.30. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Deborah Jacob --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 035a2b6..c0f3d65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -131,7 +131,8 @@ dev = [ "pytest-asyncio >= 0.21.0", "pytest-cov >= 4.1.0", "coverage[toml] >= 7.0", - "httpx >= 0.24.0", + "httpx >= 0.24.0, < 0.28.0; python_version < '3.10'", + "httpx >= 0.24.0; python_version >= '3.10'", "starlette >= 0.27.0, < 0.30.0; python_version < '3.10'", "starlette >= 0.27.0; python_version >= '3.10'", "ruff >= 0.4.0",