Repository navigation
chore(sdk/typescript): upgrade otlp http trace exporter to 0.300.0 - #1949
Open
ishanjainn wants to merge 1 commit into
Open
ishanjainn wants to merge 1 commit into
ishanjainn wants to merge 1 commit into
Conversation
…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
Collaborator
Author
|
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:
Recommendation: Source: OpenTelemetry JS SDK 3.x Migration Guide
|
ishanjainn
temporarily deployed
to
release-notes
November 11, 2026 22:21 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Release notes
Package name: @opentelemetry/exporter-trace-otlp-http
-
0.300.0 - 2026-10-20
- The minimum supported Node.js has been raised to
- The public interface has changed
- for notes on migrating to 3.x / 0.300.x see the upgrade guide
- Only stable versions
- chore(shim-opencensus)!: remove the
- In the OpenTelemetry Specification v1.58.0 the OpenCensus compatibility requirements were deprecated. The JavaScript OpenCensus shim package will not receive any more releases after the current 0.222.0 release (source code for last release).
- feat(instrumentation-http)!: remove deprecated
- The
- feat(sdk-node)!: remove deprecated
- feat(sdk-logs)!: remove deprecated
- feat!: migrate package builds from
- Importing a package by its name is unaffected in both CommonJS and ESM, as is every subpath listed in its
- Deep imports into the build output no longer resolve. An
- The emitted files moved out of
- The non-standard
- Packages that ship separate Node.js and browser implementations export them under explicit subpaths, for example
- feat(sdk-node)!: remove
- 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
- 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
- Drop the
- feat(sdk-node)!: drop SDK package re-exports (
- feat(sdk-logs): mark
- See the stable CHANGELOG for future changes to the sdk-logs package.
- feat!: replace the
- Resolvers with the
- webpack needs 5.54 or later. Parcel needs package exports enabled and cannot resolve
- Root type declarations describe the Node.js build.
- feat(instrumentation, exporter--otlp-http, exporter--otlp-proto)!: remove the
- feat(otlp-exporter-base)!: move
- refactor!(api-logs): remove AnyValue-related types in favor of new types in the
- The
- This is part of supporting OTEP 4485.
- feat(instrumentation): add
- feat(instrumentation)!: make
- The browser base no longer tracks
- A browser subclass that declares its own
- fix(otlp-exporter-base): suppress tracing around the browser fetch transport's own request so a
- fix(instrumentation-http): set
- 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
- fix(instrumentation-fetch): define
- fix(web-common): declare
- fix(instrumentation-fetch, instrumentation-xml-http-request): stay disabled when
- fix(instrumentation): move
- fix(otlp-transformer): accept DOM
- refactor(web-common, instrumentation-fetch, instrumentation-xml-http-request): move utils from
- chore(instrumentation-fetch, instrumentation-xml-http-request): Soft-deprecate
- Browser instrumentations in this repository are being (soft-)deprecated in favor of the new (and significantly different)
- chore: remove the redundant
- chore(exporter-metrics-otlp-http): remove the unused
- chore(web-common): remove the unused
- refactor(otlp-transformer): encode base64 through
- refactor(exporter-metrics-otlp-proto): type the browser
-
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
- 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 notes0.300.0
Summary
>=22.15.0. This means that support for Node.js 18 and 20 has been dropped.3.0.0are compatible with this release💥 Breaking Changes
@ opentelemetry/shim-opencensuspackageserverNamefield fromHttpInstrumentationConfig#7081serverNameoption had no effect; stable HTTP semantic conventions do not includehttp.server_name. Remove it from anysetConfig()or constructor call.NodeSDKConfigurationfieldslogRecordProcessor,metricReader,spanProcessorand deprecated namespace re-exportsnode,tracingNodeSDKConfiguration.logRecordProcessor— uselogRecordProcessorsinstead.NodeSDKConfiguration.metricReader— usemetricReadersinstead.NodeSDKConfiguration.spanProcessor— usespanProcessorsinstead.export * as node from '@ opentelemetry/sdk-node'— import directly from@ opentelemetry/sdk-trace-nodeinstead.export * as tracing from '@ opentelemetry/sdk-node'— import directly from@ opentelemetry/sdk-trace-baseinstead.SdkLogRecordtype alias andLoggerProviderConfigtype alias #7062SdkLogRecord— useReadWriteLogRecordinstead.LoggerProviderConfig— useLoggerProviderOptionsinstead.tsctotsdown, emitting dual CJS/ESM output from a singledist/directory and declaring anexportsmap on every package #6293 @ overbalanceexportsmap.exportsmap 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 withERR_PACKAGE_PATH_NOT_EXPORTED. Rewriting them to the new file layout does not help — unlisted subpaths are rejected whether or not the file exists.build/src(CJS),build/esmandbuild/esnext(ESM) intodist/, using.cjs/.mjsextensions with matching.d.cts/.d.mtsdeclarations.<package>/package.jsonis no longer importable for the same reason. Read a package's version from your own dependency metadata, or useSDK_INFOfrom@ opentelemetry/corefor the SDK version.esnextentry point has been removed; tools that preferred it fall back tomodule(ESM) ormain(CJS).@ 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."jaeger"propagator from@ opentelemetry/sdk-node#7077OTEL_PROPAGATORS=jaegerand{ jaeger: null }in the configuration object are no longer recognised. Replace with"tracecontext".@ opentelemetry/apiand remove the standalone@ opentelemetry/api-logspackage #4862 @ hectorhdzgsdk-trace-webpackage and are currently only used by the (deprecated)instrumentation-fetchandinstrumentation-xml-http-requestpackages.skipOldSemconvContentLengthAttrsvestigial option fromaddSpanNetworkEvents().api,contextBase,core,logs,metrics,resources) #7111 @ pichlermarcapi/contextBase→ import from@ opentelemetry/apicore→ import from@ opentelemetry/corelogs→ import from@ opentelemetry/sdk-logsmetrics→ import from@ opentelemetry/sdk-metricsresources→ import from@ opentelemetry/resources@ opentelemetry/sdk-logsas stable #7143 @ trentmbrowserfield inpackage.jsonwith#platformsubpath imports #7141 @ overbalancenodecondition load the Node.js build; all others load the browser build. Bundlers withoutimportssupport fail; see the migration guide.#platformfromrequire()../platformand./platform/browsersubpath exports; import from the package root #7141 @ overbalanceOTLPExporterNodeConfigBaseto@ opentelemetry/otlp-exporter-base/node-http#7172 @ overbalancetypesVersionsmaps the subpaths formoduleResolution: node.🚀 Features
apipackage #6780 @ trentmAnyValue,LogBody, andLogAttributestypes are no longer exported by theapi-logspackage.Instead, use the
AnyValueandAttributestypes from the latest@ opentelemetry/apipackage.isEnabled()to the browserInstrumentationBase; fetch and XHR report false when patching throws #7140 @ overbalanceInstrumentationBase#_enabledprotected on both platforms #7202 @ overbalanceenable()anddisable()calls. Browser subclasses set_enabledthemselves; one that never sets it reportsisEnabled()as false.private _enabledfails to compile; rename it or declare itprotected.🐛 Bug Fixes
fetchinstrumentation cannot create an export → span → export loop #6948 @ YangJonghunerror.typeon spans whose status code makes them an error #7061 @ mweardefaultexport condition instead ofimport, so a resolver that activates neitherimportnorrequirestill finds an entry point #7132 @ overbalancePropagateTraceHeaderCorsUrlslocally, so the types no longer import@ opentelemetry/web-common#7193 @ overbalance@ opentelemetry/sdk-traceand@ opentelemetry/sdk-logsas dependencies #7193 @ overbalancefetchorXMLHttpRequestopen/sendis missing, so a laterenable()retries #7171 @ overbalanceInstrumentationNodeModuleFilebehind#platform, so the root types no longer import Node.jspath#7177 @ overbalanceTextDecoderinProtobufReadertyping #7169 @ overbalance🏠 Internal
@ opentelemetry/sdk-trace-webinto
@ opentelemetry/web-commonand use them in@ opentelemetry/instrumentation-fetchand@ 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.
@ opentelemetry/instrumentation-fetchand@ opentelemetry/instrumentation-xml-http-request#7109 @ trentm@ opentelemetry/browser-instrumentationinstrumentations. "Soft" deprecation means exports have been marked with@ deprecatedand a notice added to READMEs, but the packages will not yet benpm deprecate'd to avoid loud notice to users while opentelemetry-browser.git is still in heavy development.modulefield frompackage.json; bundlers resolve the ESM build through theexportsmap #7130 @ overbalance@ opentelemetry/resourcesdependency #7200 @ overbalance@ opentelemetry/semantic-conventionsdependency #7196 @ overbalance#platform, so the browser build no longer referencesBuffer#7173 @ overbalanceOTLPMetricExporterconfig asOTLPExporterConfigBase#7172 @ overbalance0.223.1
Important
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: