Skip to content

chore(deps): bump @opentelemetry/resources from 1.30.1 to 2.0.0 #283

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

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 8, 2025

Bumps @opentelemetry/resources from 1.30.1 to 2.0.0.

Release notes

Sourced from @​opentelemetry/resources's releases.

v2.0.0

2.0.0

Summary

  • The minimum supported Node.js has been raised to ^18.19.0 || >=20.6.0. This means that support for Node.js 14 and 16 has been dropped.
  • The minimum supported TypeScript version has been raised to 5.0.4.
  • The compilation target for transpiled TypeScript has been raised to ES2022 (from ES2017).
  • The public interface has changed
  • Only experimental versions 0.200.0 are compatible with this release

💥 Breaking Change

  • feat(sdk-trace-base)!: Add parentSpanContext and remove parentSpanId from Span and ReadableSpan #5450 @​JacksonWeber
    • (user-facing): the SDK's Spans parentSpanId was replaced by parentSpanContext, to migrate to the new property, please replace span.parentSpanId -> span.parentSpanContext?.spanId
  • feat(sdk-metrics)!: drop deprecated type field on MetricDescriptor #5291 @​chancancode
  • feat(sdk-metrics)!: drop deprecated InstrumentDescriptor type; use MetricDescriptor instead #5277 @​chancancode
  • feat(sdk-metrics)!: bump minimum version of @opentelemetry/api peer dependency to 1.9.0 #5254 @​chancancode
  • chore(shim-opentracing): replace deprecated SpanAttributes #4430 @​JamieDanielson
  • chore(otel-core): replace deprecated SpanAttributes #4408 @​JamieDanielson
  • feat(sdk-metrics)!: remove MeterProvider.addMetricReader() in favor of constructor option #4419 @​pichlermarc
  • chore(otel-resources): replace deprecated SpanAttributes #4428 @​JamieDanielson
  • feat(sdk-metrics)!: remove MeterProvider.addMetricReader() in favor of constructor option #4419 @​pichlermarc
  • feat(sdk-metrics)!: replace attributeKeys with custom processors option #4532 @​pichlermarc
  • refactor(sdk-trace-base)!: replace SpanAttributes with Attributes #5009 @​david-luna
  • refactor(resources)!: replace ResourceAttributes with Attributes #5016 @​david-luna
  • feat(sdk-metrics)!: drop View and Aggregation in favor of ViewOptions and AggregationOption #4931 @​pichlermarc
  • refactor(sdk-trace-base)!: remove new Span constructor in favor of Tracer.startSpan API #5048 @​david-luna
  • refactor(sdk-trace-base)!: remove BasicTracerProvider.addSpanProcessor API in favor of constructor options. #5134 @​david-luna
  • refactor(sdk-trace-base)!: make resource property private in BasicTracerProvider and remove getActiveSpanProcessor API. #5192 @​david-luna
  • feat(sdk-metrics)!: extract IMetricReader interface and use it over abstract class #5311
    • (user-facing): MeterProviderOptions now provides the more general IMetricReader type over MetricReader
    • If you accept MetricReader in your public interface, consider accepting the more general IMetricReader instead to avoid unintentional breaking changes
  • feat(sdk-trace)!: remove ability to have BasicTracerProvider instantiate exporters #5239 @​pichlermarc
    • When extending BasicTracerProvider, the class offered multiple methods to facilitate the creation of exporters and auto-pairing with SpanProcessors.
      • This functionality has been removed - users may now pass SpanProcessors to the base class constructor when extending
      • (user-facing): _registeredExporters has been removed
      • (user-facing): _getSpanExporter has been removed
      • (user-facing): _buildExporterFromEnv has been removed
  • feat(core)!: remove deprecated IdGenerator and RandomIdGenerator #5309 @​pichlermarc
  • feat(core)!: remove deprecated type InstrumentationLibrary #5308 @​pichlermarc
    • (user-facing): please use equivalent type InstrumentationScope instead
  • feat(sdk-trace-base)!: replace usages fo InstrumentationLibrary with InstrumentationScope #5308 @​pichlermarc
    • (user-facing) rename Tracer.instrumentationLibrary -> Tracer.instrumentationScope
    • (user-facing) rename ReadableSpan.instrumentationLibrary -> ReadableSpan.instrumentationScope
      • also renames the property in implementations of ReadableSpan
  • feat(exporter-jaeger): use ReadableSpan.instrumentationScope over ReadableSpan.instrumentationLibrary #5308 @​pichlermarc
  • feat(exporter-zipkin): use ReadableSpan.instrumentationScope over ReadableSpan.instrumentationLibrary #5308 @​pichlermarc
  • chore!: update typescript to version 5.0.4 #5145 @​david-luna

... (truncated)

Changelog

Sourced from @​opentelemetry/resources's changelog.

2.0.0

Summary

  • The minimum supported Node.js has been raised to ^18.19.0 || >=20.6.0. This means that support for Node.js 14 and 16 has been dropped.
  • The minimum supported TypeScript version has been raised to 5.0.4.
  • The compilation target for transpiled TypeScript has been raised to ES2022 (from ES2017).
  • The public interface has changed
  • Only experimental versions 0.200.0 are compatible with this release

💥 Breaking Change

  • feat(sdk-trace-base)!: Add parentSpanContext and remove parentSpanId from Span and ReadableSpan #5450 @​JacksonWeber
    • (user-facing): the SDK's Spans parentSpanId was replaced by parentSpanContext, to migrate to the new property, please replace span.parentSpanId -> span.parentSpanContext?.spanId
  • feat(sdk-metrics)!: drop deprecated type field on MetricDescriptor #5291 @​chancancode
  • feat(sdk-metrics)!: drop deprecated InstrumentDescriptor type; use MetricDescriptor instead #5277 @​chancancode
  • feat(sdk-metrics)!: bump minimum version of @opentelemetry/api peer dependency to 1.9.0 #5254 @​chancancode
  • chore(shim-opentracing): replace deprecated SpanAttributes #4430 @​JamieDanielson
  • chore(otel-core): replace deprecated SpanAttributes #4408 @​JamieDanielson
  • feat(sdk-metrics)!: remove MeterProvider.addMetricReader() in favor of constructor option #4419 @​pichlermarc
  • chore(otel-resources): replace deprecated SpanAttributes #4428 @​JamieDanielson
  • feat(sdk-metrics)!: remove MeterProvider.addMetricReader() in favor of constructor option #4419 @​pichlermarc
  • feat(sdk-metrics)!: replace attributeKeys with custom processors option #4532 @​pichlermarc
  • refactor(sdk-trace-base)!: replace SpanAttributes with Attributes #5009 @​david-luna
  • refactor(resources)!: replace ResourceAttributes with Attributes #5016 @​david-luna
  • feat(sdk-metrics)!: drop View and Aggregation in favor of ViewOptions and AggregationOption #4931 @​pichlermarc
  • refactor(sdk-trace-base)!: remove new Span constructor in favor of Tracer.startSpan API #5048 @​david-luna
  • refactor(sdk-trace-base)!: remove BasicTracerProvider.addSpanProcessor API in favor of constructor options. #5134 @​david-luna
  • refactor(sdk-trace-base)!: make resource property private in BasicTracerProvider and remove getActiveSpanProcessor API. #5192 @​david-luna
  • feat(sdk-metrics)!: extract IMetricReader interface and use it over abstract class #5311
    • (user-facing): MeterProviderOptions now provides the more general IMetricReader type over MetricReader
    • If you accept MetricReader in your public interface, consider accepting the more general IMetricReader instead to avoid unintentional breaking changes
  • feat(sdk-trace)!: remove ability to have BasicTracerProvider instantiate exporters #5239 @​pichlermarc
    • When extending BasicTracerProvider, the class offered multiple methods to facilitate the creation of exporters and auto-pairing with SpanProcessors.
      • This functionality has been removed - users may now pass SpanProcessors to the base class constructor when extending
      • (user-facing): _registeredExporters has been removed
      • (user-facing): _getSpanExporter has been removed
      • (user-facing): _buildExporterFromEnv has been removed
  • feat(core)!: remove deprecated IdGenerator and RandomIdGenerator #5309 @​pichlermarc
  • feat(core)!: remove deprecated type InstrumentationLibrary #5308 @​pichlermarc
    • (user-facing): please use equivalent type InstrumentationScope instead
  • feat(sdk-trace-base)!: replace usages fo InstrumentationLibrary with InstrumentationScope #5308 @​pichlermarc
    • (user-facing) rename Tracer.instrumentationLibrary -> Tracer.instrumentationScope
    • (user-facing) rename ReadableSpan.instrumentationLibrary -> ReadableSpan.instrumentationScope
      • also renames the property in implementations of ReadableSpan
  • feat(exporter-jaeger): use ReadableSpan.instrumentationScope over ReadableSpan.instrumentationLibrary #5308 @​pichlermarc
  • feat(exporter-zipkin): use ReadableSpan.instrumentationScope over ReadableSpan.instrumentationLibrary #5308 @​pichlermarc
  • chore!: update typescript to version 5.0.4 #5145 @​david-luna
    • (user-facing) dropped support for typescript@<5.0.4

... (truncated)

Commits
  • 7fde940 chore: prepare release 2.0.0/0.200.0 (#5521)
  • ecd67de doc: add section to SDK 2.x migration guide for implementors of resource dete...
  • eaebf76 chore: prepare release 2.0.0-rc.1/0.200.0-rc.1 (#5534)
  • e947bd9 chore(deps): update dependency babel-loader to v10 (#5518)
  • 5e20647 fix(deps): update dependency axios to v1.8.2 [security] (#5532)
  • 78fc472 chore(deps): lock file maintenance (#5531)
  • 693b09d fix(core): avoid using util in configuration.ts for browser compatibility (#5...
  • 92fde6a chore: prepare 2.0.0-dev.1/0.200.0-dev.1 pre-release (#5512)
  • 04b3210 doc: upgrade/migration guide for SDK 2.0 (#5513)
  • cb48266 fix(deps): update dependency import-in-the-middle to v1.13.1 (#5517)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from saidsef April 8, 2025 01:11
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 8, 2025
Bumps [@opentelemetry/resources](https://github.com/open-telemetry/opentelemetry-js) from 1.30.1 to 2.0.0.
- [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.0.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/resources"
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-opentelemetry-resources-2.0.0 branch from 951e723 to b5b16e6 Compare April 8, 2025 19:19
@saidsef
Copy link
Owner

saidsef commented Apr 13, 2025

/code pr

Copy link
Owner

@saidsef saidsef left a comment

Choose a reason for hiding this comment

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

🤖
The changes you've shown in the package-lock.json and package.json files indicate an upgrade of the @opentelemetry/resources package from version ^1.30.1 to ^2.0.0. Here are some key points and considerations for this upgrade:

Key Changes:

  1. Version Update in package.json:

    • The @opentelemetry/resources dependency version has been updated from ^1.30.1 to ^2.0.0.
  2. Removal of Duplicated Entries in package-lock.json:

    • Previously, @opentelemetry/resources was listed multiple times within different subdirectories (e.g., node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/resources). These duplicated entries have been removed as they are no longer needed since @opentelemetry/resources is now a top-level dependency.
    • The @opentelemetry/resources entry at the top level has been updated to version 2.0.0 with:
      • @opentelemetry/core as a dependency version 2.0.0.
      • The engines field now specifies a more restrictive Node.js version requirement (^18.19.0 || >=20.6.0).
      • The license field is Apache-2.0.
      • It also depends on @opentelemetry/semantic-conventions at ^1.29.0.
  3. Dependencies and Compatibility:

    • The @opentelemetry/resources package now requires at least Node.js version 18.19.0 or 20.6.0 and above due to the updated engines field.
    • The semantic conventions dependency has been updated to at least @opentelemetry/semantic-conventions version 1.29.0. This might require you to also bump that version in your project or ensure it meets the version requirement.

Steps You Should Follow:

  1. Update Node.js Version:

    • Make sure your project is running on Node.js version ^18.19.0 or >=20.6.0. You can update your Node.js version using the package manager of your choice (e.g., nvm for Node Version Manager).
  2. Install Updated Dependencies:

    • Run npm install (or yarn install if you are using Yarn) to install the updated versions. This command will automatically update your node_modules folder and package-lock.json file based on the version specified in package.json.
  3. Update Other Dependencies if Necessary:

    • Ensure all related dependencies are compatible with the new version of @opentelemetry/resources. You might need to update @opentelemetry/core and @opentelemetry/semantic-conventions according to the updated dependencies listed in the @opentelemetry/resources package.
  4. Review Release Notes:

    • Check the release notes or changelog for @opentelemetry/resources version 2.0.0 for any breaking changes or new features.
  5. Run Tests:

    • Run your test suite to ensure that the upgrade has not introduced any regressions.
  6. Address Node.js Version Requirement:

    • If your Node.js version does not meet the new requirement, you'll need to update it. Ensure your build environment and CI/CD pipelines also meet the new Node.js requirement.
  7. Review Peer Dependencies:

    • The peer dependency for @opentelemetry/api now requires at least version >=1.3.0 and less than 1.10.0. Ensure your project's @opentelemetry/api version is compatible with this requirement.

Example Commands:

# Ensure you have the correct Node.js version
nvm install 20.6.0
nvm use 20.6.0

# Update dependencies
npm install

# Run your tests
npm test

By following these steps, you can successfully upgrade the @opentelemetry/resources package and ensure your project remains stable and compatible with the newer version.

> qwen-2.5-coder-32b [pr | 0]

@github-actions github-actions bot added the Stale label Apr 29, 2025
@github-actions github-actions bot closed this May 5, 2025
Copy link
Contributor Author

dependabot bot commented on behalf of github May 5, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot-npm_and_yarn-opentelemetry-resources-2.0.0 branch May 5, 2025 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant