Skip to content

Commit f4ab42e

Browse files
Merge pull request #20 from botanu-ai/developer-deborah
fix: add Python 3.10 markers for GenAI instrumentation packages
2 parents 2225f6a + c52c467 commit f4ab42e

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

pyproject.toml

Lines changed: 7 additions & 6 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",
@@ -131,7 +131,8 @@ dev = [
131131
"pytest-asyncio >= 0.21.0",
132132
"pytest-cov >= 4.1.0",
133133
"coverage[toml] >= 7.0",
134-
"httpx >= 0.24.0",
134+
"httpx >= 0.24.0, < 0.28.0; python_version < '3.10'",
135+
"httpx >= 0.24.0; python_version >= '3.10'",
135136
"starlette >= 0.27.0, < 0.30.0; python_version < '3.10'",
136137
"starlette >= 0.27.0; python_version >= '3.10'",
137138
"ruff >= 0.4.0",

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)