feat(node-core): Add OTLP integration for node-core/light (#19729)
Added otlpIntegration at @sentry/node-core/light/otlp for users who manage
their own OpenTelemetry setup and want to send trace data to Sentry without
adopting the full @sentry/node SDK.
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
import * as Sentry from '@sentry/node-core/light';
import { otlpIntegration } from '@sentry/node-core/light/otlp';
const provider = new NodeTracerProvider();
provider.register();
Sentry.init({
dsn: '__DSN__',
integrations: [
otlpIntegration({
// Export OTel spans to Sentry via OTLP (default: true)
setupOtlpTracesExporter: true,
}),
],
});
The integration links Sentry errors to OTel traces and exports spans to Sentry via OTLP.
feat(node, bun): Add runtime metrics integrations for Node.js and Bun (#19923, #19979)
New nodeRuntimeMetricsIntegration and bunRuntimeMetricsIntegration automatically collect runtime health metrics and send them to Sentry on a configurable interval (default: 30s). Collected metrics include memory (RSS, heap used/total), CPU utilization, event loop utilization, and process uptime. Node additionally collects event loop delay percentiles (p50, p99). Extra metrics like CPU time and external memory are available as opt-in.
// Node.js
import * as Sentry from '@sentry/node';
Sentry.init({
dsn: '...',
integrations: [Sentry.nodeRuntimeMetricsIntegration()],
});
// Bun
import * as Sentry from '@sentry/bun';
Sentry.init({
dsn: '...',
integrations: [Sentry.bunRuntimeMetricsIntegration()],
});
feat(core): Support embedding APIs in google-genai (#19797)
Adds instrumentation for the Google GenAI embedContent API, creating gen_ai.embeddings spans.
feat(browser): Add elementTimingIntegration for tracking element render and load times (#19869)
The new elementTimingIntegration captures Element Timing API data as Sentry metrics. It emits element_timing.render_time and element_timing.load_time distribution metrics for elements annotated with the elementtiming HTML attribute.
import * as Sentry from '@sentry/browser';
Sentry.init({
dsn: '__DSN__',
integrations: [Sentry.browserTracingIntegration(), Sentry.elementTimingIntegration()],
});
<img src="hero.jpg" elementtiming="hero-image" />
sentry-trace and baggage headers on outgoing requests (#19960)nodeRuntimeMetricsIntegration (#19989)| Path | Size |
|---|---|
| @sentry/browser | 25.04 KB |
| @sentry/browser - with treeshaking flags | 23.57 KB |
| @sentry/browser (incl. Tracing) | 41.16 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.67 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.04 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.91 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.64 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.62 KB |
| @sentry/browser (incl. Feedback) | 41.42 KB |
| @sentry/browser (incl. sendFeedback) | 29.59 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.46 KB |
| @sentry/browser (incl. Metrics) | 26.32 KB |
| @sentry/browser (incl. Logs) | 26.46 KB |
| @sentry/browser (incl. Metrics & Logs) | 27.12 KB |
| @sentry/react | 26.76 KB |
| @sentry/react (incl. Tracing) | 43.44 KB |
| @sentry/vue | 29.37 KB |
| @sentry/vue (incl. Tracing) | 43.02 KB |
| @sentry/svelte | 25.06 KB |
| CDN Bundle | 27.65 KB |
| CDN Bundle (incl. Tracing) | 42.09 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.99 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.12 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.87 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.13 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.14 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.54 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.55 KB |
| CDN Bundle - uncompressed | 80.72 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 124.81 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 84.77 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 128.14 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 204.87 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 238.95 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 242.26 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 251.56 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 254.86 KB |
| @sentry/nextjs (client) | 45.79 KB |
| @sentry/sveltekit (client) | 41.62 KB |
| @sentry/node-core | 54.45 KB |
| @sentry/node | 168.93 KB |
| @sentry/node - without tracing | 93.76 KB |
| @sentry/aws-serverless | 110.13 KB |
Fetched March 31, 2026