Skip to content

Commit a4ba44f

Browse files
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 <noreply@anthropic.com> Signed-off-by: Deborah Jacob <deborah@botanu.ai>
1 parent 3cd0d8c commit a4ba44f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ dependencies = [
103103

104104
# ── GenAI / AI ─────────────────────────────────────────────────
105105
"opentelemetry-instrumentation-openai-v2 >= 2.0b0",
106-
"opentelemetry-instrumentation-anthropic >= 0.1b0",
107-
"opentelemetry-instrumentation-vertexai >= 0.1b0",
108-
"opentelemetry-instrumentation-google-generativeai >= 0.1b0",
109-
"opentelemetry-instrumentation-langchain >= 0.1b0",
106+
"opentelemetry-instrumentation-anthropic >= 0.1b0; python_version >= '3.10'",
107+
"opentelemetry-instrumentation-vertexai >= 0.1b0; python_version >= '3.10'",
108+
"opentelemetry-instrumentation-google-generativeai >= 0.1b0; python_version >= '3.10'",
109+
"opentelemetry-instrumentation-langchain >= 0.1b0; python_version >= '3.10'",
110110
"opentelemetry-instrumentation-ollama >= 0.1b0",
111-
"opentelemetry-instrumentation-crewai >= 0.1b0",
111+
"opentelemetry-instrumentation-crewai >= 0.1b0; python_version >= '3.10'",
112112

113113
# ── Runtime / Concurrency ──────────────────────────────────────
114114
"opentelemetry-instrumentation-logging >= 0.41b0",

tests/unit/test_data_tracking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def test_messaging_operations(self):
207207
assert MessagingOperation.PUBLISH == "publish"
208208
assert MessagingOperation.RECEIVE == "receive"
209209
assert MessagingOperation.CONSUME == "consume"
210-
210+
211211

212212
class TestSystemNormalization:
213213
"""Tests for system name normalization maps."""

0 commit comments

Comments
 (0)