Skip to content

Commit 9b8f424

Browse files
committed
build(pyproject.toml): update OpenTelemetry dependencies for Python
1 parent a80d68c commit 9b8f424

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,15 @@ compile-bytecode = true # Enable bytecode compilation for better performance
7878
default-groups = ["test", "dev"] # Default groups to install for development
7979
constraint-dependencies = [
8080
"pydantic>=2.8.0; python_version>='3.13'", # Ensure Python 3.13 compatibility
81-
"typing-extensions; python_version>='3.13'" # Required for Pydantic with Python 3.13
81+
"typing-extensions; python_version>='3.13'", # Required for Pydantic with Python 3.13
82+
# For Python 3.9, use original OpenTelemetry versions
83+
"opentelemetry-api==1.22.0; python_version<'3.10'",
84+
"opentelemetry-sdk==1.22.0; python_version<'3.10'",
85+
"opentelemetry-exporter-otlp-proto-http==1.22.0; python_version<'3.10'",
86+
# For Python ≥3.10 (where autogen-core might be present), use newer versions
87+
"opentelemetry-api>=1.27.0; python_version>='3.10'",
88+
"opentelemetry-sdk>=1.27.0; python_version>='3.10'",
89+
"opentelemetry-exporter-otlp-proto-http>=1.27.0; python_version>='3.10'"
8290
]
8391

8492
[tool.autopep8]

0 commit comments

Comments
 (0)