Repository navigation
feat(core)!: remove deprecated getTimeOrigin, otperformance, _globalThis, unrefTimer - #7053
Merged
pichlermarc merged 2 commits intoSep 3, 2026
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7053 +/- ##
==========================================
- Coverage 94.99% 94.99% -0.01%
==========================================
Files 409 407 -2
Lines 14338 14331 -7
Branches 3280 3279 -1
==========================================
- Hits 13621 13614 -7
Misses 717 717
🚀 New features to boost your workflow:
|
JacksonWeber
reviewed
Sep 2, 2026
|
|
||
| // after | ||
| const timer = setTimeout(() => {}, 1000); | ||
| timer.unref(); |
Contributor
There was a problem hiding this comment.
I think this example could break in browser or shared code, since browser timers are numbers and don’t have .unref(). Could we keep the typeof timer !== 'number' check here?
Contributor
Author
There was a problem hiding this comment.
Good point, thanks! I’ll keep the typeof timer !== 'number' check to support browser/shared code.
Pull request dashboard statusMerged · refreshed 2026-09-03 08:21 UTC Status above doesn't look right?
|
trentm
pushed a commit
to open-telemetry/opentelemetry-js-contrib
that referenced
this pull request
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which problem is this PR solving?
This PR removes deprecated types and functions from
@opentelemetry/coreas part of the SDK 3.x cleanup.ref #7052
Short description of the changes
Removed the following deprecated symbols:
getTimeOrigin()→ useperformance.timeOrigindirectlyotperformance→ use the globalperformanceobject directly_globalThis→ useglobalThisdirectlyunrefTimer()→ calltimer.unref()directlyUpdated consumers within the repository to use the replacements.
Also added migration guidance for the removed APIs to
doc/3.x/migration-guide.mdand linked it from the changelog.Type of change
How Has This Been Tested?
Ran the relevant
@opentelemetry/coretests and the affected package tests.Checklist: