Skip to content

chore(sdk/typescript): upgrade otlp http trace exporter to 0.300.0 - #1949

Open
ishanjainn wants to merge 1 commit into
mainfrom
snyk-upgrade-08ff080915ab32b2123a620eb4ae226e
Open

ishanjainn wants to merge 1 commit into
mainfrom
snyk-upgrade-08ff080915ab32b2123a620eb4ae226e

Conversation

@ishanjainn

Copy link
Copy Markdown
Collaborator

snyk-top-banner

Snyk has created this PR to upgrade @opentelemetry/exporter-trace-otlp-http from 0.222.0 to 0.300.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 6 versions ahead of your current version.

  • The recommended version was released 22 days ago.

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.

Release notes
Package name: @opentelemetry/exporter-trace-otlp-http
  • 0.300.0 - 2026-10-20

    0.300.0

    Summary

    • The minimum supported Node.js has been raised to >=22.15.0. This means that support for Node.js 18 and 20 has been dropped.
    • The public interface has changed
    • Only stable versions 3.0.0 are compatible with this release

    💥 Breaking Changes

    • chore(shim-opencensus)!: remove the @ opentelemetry/shim-opencensus package
    • feat(instrumentation-http)!: remove deprecated serverName field from HttpInstrumentationConfig #7081
      • The serverName option had no effect; stable HTTP semantic conventions do not include http.server_name. Remove it from any setConfig() or constructor call.
    • feat(sdk-node)!: remove deprecated NodeSDKConfiguration fields logRecordProcessor, metricReader, spanProcessor and deprecated namespace re-exports node, tracing
      • NodeSDKConfiguration.logRecordProcessor — use logRecordProcessors instead.
      • NodeSDKConfiguration.metricReader — use metricReaders instead.
      • NodeSDKConfiguration.spanProcessor — use spanProcessors instead.
      • export * as node from '@ opentelemetry/sdk-node' — import directly from @ opentelemetry/sdk-trace-node instead.
      • export * as tracing from '@ opentelemetry/sdk-node' — import directly from @ opentelemetry/sdk-trace-base instead.
    • feat(sdk-logs)!: remove deprecated SdkLogRecord type alias and LoggerProviderConfig type alias #7062
      • SdkLogRecord — use ReadWriteLogRecord instead.
      • LoggerProviderConfig — use LoggerProviderOptions instead.
    • feat!: migrate package builds from tsc to tsdown, emitting dual CJS/ESM output from a single dist/ directory and declaring an exports map on every package #6293 @ overbalance
      • Importing a package by its name is unaffected in both CommonJS and ESM, as is every subpath listed in its exports map.
      • Deep imports into the build output no longer resolve. An exports map is an allowlist that Node.js and bundlers enforce, so specifiers such as @ opentelemetry/sdk-logs/build/src/... or @ opentelemetry/sdk-logs/build/esm/... now fail with ERR_PACKAGE_PATH_NOT_EXPORTED. Rewriting them to the new file layout does not help — unlisted subpaths are rejected whether or not the file exists.
      • The emitted files moved out of build/src (CJS), build/esm and build/esnext (ESM) into dist/, using .cjs/.mjs extensions with matching .d.cts/.d.mts declarations.
      • <package>/package.json is no longer importable for the same reason. Read a package's version from your own dependency metadata, or use SDK_INFO from @ opentelemetry/core for the SDK version.
      • The non-standard esnext entry point has been removed; tools that preferred it fall back to module (ESM) or main (CJS).
      • Packages that ship separate Node.js and browser implementations export them under explicit subpaths, for example @ opentelemetry/sdk-logs/platform. If you depend on something that is only reachable through a deep import, please open an issue so it can be considered for the public API.
    • feat(sdk-node)!: remove "jaeger" propagator from @ opentelemetry/sdk-node #7077
      • OTEL_PROPAGATORS=jaeger and { jaeger: null } in the configuration object are no longer recognised. Replace with "tracecontext".
      • See the 3.x migration guide for full instructions.
    • fix(opentelemetry-exporter-prometheus)!: default exporter host to localhost #6599 @ cjihrig
    • chore!: bump minimum node.js version to >=22.15.0
    • feat(api-logs)!: move the Logs API to @ opentelemetry/api and remove the standalone @ opentelemetry/api-logs package #4862 @ hectorhdzg
    • fix(exporter-prometheus)!: stop reading Prometheus exporter host and port environment variables in the exporter constructor #6966 @ LarryHu0217
    • chore(web-common)!: clean up and deprecate network span utils #7114
      • These utilities were long planned for removal. They were moved from the sdk-trace-web package and are currently only used by the (deprecated) instrumentation-fetch and instrumentation-xml-http-request packages.
      • Drop the skipOldSemconvContentLengthAttrs vestigial option from addSpanNetworkEvents().
    • feat(sdk-node)!: drop SDK package re-exports (api, contextBase, core, logs, metrics, resources) #7111 @ pichlermarc
      • api / contextBase → import from @ opentelemetry/api
      • core → import from @ opentelemetry/core
      • logs → import from @ opentelemetry/sdk-logs
      • metrics → import from @ opentelemetry/sdk-metrics
      • resources → import from @ opentelemetry/resources
    • feat(sdk-logs): mark @ opentelemetry/sdk-logs as stable #7143 @ trentm
    • feat!: replace the browser field in package.json with #platform subpath imports #7141 @ overbalance
      • Resolvers with the node condition load the Node.js build; all others load the browser build. Bundlers without imports support fail; see the migration guide.
      • webpack needs 5.54 or later. Parcel needs package exports enabled and cannot resolve #platform from require().
      • Root type declarations describe the Node.js build.
    • feat(instrumentation, exporter--otlp-http, exporter--otlp-proto)!: remove the ./platform and ./platform/browser subpath exports; import from the package root #7141 @ overbalance
    • feat(otlp-exporter-base)!: move OTLPExporterNodeConfigBase to @ opentelemetry/otlp-exporter-base/node-http #7172 @ overbalance
      • typesVersions maps the subpaths for moduleResolution: node.

    🚀 Features

    • refactor!(api-logs): remove AnyValue-related types in favor of new types in the api package #6780 @ trentm
      • The AnyValue, LogBody, and LogAttributes types are no longer exported by the api-logs package.
        Instead, use the AnyValue and Attributes types from the latest @ opentelemetry/api package.
      • This is part of supporting OTEP 4485.
    • feat(instrumentation): add isEnabled() to the browser InstrumentationBase; fetch and XHR report false when patching throws #7140 @ overbalance
    • feat(instrumentation)!: make InstrumentationBase#_enabled protected on both platforms #7202 @ overbalance
      • The browser base no longer tracks enable() and disable() calls. Browser subclasses set _enabled themselves; one that never sets it reports isEnabled() as false.
      • A browser subclass that declares its own private _enabled fails to compile; rename it or declare it protected.

    🐛 Bug Fixes

    • fix(otlp-exporter-base): suppress tracing around the browser fetch transport's own request so a fetch instrumentation cannot create an export → span → export loop #6948 @ YangJonghun
    • fix(instrumentation-http): set error.type on spans whose status code makes them an error #7061 @ mwear
    • fix(exporter-prometheus): prevent duplicate metric metadata and keep metric families grouped across instrumentation scopes in Prometheus scrapes #7047 @ freben
    • fix(configuration): preserve zero-valued limits from environment variables #7060 @ DenisCDev
    • fix(otlp-exporter-base): release the keepalive budget once the response body drains, instead of holding up the export until it does #7070 @ overbalance
    • fix(web-common): export getElementXPath utility
      • This was accidentally missed when moving utilities from sdk-trace-web to web-common.
    • fix(opentelemetry-browser-detector): mark the package side-effect free so bundlers can tree-shake it #7135 @ overbalance
    • fix: resolve the ESM build through the default export condition instead of import, so a resolver that activates neither import nor require still finds an entry point #7132 @ overbalance
    • fix(instrumentation-fetch): define PropagateTraceHeaderCorsUrls locally, so the types no longer import @ opentelemetry/web-common #7193 @ overbalance
    • fix(web-common): declare @ opentelemetry/sdk-trace and @ opentelemetry/sdk-logs as dependencies #7193 @ overbalance
    • fix(instrumentation-fetch, instrumentation-xml-http-request): stay disabled when fetch or XMLHttpRequest open/send is missing, so a later enable() retries #7171 @ overbalance
    • fix(instrumentation): move InstrumentationNodeModuleFile behind #platform, so the root types no longer import Node.js path #7177 @ overbalance
    • fix(otlp-transformer): accept DOM TextDecoder in ProtobufReader typing #7169 @ overbalance

    🏠 Internal

    • refactor(web-common, instrumentation-fetch, instrumentation-xml-http-request): move utils from @ opentelemetry/sdk-trace-web
      into @ opentelemetry/web-common and use them in @ opentelemetry/instrumentation-fetch and @ opentelemetry/instrumentation-xml-http-request.
      With this change the instrumentations do not depend on SDK packages and the utils are kept in a shared package so we avoid code duplication.
    • chore(instrumentation-fetch, instrumentation-xml-http-request): Soft-deprecate @ opentelemetry/instrumentation-fetch and @ opentelemetry/instrumentation-xml-http-request #7109 @ trentm
      • Browser instrumentations in this repository are being (soft-)deprecated in favor of the new (and significantly different) @ opentelemetry/browser-instrumentation instrumentations. "Soft" deprecation means exports have been marked with @ deprecated and a notice added to READMEs, but the packages will not yet be npm deprecate'd to avoid loud notice to users while opentelemetry-browser.git is still in heavy development.
    • chore: remove the redundant module field from package.json; bundlers resolve the ESM build through the exports map #7130 @ overbalance
    • chore(exporter-metrics-otlp-http): remove the unused @ opentelemetry/resources dependency #7200 @ overbalance
    • chore(web-common): remove the unused @ opentelemetry/semantic-conventions dependency #7196 @ overbalance
    • refactor(otlp-transformer): encode base64 through #platform, so the browser build no longer references Buffer #7173 @ overbalance
    • refactor(exporter-metrics-otlp-proto): type the browser OTLPMetricExporter config as OTLPExporterConfigBase #7172 @ overbalance
  • 0.300.0-rc.0 - 2026-10-13
  • 0.300.0-development.1 - 2026-10-05
  • 0.300.0-development.0 - 2026-09-21
  • 0.223.1 - 2026-11-09

    0.223.1

    • chore: Update local dependencies to 2.12.1 for the release of stable packages.
  • 0.223.0 - 2026-10-06
  • 0.222.0 - 2026-08-31
from @opentelemetry/exporter-trace-otlp-http GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

…0.300.0

Snyk has created this PR to upgrade @opentelemetry/exporter-trace-otlp-http from 0.222.0 to 0.300.0.

See this package in npm:
@opentelemetry/exporter-trace-otlp-http

See this project in Snyk:
https://app.eu.snyk.io/org/openlit-default/project/71f1acca-6fd2-4e2a-94bb-5c92e12de344?utm_source=github&utm_medium=referral&page=upgrade-pr
@ishanjainn
ishanjainn requested a review from a team as a code owner November 11, 2026 22:21
@ishanjainn

Copy link
Copy Markdown
Collaborator Author

Merge Risk: High

This is a major version upgrade corresponding to the release of OpenTelemetry JS SDK 3.0, which introduces significant breaking changes. Developer action is required to migrate.

Key Breaking Changes:

  • Node.js Requirement: Support for Node.js versions below 22.15.0 has been dropped. Node.js 20, which reached its end-of-life in April 2026, is no longer supported.
  • Package Consolidation: The sdk-trace-base, sdk-trace-node, and sdk-trace-web packages have been removed and replaced by a single @opentelemetry/sdk-trace package. You will need to update your package.json and import statements.
  • Processor Constructor Change: Span processors, such as SimpleSpanProcessor and BatchSpanProcessor, now accept an options object in their constructor instead of positional arguments. For example, new BatchSpanProcessor(exporter) must be changed to new BatchSpanProcessor({ exporter }). Failure to update this can cause telemetry data to be silently dropped.
  • Removed Subpath Exports: The ./platform and ./platform/browser subpath exports have been removed. All imports should now point to the package root (e.g., @opentelemetry/exporter-trace-otlp-http).

Recommendation:
This upgrade requires careful code and environment updates. Developers must review the official migration guide before proceeding.

Source: OpenTelemetry JS SDK 3.x Migration Guide

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@github-actions github-actions Bot changed the title [Snyk] Upgrade @opentelemetry/exporter-trace-otlp-http from 0.222.0 to 0.300.0 chore(sdk/typescript): upgrade otlp http trace exporter to 0.300.0 Nov 11, 2026

This branch was previously deployed

1 inactive deployment
release-notes — a6654ce8 Deployed Nov 11, 2026 by ishanjainn via Normalize / Conventional title #824
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants