-
Notifications
You must be signed in to change notification settings - Fork 844
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
feat(core)!: remove unused/obsolete functions and types #5444
base: main
Are you sure you want to change the base?
feat(core)!: remove unused/obsolete functions and types #5444
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5444 +/- ##
==========================================
- Coverage 94.79% 94.77% -0.02%
==========================================
Files 310 308 -2
Lines 7974 7966 -8
Branches 1682 1678 -4
==========================================
- Hits 7559 7550 -9
- Misses 415 416 +1
|
@pichlermarc Trawling through opentelemetry-js-contrib.git I see some usages of
|
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.
LGTM, modulo possibly want to change how isWrapped
is handled.
@@ -80,6 +80,18 @@ For semantic convention package changes, see the [semconv CHANGELOG](packages/se | |||
* chore!: Raise the minimum supported Node.js version to `^18.19.0 || >=20.6.0`. Support for Node.js 14, 16, and early minor versions of 18 and 20 have been dropped. This applies to all packages except the 'api' and 'semantic-conventions' packages. [#5395](https://github.com/open-telemetry/opentelemetry-js/issues/5395) @trentm | |||
* feat(core)!: remove TracesSamplerValues from exports [#5406](https://github.com/open-telemetry/opentelemetry-js/pull/5406) @pichlermarc | |||
* (user-facing): TracesSamplerValues was only consumed internally and has been removed from exports without replacement | |||
* feat(core)!: remove unused and obsolete functions and types [#5444](https://github.com/open-telemetry/opentelemetry-js/pull/5444) @pichlermarc | |||
* (user-facing): `VERSION` was an internal constant that was unintentionally exported. It has been removed without replacement. | |||
* (user-facing): `isWrapped` has been removed in favor of `isWrapped` from `@opentelemetry/instrumentation` |
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.
As I mentioned in a comment, this is used in one contrib package (plugin-react-load
). So perhaps this falls under:
if an export is used in exactly one package - move its code to that package (do not export it from the package it was moved to)
It is used in tests in another package (opentelemetry-instrumentation-user-interaction
), but that pkg also has a dep on @opentelemetry/instrumentation
, so can use the isWrapped
from there.
Which problem is this PR solving?
Removing more unused functions and types from
@opentelemetry/core
. These were all intended to be only used internally, or were previously used but are now obsolete.Refs #5172
Breaking changes
VERSION
was an internal constant that was unintentionally exported. It has been removed without replacement.isWrapped
has been removed in favor ofisWrapped
from@opentelemetry/instrumentation
ShimWrapped
has been removed in favor ofShimWrapped
from@opentelemetry/instrumentation
hexToBase64
was a utility function that is not used by the SDK anymore. It has been removed without replacement.hexToBinary
was a utility function that now internal to@opentelemetry/otlp-tranformer
. It has been removed without replacement.baggageUtils.getKeyParis
was an internal utility function that was unintentionally exported. It has been removed without replacement.baggageUtils.serializeKeyPairs
was an internal utility function that was unintentionally exported. It has been removed without replacement.baggageUtils.parseKeyPairsIntoRecord,
has been removed in favor ofparseKeyPairsIntoRecord
baggageUtils.parsePairKeyValue
was an internal utility function that was unintentionally exported. It has been removed without replacement.TimeOriginLegacy
has been removed without replacement.isAttributeKey
was an internal utility function that was unintentionally exported. It has been removed without replacement.Type of change
How Has This Been Tested?