-
Notifications
You must be signed in to change notification settings - Fork 536
Test Common w/ multiple OTel versions & add compat with old OTel #4312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: ivana/potel/fix-propagate-scope-false
Are you sure you want to change the base?
Test Common w/ multiple OTel versions & add compat with old OTel #4312
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## ivana/potel/fix-propagate-scope-false #4312 +/- ##
======================================================================
Coverage 84.36% 84.37%
======================================================================
Files 144 144
Lines 14630 14637 +7
Branches 2325 2326 +1
======================================================================
+ Hits 12343 12350 +7
Misses 1561 1561
Partials 726 726
|
opentelemetry-distro
versions
@@ -70,7 +70,6 @@ def get_file_text(file_name): | |||
"openai": ["openai>=1.0.0", "tiktoken>=0.3.0"], | |||
"openfeature": ["openfeature-sdk>=0.7.1"], | |||
"opentelemetry": ["opentelemetry-distro>=0.35b0"], | |||
"opentelemetry-experimental": ["opentelemetry-distro"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unused now
…/determine-lowest-otel-version
opentelemetry-distro
versionsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one question. otherwise this look good.
gc.disable() | ||
request.addfinalizer(gc.enable) | ||
|
||
gc.collect() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moving this line is still necessary, even if we skip this test sometimes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving this makes the test suite pass locally on 3.8, so it's still an improvement though not in CI
f835a19
to
a964676
Compare
With the switch to OTel, the Common test suite is now dependent on an otel package, so it technically fits the toxgen usecase. By letting toxgen take care of it, we're making sure we're always testing a good range of otel versions, including the oldest one (to catch regressions) and the newest one (to catch incompatibilities early).
Couple things surfaced in terms of incompatibility with older versions:
span.set_status()
changed at some point open-telemetry/opentelemetry-python@6e282d2. Added a compat version ofset_status()
for older otel.Also included:
opentelemetry-experimental
extra (not used anymore)opentelemetry-sdk
instead ofopentelemetry-distro
-- thedistro
only seems to be setting up some defaults that we're not usingCloses #3241