-
Notifications
You must be signed in to change notification settings - Fork 733
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
fix(resource): make properties for async resource resolution optional #3677
fix(resource): make properties for async resource resolution optional #3677
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3677 +/- ##
=======================================
Coverage 93.70% 93.70%
=======================================
Files 277 277
Lines 8451 8454 +3
Branches 1755 1761 +6
=======================================
+ Hits 7919 7922 +3
Misses 532 532
|
What about the existing compat tests here? Are they still needed/helpful? |
Those tests focus on using the old version of |
Exactly, they're the other way around. Even without the |
So what happened is that we added a new method to the |
This is only a problem because the old |
Discussed in SIG. We decided that the breaking change introduced in 1.10.0 was itself a bug. This PR fixes that break and is itself a bugfix and NOT a break. Even though it is technically "breaking" from 1.10.0, it is compatible with 1.9.x and previous versions. /cc @open-telemetry/javascript-approvers @open-telemetry/javascript-maintainers for visibility on this decision |
@pichlermarc i'm going to leave this until tomorrow before merge/release just to be sure people have the chance to see the decision above. Since the bug only affects people who implement their own resource detectors and the fix is easy for those people to unblock themselves if they need I think this isn't the biggest rush bug. |
…open-telemetry#3677) * fix(resource): make properties for async resolution optional * fix(changelog): add changelog * fix(resources): add regression test * fix(resources): remove ts-ignore in tests --------- Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
* fix(resource): make properties for async resource resolution optional (#3677) * fix(resource): make properties for async resolution optional * fix(changelog): add changelog * fix(resources): add regression test * fix(resources): remove ts-ignore in tests --------- Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com> * Changelog * Bump patch versions * fix(resources): change fs/promises import to be node 12 compatible (#3681) * fix(resources): change fs/promises import to be node 12 compatible * fix(changelog): add changelog entry. --------- Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
Which problem is this PR solving?
See #3676, existing detectors that previously worked with
1.9.1
do not compile anymore. This PR fixes this, but will break the use ofresource.waitForAsyncAttributes()
that was introduced in the most recent version. Looks like this is the only way to restore compatibility. I'm open to any suggestions to improve this.Fixes #3676
Fixes open-telemetry/opentelemetry-js-contrib#1429
Short description of the changes
Type of change
How Has This Been Tested?
Detector
as a regression test that should fail compilation when incompatible changes are made in the future.Checklist: