Skip to content

Bump the opentelemetry group across 1 directory with 9 updates#903

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/opentelemetry-a81023a17a
Open

Bump the opentelemetry group across 1 directory with 9 updates#903
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/opentelemetry-a81023a17a

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 30, 2026

Bumps the opentelemetry group with 9 updates in the / directory:

Package From To
@opentelemetry/api 1.9.0 1.9.1
@opentelemetry/exporter-trace-otlp-grpc 0.57.2 0.214.0
@opentelemetry/instrumentation 0.57.2 0.214.0
@opentelemetry/resources 1.30.1 2.6.1
@opentelemetry/sdk-trace-base 1.30.1 2.6.1
@opentelemetry/sdk-trace-node 1.30.1 2.6.1
@opentelemetry/semantic-conventions 1.30.0 1.40.0
@opentelemetry/auto-instrumentations-node 0.68.0 0.72.0
@opentelemetry/sdk-node 0.210.0 0.214.0

Updates @opentelemetry/api from 1.9.0 to 1.9.1

Release notes

Sourced from @​opentelemetry/api's releases.

api/v1.9.1

1.9.1

🐛 (Bug Fix)

  • fix(api): prioritize esnext export condition as it is more specific #5458
  • fix(api): update diag consoleLogger to use original console methods to prevent infinite loop when a console instrumentation is present #6395
  • fix(api): use Attributes instead of deprecated SpanAttributes in SpanOptions #6478 @​overbalance
  • fix(diag): change types in DiagComponentLogger from any to unknown#5478 @​loganrosen
  • fix(api): re-introduce fallback chain for global utils #6523 @​pichlermarc

🏠 (Internal)

Changelog

Sourced from @​opentelemetry/api's changelog.

1.9.1

🐛 (Bug Fix)

🏠 (Internal)

  • chore: fix cross project links and missing implicitly exported types #3533 @​legendecas
  • feat(sdk-metrics): add exponential histogram mapping functions #3504 @​mwear
Commits
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for @​opentelemetry/api since your current version.


Updates @opentelemetry/exporter-trace-otlp-grpc from 0.57.2 to 0.214.0

Release notes

Sourced from @​opentelemetry/exporter-trace-otlp-grpc's releases.

experimental/v0.214.0

0.214.0

💥 Breaking Changes

  • feat(configuration)!: rename OTEL_EXPERIMENTAL_CONFIG_FILE to OTEL_CONFIG_FILE #6486 @​maryliag
  • refactor!(otlp-grpc-exporter-base): remove headers from gRPC exporter config type, passing headers now results in a compile-time error instead of being silently ignored #6487

🚀 Features

🐛 Bug Fixes

  • fix(opentelemetry-instrumentation): access require via globalThis to avoid webpack analysis #6481 @​overbalance
  • fix(sdk-logs): fix inflated droppedAttributesCount when updating existing attribute keys #6479 @​overbalance
  • fix(instrumentation-fetch): do not modify the returned type of fetch #6521 @​dyladan
  • fix(opentelemetry-sdk-node): add missing @opentelemetry/otlp-exporter-base dependency #6520 @​gotgenes

🏠 Internal

experimental/v0.213.0

0.213.0

💥 Breaking Changes

  • fix(api-logs)!: drop lingering includeTraceContext from LoggerOptions type #6451 @​trentm

🚀 Features

  • feat(instrumentation-http): provide http.request.header.<key> at server span creation time #6396 @​vitorvasc

🐛 Bug Fixes

  • fix(instrumentation-http): guard against double-instrumentation if loaded with require('http') and import 'http' #6428 @​trentm
  • fix(otlp-exporter-base): handle response error #6412 @​pichlermarc
    • Fixes a bug where when the response header was received, but the connection was reset by the server, an unhandled error would be thrown.
  • fix(otlp-exporter-base): remove sendBeacon in favor of fetch with keepalive #6391 @​overbalance
    • (user-facing) createOtlpSendBeaconExportDelegate will be removed in a future version
  • fix(otlp-transformer): downgrade protobufjs to version ^7.0.0 #6418 @​vitorvasc
  • fix(instrumentation-fetch): handle HeadersInit tuple arrays in _addHeaders #6341 @​overbalance @​imadha

... (truncated)

Commits
  • 7e74509 chore: prepare next release (#6510)
  • c846919 fix(instrumentation-fetch): do not modify the returned type of fetch (#6521)
  • 99fb3fb fix(api): re-introduce fallback chain for global utils (#6523)
  • b842717 test(bundlers): add node webpack tests, expand edge coverage, assert known pr...
  • b5a6b12 fix(opentelemetry-sdk-node): add missing @​opentelemetry/otlp-exporter-base de...
  • dc93ed4 perf(sdk-trace-base): optimize Span.{addEvent,addLink} performance (#6516)
  • e9831e7 perf(sdk-trace-base): avoid Object.entries in Span.setAttributes (#6514)
  • d56af69 chore(deps): lock file maintenance (#6517)
  • f3a10ab chore(deps): update github/codeql-action digest to 3869755 (#6513)
  • 2f73776 chore(deps): update github/codeql-action digest to c6f9311 (#6511)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for @​opentelemetry/exporter-trace-otlp-grpc since your current version.


Updates @opentelemetry/instrumentation from 0.57.2 to 0.214.0

Release notes

Sourced from @​opentelemetry/instrumentation's releases.

experimental/v0.214.0

0.214.0

💥 Breaking Changes

  • feat(configuration)!: rename OTEL_EXPERIMENTAL_CONFIG_FILE to OTEL_CONFIG_FILE #6486 @​maryliag
  • refactor!(otlp-grpc-exporter-base): remove headers from gRPC exporter config type, passing headers now results in a compile-time error instead of being silently ignored #6487

🚀 Features

🐛 Bug Fixes

  • fix(opentelemetry-instrumentation): access require via globalThis to avoid webpack analysis #6481 @​overbalance
  • fix(sdk-logs): fix inflated droppedAttributesCount when updating existing attribute keys #6479 @​overbalance
  • fix(instrumentation-fetch): do not modify the returned type of fetch #6521 @​dyladan
  • fix(opentelemetry-sdk-node): add missing @opentelemetry/otlp-exporter-base dependency #6520 @​gotgenes

🏠 Internal

experimental/v0.213.0

0.213.0

💥 Breaking Changes

  • fix(api-logs)!: drop lingering includeTraceContext from LoggerOptions type #6451 @​trentm

🚀 Features

  • feat(instrumentation-http): provide http.request.header.<key> at server span creation time #6396 @​vitorvasc

🐛 Bug Fixes

  • fix(instrumentation-http): guard against double-instrumentation if loaded with require('http') and import 'http' #6428 @​trentm
  • fix(otlp-exporter-base): handle response error #6412 @​pichlermarc
    • Fixes a bug where when the response header was received, but the connection was reset by the server, an unhandled error would be thrown.
  • fix(otlp-exporter-base): remove sendBeacon in favor of fetch with keepalive #6391 @​overbalance
    • (user-facing) createOtlpSendBeaconExportDelegate will be removed in a future version
  • fix(otlp-transformer): downgrade protobufjs to version ^7.0.0 #6418 @​vitorvasc
  • fix(instrumentation-fetch): handle HeadersInit tuple arrays in _addHeaders #6341 @​overbalance @​imadha

... (truncated)

Commits
  • 7e74509 chore: prepare next release (#6510)
  • c846919 fix(instrumentation-fetch): do not modify the returned type of fetch (#6521)
  • 99fb3fb fix(api): re-introduce fallback chain for global utils (#6523)
  • b842717 test(bundlers): add node webpack tests, expand edge coverage, assert known pr...
  • b5a6b12 fix(opentelemetry-sdk-node): add missing @​opentelemetry/otlp-exporter-base de...
  • dc93ed4 perf(sdk-trace-base): optimize Span.{addEvent,addLink} performance (#6516)
  • e9831e7 perf(sdk-trace-base): avoid Object.entries in Span.setAttributes (#6514)
  • d56af69 chore(deps): lock file maintenance (#6517)
  • f3a10ab chore(deps): update github/codeql-action digest to 3869755 (#6513)
  • 2f73776 chore(deps): update github/codeql-action digest to c6f9311 (#6511)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for @​opentelemetry/instrumentation since your current version.


Updates @opentelemetry/resources from 1.30.1 to 2.6.1

Release notes

Sourced from @​opentelemetry/resources's releases.

v2.6.1

2.6.1

🐛 Bug Fixes

  • fix(opentelemetry-instrumentation): improve _warnOnPreloadedModules function not to show warning logs when the module is not marked as loaded #6095 @​rlj1202
  • fix(sdk-trace-base): derive internal SpanOptions from API type to prevent drift #6478 @​overbalance
  • fix(span): enforce attributePerEventCountLimit, attributePerLinkCountLimit, linkCountLimit, and attributeValueLengthLimit for event/link attributes #6479 @​overbalance

🏠 Internal

v2.6.0

2.6.0

💥 Breaking Changes

  • fix(resources): update OTEL_RESOURCE_ATTRIBUTESopen-telemetry/opentelemetry-specification#4856#6261 @​jacksonweber
    • Important: This fix is included in the "breaking changes" section because it can be breaking for some edge case usage of OTEL_RESOURCE_ATTRIBUTES:
      • export OTEL_RESOURCE_ATTRIBUTES=foo=bar,spam will now be fully ignored, because the spam entry is invalid (missing =). Per spec, any parsing error results in ignoring the entire environment variable.
      • export OTEL_RESOURCE_ATTRIBUTES='wat=" spaces "' will now result in {"wat": "\" spaces \""} with the double-quotes included in the value. Before this change the implementation included brittle double-quoting to allow leading and trailing whitespace in the value. To support leading or trailing whitespace now, you must percent-encode the whitespace. Internal whitespace still works without encoding, e.g. export OTEL_RESOURCE_ATTRIBUTES='green=eggs and ham'.

🚀 Features

🐛 Bug Fixes

v2.5.1

2.5.1

🐛 Bug Fixes

  • fix(opentelemetry-sdk-node): the custom value from env variable for service.instance.id should take priority over random uuid as backup #6345 @​maryliag

🏠 Internal

... (truncated)

Changelog

Sourced from @​opentelemetry/resources's changelog.

2.6.1

🐛 Bug Fixes

  • fix(opentelemetry-instrumentation): improve _warnOnPreloadedModules function not to show warning logs when the module is not marked as loaded #6095 @​rlj1202
  • fix(sdk-trace-base): derive internal SpanOptions from API type to prevent drift #6478 @​overbalance
  • fix(span): enforce attributePerEventCountLimit, attributePerLinkCountLimit, linkCountLimit, and attributeValueLengthLimit for event/link attributes #6479 @​overbalance
  • fix(context-zone): guard onCancelTask against terminal-state tasks to prevent infinite loop with rc-align (Ant Design) in React 16 dev mode #6512 @​Renegade2345

🏠 Internal

2.6.0

💥 Breaking Changes

  • fix(resources): update OTEL_RESOURCE_ATTRIBUTESopen-telemetry/opentelemetry-specification#4856#6261 @​jacksonweber
    • Important: This fix is included in the "breaking changes" section because it can be breaking for some edge case usage of OTEL_RESOURCE_ATTRIBUTES:
      • export OTEL_RESOURCE_ATTRIBUTES=foo=bar,spam will now be fully ignored, because the spam entry is invalid (missing =). Per spec, any parsing error results in ignoring the entire environment variable.
      • export OTEL_RESOURCE_ATTRIBUTES='wat=" spaces "' will now result in {"wat": "\" spaces \""} with the double-quotes included in the value. Before this change the implementation included brittle double-quoting to allow leading and trailing whitespace in the value. To support leading or trailing whitespace now, you must percent-encode the whitespace. Internal whitespace still works without encoding, e.g. export OTEL_RESOURCE_ATTRIBUTES='green=eggs and ham'.

🚀 Features

🐛 Bug Fixes

  • fix(sdk-trace-base): enforce StatusCode precedence rules in setStatus per specification #6461 @​newbee1939
  • fix(sdk-trace-web): propagate optimised flag in getElementXPath recursion #6335 @​akkupratap323

2.5.1

🐛 Bug Fixes

  • fix(opentelemetry-sdk-node): the custom value from env variable for service.instance.id should take priority over random uuid as backup #6345 @​maryliag

🏠 Internal

2.5.0

... (truncated)

Commits
  • 7e74509 chore: prepare next release (#6510)
  • c846919 fix(instrumentation-fetch): do not modify the returned type of fetch (#6521)
  • 99fb3fb fix(api): re-introduce fallback chain for global utils (#6523)
  • b842717 test(bundlers): add node webpack tests, expand edge coverage, assert known pr...
  • b5a6b12 fix(opentelemetry-sdk-node): add missing @​opentelemetry/otlp-exporter-base de...
  • dc93ed4 perf(sdk-trace-base): optimize Span.{addEvent,addLink} performance (#6516)
  • e9831e7 perf(sdk-trace-base): avoid Object.entries in Span.setAttributes (#6514)
  • d56af69 chore(deps): lock file maintenance (#6517)
  • f3a10ab chore(deps): update github/codeql-action digest to 3869755 (#6513)
  • 2f73776 chore(deps): update github/codeql-action digest to c6f9311 (#6511)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for @​opentelemetry/resources since your current version.


Updates @opentelemetry/sdk-trace-base from 1.30.1 to 2.6.1

Release notes

Sourced from @​opentelemetry/sdk-trace-base's releases.

v2.6.1

2.6.1

🐛 Bug Fixes

  • fix(opentelemetry-instrumentation): improve _warnOnPreloadedModules function not to show warning logs when the module is not marked as loaded #6095 @​rlj1202
  • fix(sdk-trace-base): derive internal SpanOptions from API type to prevent drift #6478 @​overbalance
  • fix(span): enforce attributePerEventCountLimit, attributePerLinkCountLimit, linkCountLimit, and attributeValueLengthLimit for event/link attributes #6479 @​overbalance

🏠 Internal

v2.6.0

2.6.0

💥 Breaking Changes

  • fix(resources): update OTEL_RESOURCE_ATTRIBUTESopen-telemetry/opentelemetry-specification#4856#6261 @​jacksonweber
    • Important: This fix is included in the "breaking changes" section because it can be breaking for some edge case usage of OTEL_RESOURCE_ATTRIBUTES:
      • export OTEL_RESOURCE_ATTRIBUTES=foo=bar,spam will now be fully ignored, because the spam entry is invalid (missing =). Per spec, any parsing error results in ignoring the entire environment variable.
      • export OTEL_RESOURCE_ATTRIBUTES='wat=" spaces "' will now result in {"wat": "\" spaces \""} with the double-quotes included in the value. Before this change the implementation included brittle double-quoting to allow leading and trailing whitespace in the value. To support leading or trailing whitespace now, you must percent-encode the whitespace. Internal whitespace still works without encoding, e.g. export OTEL_RESOURCE_ATTRIBUTES='green=eggs and ham'.

🚀 Features

🐛 Bug Fixes

v2.5.1

2.5.1

🐛 Bug Fixes

  • fix(opentelemetry-sdk-node): the custom value from env variable for service.instance.id should take priority over random uuid as backup #6345 @​maryliag

🏠 Internal

... (truncated)

Changelog

Sourced from @​opentelemetry/sdk-trace-base's changelog.

2.6.1

🐛 Bug Fixes

  • fix(opentelemetry-instrumentation): improve _warnOnPreloadedModules function not to show warning logs when the module is not marked as loaded #6095 @​rlj1202
  • fix(sdk-trace-base): derive internal SpanOptions from API type to prevent drift #6478 @​overbalance
  • fix(span): enforce attributePerEventCountLimit, attributePerLinkCountLimit, linkCountLimit, and attributeValueLengthLimit for event/link attributes #6479 @​overbalance
  • fix(context-zone): guard onCancelTask against terminal-state tasks to prevent infinite loop with rc-align (Ant Design) in React 16 dev mode #6512 @​Renegade2345

🏠 Internal

2.6.0

💥 Breaking Changes

  • fix(resources): update OTEL_RESOURCE_ATTRIBUTESopen-telemetry/opentelemetry-specification#4856#6261 @​jacksonweber
    • Important: This fix is included in the "breaking changes" section because it can be breaking for some edge case usage of OTEL_RESOURCE_ATTRIBUTES:
      • export OTEL_RESOURCE_ATTRIBUTES=foo=bar,spam will now be fully ignored, because the spam entry is invalid (missing =). Per spec, any parsing error results in ignoring the entire environment variable.
      • export OTEL_RESOURCE_ATTRIBUTES='wat=" spaces "' will now result in {"wat": "\" spaces \""} with the double-quotes included in the value. Before this change the implementation included brittle double-quoting to allow leading and trailing whitespace in the value. To support leading or trailing whitespace now, you must percent-encode the whitespace. Internal whitespace still works without encoding, e.g. export OTEL_RESOURCE_ATTRIBUTES='green=eggs and ham'.

🚀 Features

🐛 Bug Fixes

  • fix(sdk-trace-base): enforce StatusCode precedence rules in setStatus per specification #6461 @​newbee1939
  • fix(sdk-trace-web): propagate optimised flag in getElementXPath recursion #6335 @​akkupratap323

2.5.1

🐛 Bug Fixes

  • fix(opentelemetry-sdk-node): the custom value from env variable for service.instance.id should take priority over random uuid as backup #6345 @​maryliag

🏠 Internal

2.5.0

... (truncated)

Commits
  • 7e74509 chore: prepare next release (#6510)
  • c846919 fix(instrumentation-fetch): do not modify the returned type of fetch (#6521)
  • 99fb3fb fix(api): re-introduce fallback chain for global utils (#6523)
  • b842717 test(bundlers): add node webpack tests, expand edge coverage, assert known pr...
  • b5a6b12 fix(opentelemetry-sdk-node): add missing @​opentelemetry/otlp-exporter-base de...
  • dc93ed4 perf(sdk-trace-base): optimize Span.{addEvent,addLink} performance (#6516)
  • e9831e7 perf(sdk-trace-base): avoid Object.entries in Span.setAttributes (#6514)
  • d56af69 chore(deps): lock file maintenance (#6517)
  • f3a10ab chore(deps): update github/codeql-action digest to 3869755 (#6513)
  • 2f73776 chore(deps): update github/codeql-action digest to c6f9311 (#6511)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for @​opentelemetry/sdk-trace-base since your current version.


Updates @opentelemetry/sdk-trace-node from 1.30.1 to 2.6.1

Release notes

Sourced from @​opentelemetry/sdk-trace-node's releases.

v2.6.1

2.6.1

🐛 Bug Fixes

  • fix(opentelemetry-instrumentation): improve _warnOnPreloadedModules function not to show warning logs when the module is not marked as loaded #6095 @​rlj1202
  • fix(sdk-trace-base): derive internal SpanOptions from API type to prevent drift #6478 @​overbalance
  • fix(span): enforce attributePerEventCountLimit, attributePerLinkCountLimit, linkCountLimit, and attributeValueLengthLimit for event/link attributes #6479 @​overbalance

🏠 Internal

v2.6.0

2.6.0

💥 Breaking Changes

  • fix(resources): update OTEL_RESOURCE_ATTRIBUTESopen-telemetry/opentelemetry-specification#4856#6261 @​jacksonweber
    • Important: This fix is included in the "breaking changes" section because it can be breaking for some edge case usage of OTEL_RESOURCE_ATTRIBUTES:
      • export OTEL_RESOURCE_ATTRIBUTES=foo=bar,spam will now be fully ignored, because the spam entry is invalid (missing =). Per spec, any parsing error results in ignoring the entire environment variable.
      • export OTEL_RESOURCE_ATTRIBUTES='wat=" spaces "' will now result in {"wat": "\" spaces \""} with the double-quotes included in the value. Before this change the implementation included brittle double-quoting to allow leading and trailing whitespace in the value. To support leading or trailing whitespace now, you must percent-encode the whitespace. Internal whitespace still works without encoding, e.g. export OTEL_RESOURCE_ATTRIBUTES='green=eggs and ham'.

🚀 Features

🐛 Bug Fixes

v2.5.1

2.5.1

🐛 Bug Fixes

  • fix(opentelemetry-sdk-node): the custom value from env variable for service.instance.id should take priority over random uuid as backup #6345 @​maryliag

🏠 Internal

... (truncated)

Changelog

Sourced from @​opentelemetry/sdk-trace-node's changelog.

2.6.1

🐛 Bug Fixes

  • fix(opentelemetry-instrumentation): improve _warnOnPreloadedModules function not to show warning logs when the module is not marked as loaded #6095Description has been truncated

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 30, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: lokalise/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 878268b3-84e1-442c-8b72-fc82d64668d1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This pull request updates OpenTelemetry-related dependencies across two package configuration files. In packages/app/context-fastify-plugins/package.json, direct dependencies are bumped to newer versions, including significant version increments for core packages like @opentelemetry/exporter-trace-otlp-grpc (0.57.2 to 0.214.0) and @opentelemetry/sdk-trace-node (1.30.1 to 2.6.1). In packages/app/opentelemetry-fastify-bootstrap/package.json, peer dependency version ranges and their corresponding dev dependencies are updated to align with the same OpenTelemetry package versions. No code logic changes or exported interfaces are affected.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is missing required sections from the template. The 'Changes' section is absent, and the checklist items are not completed. Add a 'Changes' section describing the dependency updates, complete all checklist items including release label selection and AI assistance tracking, and confirm documentation/test updates.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: bumping OpenTelemetry packages. It references the scope (1 directory) and quantity of updates (9 updates), which accurately summarizes the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/npm_and_yarn/opentelemetry-a81023a17a

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/app/context-fastify-plugins/package.json`:
- Around line 42-45: The code still constructs a Resource via the removed v1 API
(new Resource(...)) in prismaOtelTracingPlugin (look for the Resource usage in
packages/app/context-fastify-plugins/src/plugins/opentelemetry/prismaOtelTracingPlugin.ts);
replace that with the v2 API by importing and using resourceFromAttributes(...)
(and adjust imports to pull resourceFromAttributes from `@opentelemetry/resources`
instead of Resource), passing the same attributes previously given to the
Resource constructor so the Resource is created via resourceFromAttributes.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: lokalise/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4ff32487-4b58-457a-83fe-c747697fae7c

📥 Commits

Reviewing files that changed from the base of the PR and between f800c0f and 3db6bc3.

📒 Files selected for processing (2)
  • packages/app/context-fastify-plugins/package.json
  • packages/app/opentelemetry-fastify-bootstrap/package.json

Comment on lines +42 to +45
"@opentelemetry/resources": "2.6.1",
"@opentelemetry/sdk-trace-base": "2.6.1",
"@opentelemetry/sdk-trace-node": "2.6.1",
"@opentelemetry/semantic-conventions": "1.40.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Verify potentially incompatible v1-style APIs still present with v2 deps.
rg -n -C3 'new\s+Resource\s*\(' --type=ts packages/app/context-fastify-plugins/src/plugins/opentelemetry/prismaOtelTracingPlugin.ts
rg -n -C3 'SEMRESATTRS_SERVICE_NAME' --type=ts packages/app/context-fastify-plugins/src/plugins/opentelemetry/prismaOtelTracingPlugin.ts

Repository: lokalise/shared-ts-libs

Length of output: 990


🌐 Web query:

In @opentelemetry/resources2.6.1, what is the recommended replacement fornew Resource({...})? Please provide the official migration/docs link.

💡 Result:

In @opentelemetry/resources 2.6.1, replace:

  • new Resource({ ... }) resourceFromAttributes({ ... }) [1]

Official migration/doc links:

  • Migration guide (“@opentelemetry/resources API changes”):
    https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/upgrade-to-2.x.md#opentelemetryresources-api-changes [1]
  • API docs for resourceFromAttributes:
    https://open-telemetry.github.io/opentelemetry-js/functions/_opentelemetry_resources.resourceFromAttributes.html [2]

Example

import { resourceFromAttributes } from '@opentelemetry/resources';

const resource = resourceFromAttributes({ 'service.name': 'my-service' });
``` [1][2]

---



</details>

**`@opentelemetry/resources` v2.6.1 requires migration from v1-style API.**

Line 42 upgrades `@opentelemetry/resources` to `2.6.1`, but `packages/app/context-fastify-plugins/src/plugins/opentelemetry/prismaOtelTracingPlugin.ts:23` still uses `new Resource(...)`. In v2.x, this constructor has been removed; migrate to `resourceFromAttributes()` as documented in the [official upgrade guide](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/upgrade-to-2.x.md#opentelemetryresources-api-changes).

<details>
<summary>Required fix</summary>

```diff
- import { Resource } from '@opentelemetry/resources'
+ import { resourceFromAttributes } from '@opentelemetry/resources'
  import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions'
  ...
-      resource: new Resource({
+      resource: resourceFromAttributes({
         [SEMRESATTRS_SERVICE_NAME]: opts.serviceName,
       }),
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/app/context-fastify-plugins/package.json` around lines 42 - 45, The
code still constructs a Resource via the removed v1 API (new Resource(...)) in
prismaOtelTracingPlugin (look for the Resource usage in
packages/app/context-fastify-plugins/src/plugins/opentelemetry/prismaOtelTracingPlugin.ts);
replace that with the v2 API by importing and using resourceFromAttributes(...)
(and adjust imports to pull resourceFromAttributes from `@opentelemetry/resources`
instead of Resource), passing the same attributes previously given to the
Resource constructor so the Resource is created via resourceFromAttributes.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/opentelemetry-a81023a17a branch from 3db6bc3 to 916ddf2 Compare March 30, 2026 14:30
Bumps the opentelemetry group with 9 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@opentelemetry/api](https://github.com/open-telemetry/opentelemetry-js) | `1.9.0` | `1.9.1` |
| [@opentelemetry/exporter-trace-otlp-grpc](https://github.com/open-telemetry/opentelemetry-js) | `0.57.2` | `0.214.0` |
| [@opentelemetry/instrumentation](https://github.com/open-telemetry/opentelemetry-js) | `0.57.2` | `0.214.0` |
| [@opentelemetry/resources](https://github.com/open-telemetry/opentelemetry-js) | `1.30.1` | `2.6.1` |
| [@opentelemetry/sdk-trace-base](https://github.com/open-telemetry/opentelemetry-js) | `1.30.1` | `2.6.1` |
| [@opentelemetry/sdk-trace-node](https://github.com/open-telemetry/opentelemetry-js) | `1.30.1` | `2.6.1` |
| [@opentelemetry/semantic-conventions](https://github.com/open-telemetry/opentelemetry-js) | `1.30.0` | `1.40.0` |
| [@opentelemetry/auto-instrumentations-node](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/HEAD/packages/auto-instrumentations-node) | `0.68.0` | `0.72.0` |
| [@opentelemetry/sdk-node](https://github.com/open-telemetry/opentelemetry-js) | `0.210.0` | `0.214.0` |



Updates `@opentelemetry/api` from 1.9.0 to 1.9.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.9.0...v1.9.1)

Updates `@opentelemetry/exporter-trace-otlp-grpc` from 0.57.2 to 0.214.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@experimental/v0.57.2...experimental/v0.214.0)

Updates `@opentelemetry/instrumentation` from 0.57.2 to 0.214.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@experimental/v0.57.2...experimental/v0.214.0)

Updates `@opentelemetry/resources` from 1.30.1 to 2.6.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.6.1)

Updates `@opentelemetry/sdk-trace-base` from 1.30.1 to 2.6.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.6.1)

Updates `@opentelemetry/sdk-trace-node` from 1.30.1 to 2.6.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.6.1)

Updates `@opentelemetry/semantic-conventions` from 1.30.0 to 1.40.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.0...semconv/v1.40.0)

Updates `@opentelemetry/auto-instrumentations-node` from 0.68.0 to 0.72.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/packages/auto-instrumentations-node/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js-contrib/commits/auto-instrumentations-node-v0.72.0/packages/auto-instrumentations-node)

Updates `@opentelemetry/sdk-node` from 0.210.0 to 0.214.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@experimental/v0.210.0...experimental/v0.214.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/api"
  dependency-version: 1.9.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/exporter-trace-otlp-grpc"
  dependency-version: 0.214.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/instrumentation"
  dependency-version: 0.214.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/resources"
  dependency-version: 2.6.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/sdk-trace-base"
  dependency-version: 2.6.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/sdk-trace-node"
  dependency-version: 2.6.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/semantic-conventions"
  dependency-version: 1.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/auto-instrumentations-node"
  dependency-version: 0.72.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/sdk-node"
  dependency-version: 0.214.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/opentelemetry-a81023a17a branch from 916ddf2 to 26b4639 Compare April 6, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants