Skip to content
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(deps): Upgrade all OpenTelemetry dependencies #14967

Merged
merged 8 commits into from
Jan 20, 2025

Conversation

nwalters512
Copy link
Contributor

@nwalters512 nwalters512 commented Jan 9, 2025

This PR upgrades all @opentelemetry dependencies to their latest versions.

This repo uses Yarn v1 (see #11089), so I couldn't reliably use yarn upgrade-interactive to easily upgrade these across the entire project. Instead, I did something a little gross:

  • I temporarily upgraded to Yarn v4 with yarn set version berry
  • I ran yarn upgrade-interactive
  • I removed the files that the Yarn v4 upgrade added
  • I reverted the changes to yarn.lock
  • I ran yarn install to update yarn.lock
  • I ran npm yarn-deduplicate yarn.lock to dedupe packages to their latest versions (Yarn v4 has native support for yarn dedupe; Yarn v1 does not)

The temporary Yarn v4 upgrade and yarn-deduplicate account for all of the technically unrelated changes in this PR. I don't think they should pose a problem, but I'm happy to revert if desired. The yarn.lock deduplication significantly reduces the number of packages that are installed, which should offer a speedup of yarn install in both local dev and CI.

"fflate": "0.8.2",
"html-webpack-plugin": "^5.5.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was reordered by Yarn v4.

@@ -6,7 +6,6 @@
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/typescript",
"author": "Sentry",
"license": "MIT",
"private": false,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was removed by Yarn v4.

packages/sveltekit/package.json Outdated Show resolved Hide resolved
@nwalters512
Copy link
Contributor Author

I'd actually like to land #14968 first. There are two test failures that need to be resolved and it'd be better to do that in a separate PR.

@nwalters512 nwalters512 marked this pull request as draft January 10, 2025 17:06
AbhiPrasad pushed a commit that referenced this pull request Jan 17, 2025
Backport of #14971 to v8. This is a prerequisite for an eventual
backport of #14968, which will itself will make applying/backporting
#14967 much easier.

I ran `yarn build` and `yarn test` locally. Building succeeded, and all
but 2 test suites passed. The two that failed also failed for me on `v8`
(without any of my changes), so I'm assuming it's something to do with
my environment.
@AbhiPrasad AbhiPrasad self-assigned this Jan 20, 2025
@AbhiPrasad
Copy link
Member

assigning myself so I can help push this through - feel free to keep pushing up stuff.

@nwalters512 nwalters512 marked this pull request as ready for review January 20, 2025 17:45
@AbhiPrasad AbhiPrasad merged commit 9a9fb89 into getsentry:develop Jan 20, 2025
137 checks passed
@nwalters512 nwalters512 deleted the upgrade-otel-deps branch January 20, 2025 19:51
andreiborza added a commit that referenced this pull request Jan 31, 2025
Backport of #14967 to v8. The diff here will shrink a lot when #15094 is
merged.

---------

Co-authored-by: Andrei <168741329+andreiborza@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants