chore(deps): bump @opentelemetry/resources from 1.30.1 to 2.7.1 - #321
chore(deps): bump @opentelemetry/resources from 1.30.1 to 2.7.1#321dependabot[bot] wants to merge 1 commit into
Conversation
commit: |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default mode and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c494f81. Configure here.
| "@opentelemetry/api": "^1.4.0", | ||
| "@opentelemetry/exporter-trace-otlp-proto": "^0.41.0", | ||
| "@opentelemetry/resources": "^1.13.0", | ||
| "@opentelemetry/resources": "^2.7.1", |
There was a problem hiding this comment.
Major version bump breaks Resource constructor usage
High Severity
Bumping @opentelemetry/resources from ^1.13.0 to ^2.7.1 breaks the example at runtime. In v2.x, the Resource class export was removed — new Resource({...}) in instrumentation.ts will throw "Resource is not a constructor." All other examples already use the replacement resourceFromAttributes() function. Additionally, @opentelemetry/sdk-trace-base and @opentelemetry/sdk-trace-node remain at ^1.13.0, creating a cross-major-version incompatibility.
Additional Locations (1)
Triggered by project rule: Project Review Guidelines
Reviewed by Cursor Bugbot for commit c494f81. Configure here.
|
Dependabot can't resolve your JavaScript dependency files. Because of this, Dependabot cannot update this pull request. |
1 similar comment
|
Dependabot can't resolve your JavaScript dependency files. Because of this, Dependabot cannot update this pull request. |
Bumps [@opentelemetry/resources](https://github.com/open-telemetry/opentelemetry-js) from 1.30.1 to 2.7.1. - [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md) - [Commits](open-telemetry/opentelemetry-js@v1.30.1...v2.7.1) --- updated-dependencies: - dependency-name: "@opentelemetry/resources" dependency-version: 2.7.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
c494f81 to
72c9aac
Compare


Bumps @opentelemetry/resources from 1.30.1 to 2.7.1.
Release notes
Sourced from @opentelemetry/resources's releases.
... (truncated)
Changelog
Sourced from @opentelemetry/resources's changelog.
... (truncated)
Commits
2400d83chore: prepare next release (#6647)f7a9b7cfix(otlp-transformer): pin protobufjs to 8.0.1 (#6646)cb38d7ftest(otlp-transformer): add metrics transfrom benchmark (#6628)a28f12ffix(opentelemetry-core): defer tracestate vaidation (#6459)b27c514refactor(opentelemetry-exporter-prometheus): do not call `enforcePrometheusNa...a2a8186perf(sdk-trace-base): optimize TraceIdRatioBasedSampler hex parsing (#6284)4c0f3f1feat(sdk-node): set TracerProvider in startNodeSDK() (#6607)417f2f1fix(instr-xhr): do not unpatch XHR methods (#6611)47ac523Revert "chore: allow browser maintainers to approve changelog edits" (#6627)86c621dfix(instrumentation-fetch): tolerate non-writable globalThis.fetch and fix pr...Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for
@opentelemetry/resourcessince your current version.Note
Medium Risk
telemetry-minimal pairs resources 2.7.1 with OTel SDK 1.13.x and crosses a major OTel version; lockfile also moves Next examples to a canary release via
latest.Overview
Bumps
@opentelemetry/resourcesto^2.7.1in thetelemetry-expressandtelemetry-minimalexamples and refreshespnpm-lock.yamlaccordingly.In
telemetry-express, the change is a patch-level bump within the existing 2.x line (^2.0.1→^2.7.1). Intelemetry-minimal, resources moves from the 1.x line (^1.13.0) to 2.7.1 while@opentelemetry/sdk-trace-baseandsdk-trace-noderemain on^1.13.0—reviewers may want to confirm that mix is intentional and thatnew Resource(...)ininstrumentation.tsstill matches the 2.x API.The lockfile also picks up unrelated resolution updates (e.g.
nextlatest→16.3.0-canary.36,turbo2.9.16,postcss8.5.10) from the dependency refresh, not from edits outside the lockfile in this diff.Reviewed by Cursor Bugbot for commit 72c9aac. Bugbot is set up for automated code reviews on this repo. Configure here.