-
Notifications
You must be signed in to change notification settings - Fork 539
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: add missing @opentelemetry/core dependency #2473
fix: add missing @opentelemetry/core dependency #2473
Conversation
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.
Thanks for fixing this!
@@ -73,8 +73,9 @@ | |||
}, | |||
"dependencies": { | |||
"@opentelemetry/instrumentation": "^0.53.0", | |||
"@opentelemetry/semantic-conventions": "^1.27.0", | |||
"@opentelemetry/semantic-conventions": "1.27.0", |
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.
drive-by-fix: we're using the @opentelemetry/semantic-conventions/incubating
entrypoint which may break in minor versions - pinning this to avoid any surprises when we release the 1.28.0
.
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.
Might want the same at
opentelemetry-js-contrib/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json
Line 63 in 645ac2e
"@opentelemetry/semantic-conventions": "^1.27.0", |
We should have a lint check for this perhaps.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2473 +/- ##
=======================================
Coverage 90.74% 90.74%
=======================================
Files 156 156
Lines 7723 7723
Branches 1588 1588
=======================================
Hits 7008 7008
Misses 715 715 |
This uses knip (https://knip.dev) to check dependencies, in hopes of avoiding issues like open-telemetry#2473. This adds 'npm run lint:deps' and adds that to the existing 'npm run lint'. This change includes fixes for a handful of unused and unlisted deps. For now knip is configured to only check 'production' deps. Checking non-prod deps results in way too many false positives.
…2477) This uses knip (https://knip.dev) to check dependencies, in hopes of avoiding issues like #2473. This adds 'npm run lint:deps' and adds that to the existing 'npm run lint'. This change includes fixes for a handful of unused and unlisted deps. For now knip is configured to only check 'production' deps. Checking non-prod deps results in way too many false positives. Note that knip is being run via `npx` rather than installing as a devDep because there is a conflict: knip deps on typescript@5 and all packaegs in this repo currently use typescript@4.4.4. Installing knip at the top-level results in a ballooning of the node_modules install size as typescript@4.4.4 is installed 40+ types in all separate workspaces.
Which problem is this PR solving?
See #2472, we're using
@opentelemetry/core
but don't have it listed as a dependency in some packages.Short description of the changes
@opentelemetry/semantic-conventions
dependency for@opentelemetry/instrumentation-pg
as it's using theincubating
entrypoint, which may break on minor bumps.