Skip to content

Commit 52f36f7

Browse files
authored
Fix dependency conflicts in Python sample app with ADOT Python v1.37.0 (#486)
Problem: ADOT Python E2E tests failed after upgrading ADOT Python’s upstream dependency from v1.33.1 to v1.37.0. Cause: The Python sample app incorrectly specifies a fixed version of opentelemetry-sdk (v1.33.1) as a dependency, even though it does not rely on that package. This introduces a version conflict with the updated ADOT Python and prevents signal generation. Additionally, opentelemetry-api is pinned to a fixed version, causing further conflicts with ADOT Python. For the sample app, any v1 API package should be compatible. Fix: Removed opentelemetry-sdk from the dependency list. Relaxed opentelemetry-api version constraint to >=1.33.1,<2.0.0. Test: Ran Python sample app without ADOT → Pass. Ran Python sample app with ADOT → Pass. Triggered Python EC2 E2E test → Pass. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent e8c00bb commit 52f36f7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ build
1010
node_modules/
1111

1212
# Ignore Bin files from validator folder
13-
validator/bin
13+
validator/bin
14+
15+
.venv/
16+
__pycache__/

sample-apps/python/django_frontend_service/ec2-requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ pymysql==1.1.1
44
python-dotenv~=1.0.1
55
requests~=2.25.1
66
schedule~=1.2.1
7-
opentelemetry-sdk==1.33.1
8-
opentelemetry-api==1.33.1
7+
opentelemetry-api>=1.33.1,<2.0.0

0 commit comments

Comments
 (0)