npm / @vercel/otel
@vercel/otel
What changed in @vercel/otel 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-11.
12 breaking8 new APIs and options3 behavior and defaults4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@vercel/otel 226 changes
Breaking changes 12
Inbound baggage headers are limited to 180 entries and 8,192 bytes, and entries larger than 4,096 bytes are skipped.
When trace drains are used, auto-configuration based on OTEL_EXPORTER_OTLP_ environment variables is ignored to avoid duplicate trace export.
The minimum supported Node.js version is now ^18.19.0 || >=20.6.0; Node.js 14 and 16 are no longer supported.
The compatible version range is now >=1.9.0 <3.0.0, raised from >=1.7.0 <2.0.0.
The compatible version range is now >=0.200.0 <0.300.0, raised from >=0.46.0 <0.200.0.
The compatible version range is now >=0.200.0 <0.300.0, raised from >=0.46.0 <0.200.0.
The compatible version range is now >=2.0.0 <3.0.0, raised from >=1.19.0 <2.0.0.
The compatible version range is now >=0.200.0 <0.300.0, raised from >=0.46.0 <0.200.0.
The compatible version range is now >=2.0.0 <3.0.0, raised from >=1.19.0 <2.0.0.
The compatible version range is now >=2.0.0 <3.0.0, raised from >=1.19.0 <2.0.0.
Replace the single
logRecordProcessoroption withlogRecordProcessors, an array of processors.Replace the single
metricReaderoption withmetricReaders, an array of readers.
New APIs and options 8
When this environment variable is set and no OTLP endpoint is configured, the 'auto' exporter sends traces over the Unix socket.
Processors in spanProcessors now receive onEnding, allowing span attributes to be changed or removed before any exporter sends the span, including the 'auto' exporters.
Configure the OTLP export timeout in milliseconds.
Configure the OTLP trace export timeout in milliseconds.
Set the export request timeout in milliseconds; requests now abort after 10 seconds by default.
Set how long the span flush queued in
waitUntilwaits before giving up; the default is 10 seconds on Vercel.Vercel defaults now emit the OpenTelemetry resource attribute cloud.provider with the value vercel.
@vercel/otel adds support for OpenTelemetry JS SDK 2.x.
Behavior and default changes 3
OTLP JSON exports now include a flags field on each span and link; sampled spans send 257, or 769 when the parent is remote. http/protobuf exports are unchanged.
Set the export request timeout in milliseconds; requests now abort after 10 seconds by default.
Adds standard OpenTelemetry resource attributes for VCS.
Fixes and other changes 3
An export that fails before sending reports the failure right away instead of stalling for 30 seconds.
Prevents duplicate spans when code running before registerOTel replaces get with a function that calls the exported request.
System environment variables are no longer inlined.
@vercel/otel 11 changes
Fixes and other changes 1
Avoids local OTLP exports for drained Vercel traces when request context is lost before span end.