chore(deps): bump @opentelemetry/resources from 1.30.1 to 2.7.1 - #312
chore(deps): bump @opentelemetry/resources from 1.30.1 to 2.7.1#312dependabot[bot] wants to merge 1 commit into
Conversation
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.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
44ee7c2 to
c0fc081
Compare
commit: |
commit: |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes 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 c0fc081. 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 telemetry-minimal example at runtime
High Severity
@opentelemetry/resources was bumped from ^1.13.0 to ^2.7.1 in telemetry-minimal, but the v2 package removed the Resource class constructor. The code in instrumentation.ts uses new Resource({...}) which is the v1 API — v2 requires resourceFromAttributes() instead. All other examples already use the v2 API. Additionally, @opentelemetry/sdk-trace-base and @opentelemetry/sdk-trace-node remain at ^1.13.0, creating cross-major-version incompatibility with resources v2.
Reviewed by Cursor Bugbot for commit c0fc081. Configure here.
|
Superseded by #321. |


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
This is a dependency upgrade across the core
axiompackage and multiple telemetry examples; as a major-version bump in OpenTelemetry it may introduce runtime/behavior changes in resource/trace metadata handling.Overview
Updates
@opentelemetry/resourcesto^2.7.1acrosspackages/aiand all OpenTelemetry-related example apps, aligning the repo on the same newer OpenTelemetry resources implementation.Regenerates
pnpm-lock.yamlaccordingly, removing older@opentelemetry/resourcesversions and updating related OpenTelemetry transitive resolutions (notably@opentelemetry/core) to match the new dependency graph.Reviewed by Cursor Bugbot for commit c0fc081. Bugbot is set up for automated code reviews on this repo. Configure here.