feat(browser): Add View Hierarchy integration (#14981)
A new viewHierarchyIntegration captures the DOM structure when an error occurs, providing a snapshot of the page state for debugging. Enable it in your Sentry configuration:
import * as Sentry from '@sentry/browser';
Sentry.init({
dsn: '__DSN__',
integrations: [Sentry.viewHierarchyIntegration()],
});
feat(cloudflare): Split alarms into multiple traces and link them (#19373)
Durable Object alarms now create separate traces for each alarm invocation, with proper linking between related alarms for better observability.
feat(cloudflare): Enable RPC trace propagation with enableRpcTracePropagation (#19991, #20345)
A new enableRpcTracePropagation option enables automatic trace propagation for Cloudflare RPC calls via .fetch(), ensuring distributed traces flow correctly across service bindings.
feat(core): Add enableTruncation option to AI integrations (#20167, #20181, #20182, #20183, #20184)
All AI integrations (OpenAI, Anthropic, Google GenAI, LangChain, LangGraph) now support an enableTruncation option to control whether large AI inputs/outputs are truncated.
feat(opentelemetry): Vendor AsyncLocalStorageContextManager (#20243)
The OpenTelemetry context manager is now vendored internally, reducing external dependencies and ensuring consistent behavior across environments.
rewriteSources top level option (#20142)eventLoopBlockIntegration (#20108)conversation_id only on gen_ai spans (#20274)ai.operationId for Vercel AI V6 operation name mapping (#20285)reader.closed rejection from releaseLock() in streaming (#20187)findInjectionIndexAfterDirectives for better readability (#20310)@opentelemetry/resources with inline getSentryResource() (#20327)| Path | Size |
|---|---|
| @sentry/browser | 25.18 KB |
| @sentry/browser - with treeshaking flags | 23.71 KB |
| @sentry/browser (incl. Tracing) | 42.59 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 44.26 KB |
| @sentry/browser (incl. Tracing, Profiling) | 47.37 KB |
| @sentry/browser (incl. Tracing, Replay) | 80.8 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 70.55 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 85.38 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 97.34 KB |
| @sentry/browser (incl. Feedback) | 41.59 KB |
| @sentry/browser (incl. sendFeedback) | 29.74 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.62 KB |
| @sentry/browser (incl. Metrics) | 26.44 KB |
| @sentry/browser (incl. Logs) | 26.57 KB |
| @sentry/browser (incl. Metrics & Logs) | 27.24 KB |
| @sentry/react | 26.89 KB |
| @sentry/react (incl. Tracing) | 44.81 KB |
| @sentry/vue | 29.89 KB |
| @sentry/vue (incl. Tracing) | 44.38 KB |
| @sentry/svelte | 25.2 KB |
| CDN Bundle | 27.79 KB |
| CDN Bundle (incl. Tracing) | 43.64 KB |
| CDN Bundle (incl. Logs, Metrics) | 29.13 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 44.7 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 67.12 KB |
| CDN Bundle (incl. Tracing, Replay) | 79.74 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 80.79 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 85.13 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 86.17 KB |
| CDN Bundle - uncompressed | 81.17 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 130.51 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 85.22 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 133.84 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 205.7 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 244.99 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 248.31 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 257.6 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 260.91 KB |
| @sentry/nextjs (client) | 47.28 KB |
| @sentry/sveltekit (client) | 43.02 KB |
| @sentry/node-core | 56.58 KB |
| @sentry/node | 170.68 KB |
| @sentry/node - without tracing | 95.57 KB |
| @sentry/aws-serverless | 112.42 KB |
feat(aws-serverless): Ship Lambda extension in npm package for container image Lambdas (#20133)
The Sentry Lambda extension is now included in the npm package, enabling container image-based Lambda functions to use it. Copy the extension files into your Docker image and set the tunnel option:
RUN mkdir -p /opt/sentry-extension
COPY node_modules/@sentry/aws-serverless/build/lambda-extension/sentry-extension /opt/extensions/sentry-extension
COPY node_modules/@sentry/aws-serverless/build/lambda-extension/index.mjs /opt/sentry-extension/index.mjs
RUN chmod +x /opt/extensions/sentry-extension /opt/sentry-extension/index.mjs
Sentry.init({
dsn: '__DSN__',
tunnel: 'http://localhost:9000/envelope',
});
This works with any Sentry SDK (@sentry/aws-serverless, @sentry/sveltekit, @sentry/node, etc.).
feat(cloudflare): Support basic WorkerEntrypoint (#19884)
withSentry now supports instrumenting classes extending Cloudflare's WorkerEntrypoint. This instruments fetch, scheduled, queue, and tail handlers.
import * as Sentry from '@sentry/cloudflare';
import { WorkerEntrypoint } from 'cloudflare:workers';
class MyWorker extends WorkerEntrypoint {
async fetch(request: Request): Promise<Response> {
return new Response('Hello World!');
}
}
export default Sentry.withSentry(env => ({ dsn: env.SENTRY_DSN, tracesSampleRate: 1.0 }), MyWorker);
ref(core): Unify .do* span ops to gen_ai.generate_content (#20074)
All Vercel AI do* spans (ai.generateText.doGenerate, ai.streamText.doStream, ai.generateObject.doGenerate, ai.streamObject.doStream) now use a single unified span op gen_ai.generate_content instead of separate ops like gen_ai.generate_text, gen_ai.stream_text, gen_ai.generate_object, and gen_ai.stream_object.
ref(core): Remove provider-specific AI span attributes in favor of gen_ai attributes in sentry conventions (#20011)
The following provider-specific span attributes have been removed from the OpenAI and Anthropic AI integrations. Use the standardized gen_ai.* equivalents instead:
| Removed attribute | Replacement |
|---|---|
openai.response.id | gen_ai.response.id |
openai.response.model | gen_ai.response.model |
openai.usage.prompt_tokens | gen_ai.usage.input_tokens |
openai.usage.completion_tokens | gen_ai.usage.output_tokens |
openai.response.timestamp | (removed, no replacement) |
anthropic.response.timestamp | (removed, no replacement) |
If you reference these attributes in hooks (e.g. beforeSendTransaction), update them to the gen_ai.* equivalents.
feat(core): Support embeddings in LangChain (#20017)
Adds instrumentation for LangChain embeddings (embedQuery, embedDocuments), creating gen_ai.embeddings spans. In Node.js, embedding classes from @langchain/openai, @langchain/google-genai, @langchain/mistralai, and @langchain/google-vertexai are auto-instrumented. For other runtimes, use the new instrumentLangChainEmbeddings API:
import * as Sentry from '@sentry/cloudflare';
import { OpenAIEmbeddings } from '@langchain/openai';
const embeddings = Sentry.instrumentLangChainEmbeddings(new OpenAIEmbeddings({ model: 'text-embedding-3-small' }));
await embeddings.embedQuery('Hello world');
denoRuntimeMetricsIntegration (#20023)5.2.0 (#20122)sentryOnError (#20120)flags context to error events (#20116)tsconfig-template folder (#20067)mshick/add-pr-comment (#20078)ToolLoopAgent (#20087)| Path | Size |
|---|---|
| @sentry/browser | 25.12 KB |
| @sentry/browser - with treeshaking flags | 23.65 KB |
| @sentry/browser (incl. Tracing) | 41.7 KB |
| @sentry/browser (incl. Tracing, Profiling) | 46.21 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.6 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.42 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 84.2 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 96.12 KB |
| @sentry/browser (incl. Feedback) | 41.51 KB |
| @sentry/browser (incl. sendFeedback) | 29.67 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.55 KB |
| @sentry/browser (incl. Metrics) | 26.4 KB |
| @sentry/browser (incl. Logs) | 26.55 KB |
| @sentry/browser (incl. Metrics & Logs) | 27.2 KB |
| @sentry/react | 26.84 KB |
| @sentry/react (incl. Tracing) | 43.96 KB |
| @sentry/vue | 29.84 KB |
| @sentry/vue (incl. Tracing) | 43.51 KB |
| @sentry/svelte | 25.14 KB |
| CDN Bundle | 27.74 KB |
| CDN Bundle (incl. Tracing) | 42.69 KB |
| CDN Bundle (incl. Logs, Metrics) | 29.09 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.75 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.99 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.71 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.71 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 84.12 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 85.13 KB |
| CDN Bundle - uncompressed | 81.05 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 126.6 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 85.1 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 129.93 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 205.2 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 240.74 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 244.06 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 253.35 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 256.66 KB |
| @sentry/nextjs (client) | 46.33 KB |
| @sentry/sveltekit (client) | 42.15 KB |
| @sentry/node-core | 56.5 KB |
| @sentry/node | 170.69 KB |
| @sentry/node - without tracing | 95.65 KB |
| @sentry/aws-serverless | 112.5 KB |
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 |
feat(elysia): @sentry/elysia - Alpha Release (#19509)
New Sentry SDK for the Elysia web framework, supporting both Bun and Node.js runtimes.
Note: This is an alpha release. Please report any issues or feedback on GitHub.
Features
onError hook; 3xx/4xx ignored by default. Customizable with shouldHandleError.GET /users/:id).sentry-trace and baggage headers propagated automatically on incoming/outgoing requests.Usage
import * as Sentry from '@sentry/elysia';
import { Elysia } from 'elysia';
Sentry.init({ dsn: '__DSN__', tracesSampleRate: 1.0 });
const app = Sentry.withElysia(new Elysia());
app.get('/', () => 'Hello World');
app.listen(3000);
ctx argument to Workflow.do user callback (#19891).withResponse() on Anthropic instrumentation (#19935)internal_error as span status for Vercel error spans (#19921)node to nest metadata (#19875)file-type dependency (#19824)buildMethodPath utility from openai (#19969)@elysiajs/opentelemetry dependency (#19947)Work in this release was contributed by @roli-lpci. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 25.08 KB |
| @sentry/browser - with treeshaking flags | 23.6 KB |
| @sentry/browser (incl. Tracing) | 41.67 KB |
| @sentry/browser (incl. Tracing, Profiling) | 46.22 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.57 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.4 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 84.15 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 96.1 KB |
| @sentry/browser (incl. Feedback) | 41.48 KB |
| @sentry/browser (incl. sendFeedback) | 29.64 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.57 KB |
| @sentry/browser (incl. Metrics) | 26.33 KB |
| @sentry/browser (incl. Logs) | 26.46 KB |
| @sentry/browser (incl. Metrics & Logs) | 27.13 KB |
| @sentry/react | 26.8 KB |
| @sentry/react (incl. Tracing) | 43.96 KB |
| @sentry/vue | 29.42 KB |
| @sentry/vue (incl. Tracing) | 43.48 KB |
| @sentry/svelte | 25.1 KB |
| CDN Bundle | 27.69 KB |
| CDN Bundle (incl. Tracing) | 42.55 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.54 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.39 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.69 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.52 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.4 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.96 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.82 KB |
| CDN Bundle - uncompressed | 80.76 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 125.61 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 83.56 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 128.41 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 204.32 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 239.75 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 242.53 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 252.36 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 255.13 KB |
| @sentry/nextjs (client) | 46.29 KB |
| @sentry/sveltekit (client) | 42.11 KB |
| @sentry/node-core | 55.08 KB |
| @sentry/node | 169.44 KB |
| @sentry/node - without tracing | 94.16 KB |
| @sentry/aws-serverless | 110.78 KB |
feat(remix): Server Timing Headers Trace Propagation (#18653)
The Remix SDK now supports automatic trace propagation via Server-Timing response headers to continue pageload traces on the client side.
This means, you no longer have to define a custom meta function to add Sentry <meta> tags to your page as previously.
We'll update out Remix tracing docs after this release.
withSentry (#19836)SpanStatusType for langchain/google-genai (#19863)| Path | Size |
|---|---|
| @sentry/browser | 24.93 KB |
| @sentry/browser - with treeshaking flags | 23.47 KB |
| @sentry/browser (incl. Tracing) | 41.51 KB |
| @sentry/browser (incl. Tracing, Profiling) | 46.07 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.41 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.22 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 84 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.97 KB |
| @sentry/browser (incl. Feedback) | 41.35 KB |
| @sentry/browser (incl. sendFeedback) | 29.49 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.43 KB |
| @sentry/browser (incl. Metrics) | 26.18 KB |
| @sentry/browser (incl. Logs) | 26.32 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.99 KB |
| @sentry/react | 26.66 KB |
| @sentry/react (incl. Tracing) | 43.81 KB |
| @sentry/vue | 29.29 KB |
| @sentry/vue (incl. Tracing) | 43.34 KB |
| @sentry/svelte | 24.95 KB |
| CDN Bundle | 27.54 KB |
| CDN Bundle (incl. Tracing) | 42.37 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.39 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.22 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.52 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.35 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.24 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.77 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.64 KB |
| CDN Bundle - uncompressed | 80.39 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 125.24 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 83.19 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 128.04 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 203.92 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 239.35 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 242.14 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 251.96 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 254.74 KB |
| @sentry/nextjs (client) | 46.17 KB |
| @sentry/sveltekit (client) | 41.95 KB |
| @sentry/node-core | 54.96 KB |
| @sentry/node | 169.14 KB |
| @sentry/node - without tracing | 94 KB |
| @sentry/aws-serverless | 110.61 KB |
feat(effect): Add @sentry/effect SDK (Alpha) (#19644)
This release introduces @sentry/effect, a new SDK for Effect.ts applications. The SDK provides Sentry integration via composable Effect layers for both Node.js and browser environments.
Compose the effectLayer with optional tracing, logging, and metrics layers to instrument your Effect application:
import * as Sentry from '@sentry/effect';
import * as Layer from 'effect/Layer';
import * as Logger from 'effect/Logger';
const SentryLive = Layer.mergeAll(
Sentry.effectLayer({ dsn: '__DSN__', tracesSampleRate: 1.0, enableLogs: true }),
Layer.setTracer(Sentry.SentryEffectTracer),
Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger),
Sentry.SentryEffectMetricsLayer,
);
Alpha features are still in progress, may have bugs and might include breaking changes. Please reach out on GitHub if you have any feedback or concerns.
feat(astro): Add Astro 6 support (#19745)
This release enables full support for Astro v6 by adjusting our Astro SDK's middleware to some Astro-internal changes. We cannot yet guarantee full support for server-islands, due to a bug in Astro v6 but we'll follow up on this once the bug is fixed.
feat(hono): Add basic instrumentation for Node runtime (#19817)
Adds a new package @sentry/hono/node (alpha) with basic instrumentation for Hono applications running in Node.js.
The Hono middleware for Cloudflare (@sentry/hono/cloudflare - alpha) comes with fixes, and it's now possible to access the Cloudflare Worker Bindings (env) from the options' callback.
Start using the new Hono middlewares by installing @sentry/hono and importing the respective middleware for your runtime.
More instructions can be found in the Hono readme.
Alpha features are still in progress, may have bugs and might include breaking changes. Please reach out on GitHub if you have any feedback or concerns.
feat(nestjs): Instrument @nestjs/bullmq @Processor decorator (#19759)
Automatically capture exceptions and create transactions for BullMQ queue processors in NestJS applications.
When using the @Processor decorator from @nestjs/bullmq, the SDK now automatically wraps the process() method
to create queue.process transactions with proper isolation scopes, preventing breadcrumb and scope leakage between
jobs and HTTP requests. Errors thrown in processors are captured with the auto.queue.nestjs.bullmq mechanism type.
Requires @nestjs/bullmq v10.0.0 or later.
feat(nestjs): Instrument @nestjs/schedule decorators (#19735)
Automatically capture exceptions thrown in @Cron, @Interval, and @Timeout decorated methods.
Previously, exceptions in @Cron methods were only captured if you used the SentryCron decorator. Now they are
captured automatically. The exception mechanism type changed from auto.cron.nestjs.async to
auto.function.nestjs.cron. If you have Sentry queries or alerts that filter on the old mechanism type, update them
accordingly.
feat(node): Expose headersToSpanAttributes option on nativeNodeFetchIntegration() (#19770)
Response headers like http.response.header.content-length were previously captured automatically on outgoing
fetch spans but are now opt-in since @opentelemetry/instrumentation-undici@0.22.0. You can now configure which
headers to capture via the headersToSpanAttributes option.
Sentry.init({
integrations: [
Sentry.nativeNodeFetchIntegration({
headersToSpanAttributes: {
requestHeaders: ['x-custom-header'],
responseHeaders: ['content-length', 'content-type'],
},
}),
],
});
sentry.timestamp.sequence attribute for timestamp tie-breaking (#19421)sendDefaultPii setting in langchain and langgraph in non-node environments (#19813)@nestjs/event-emitter instrumentation (#19725)lastEventId when error is thrown in component render (#19764)skill-creator and update managed agent skills (#19713)@sentry/hono alpha release (#19828)"*" (#19756)sdkName for craft (#19736)vite-plugin-federation (#19778)| Path | Size |
|---|---|
| @sentry/browser | 25.04 KB |
| @sentry/browser - with treeshaking flags | 23.57 KB |
| @sentry/browser (incl. Tracing) | 41.62 KB |
| @sentry/browser (incl. Tracing, Profiling) | 46.17 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.51 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.33 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 84.11 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 96.07 KB |
| @sentry/browser (incl. Feedback) | 41.45 KB |
| @sentry/browser (incl. sendFeedback) | 29.6 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.53 KB |
| @sentry/browser (incl. Metrics) | 26.29 KB |
| @sentry/browser (incl. Logs) | 26.43 KB |
| @sentry/browser (incl. Metrics & Logs) | 27.09 KB |
| @sentry/react | 26.75 KB |
| @sentry/react (incl. Tracing) | 43.9 KB |
| @sentry/vue | 29.38 KB |
| @sentry/vue (incl. Tracing) | 43.44 KB |
| @sentry/svelte | 25.06 KB |
| CDN Bundle | 27.62 KB |
| CDN Bundle (incl. Tracing) | 42.49 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.46 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.32 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.61 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.45 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.33 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.86 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.74 KB |
| CDN Bundle - uncompressed | 80.69 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 125.55 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 83.49 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 128.35 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 204.22 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 239.66 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 242.45 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 252.27 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 255.05 KB |
| @sentry/nextjs (client) | 46.26 KB |
| @sentry/sveltekit (client) | 42.06 KB |
| @sentry/node-core | 55.03 KB |
| @sentry/node | 169.1 KB |
| @sentry/node - without tracing | 94.09 KB |
| @sentry/aws-serverless | 110.68 KB |
feat(nextjs): Add Turbopack support for React component name annotation (#19604)
We added experimental support for React component name annotation in Turbopack builds. When enabled, JSX elements
are annotated with data-sentry-component, data-sentry-element, and data-sentry-source-file attributes at build
time. This enables searching Replays by component name, seeing component names in breadcrumbs, and performance
monitoring — previously only available with webpack builds.
This feature requires Next.js 16+ and is currently behind an experimental flag:
// next.config.ts
import { withSentryConfig } from '@sentry/nextjs';
export default withSentryConfig(nextConfig, {
_experimental: {
turbopackReactComponentAnnotation: {
enabled: true,
ignoredComponents: ['Header', 'Footer'], // optional
},
},
});
feat(hono): Instrument middlewares app.use() (#19611)
Hono middleware registered via app.use() is now automatically instrumented, creating spans for each middleware invocation.
tracePropagation option to http and fetch integrations (#19712)instrumentDurableObjectStorage (#19662)build:dev command (#19586)Work in this release was contributed by @dmmulroy, @lithdew, and @smorimoto. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 25.04 KB |
| @sentry/browser - with treeshaking flags | 23.57 KB |
| @sentry/browser (incl. Tracing) | 41.45 KB |
| @sentry/browser (incl. Tracing, Profiling) | 46 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.35 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.22 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.94 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.91 KB |
| @sentry/browser (incl. Feedback) | 41.45 KB |
| @sentry/browser (incl. sendFeedback) | 29.6 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.53 KB |
| @sentry/browser (incl. Metrics) | 26.18 KB |
| @sentry/browser (incl. Logs) | 26.31 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.97 KB |
| @sentry/react | 26.75 KB |
| @sentry/react (incl. Tracing) | 43.73 KB |
| @sentry/vue | 29.38 KB |
| @sentry/vue (incl. Tracing) | 43.27 KB |
| @sentry/svelte | 25.06 KB |
| CDN Bundle | 27.52 KB |
| CDN Bundle (incl. Tracing) | 42.26 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.34 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.08 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.5 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.27 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.11 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.66 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.51 KB |
| CDN Bundle - uncompressed | 80.45 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 125.09 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 83.22 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 127.86 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 203.98 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 239.24 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 241.99 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 251.85 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 254.59 KB |
| @sentry/nextjs (client) | 46.09 KB |
| @sentry/sveltekit (client) | 41.9 KB |
| @sentry/node-core | 51.04 KB |
| @sentry/node | 170.67 KB |
| @sentry/node - without tracing | 95.14 KB |
| @sentry/aws-serverless | 110.58 KB |
addVitePlugin instead of deprecated vite:extendConfig (#19464)| Path | Size |
|---|---|
| @sentry/browser | 25.02 KB |
| @sentry/browser - with treeshaking flags | 23.57 KB |
| @sentry/browser (incl. Tracing) | 41.44 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.99 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.35 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.21 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.93 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.91 KB |
| @sentry/browser (incl. Feedback) | 41.44 KB |
| @sentry/browser (incl. sendFeedback) | 29.58 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.52 KB |
| @sentry/browser (incl. Metrics) | 26.17 KB |
| @sentry/browser (incl. Logs) | 26.31 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.96 KB |
| @sentry/react | 26.74 KB |
| @sentry/react (incl. Tracing) | 43.72 KB |
| @sentry/vue | 29.37 KB |
| @sentry/vue (incl. Tracing) | 43.26 KB |
| @sentry/svelte | 25.05 KB |
| CDN Bundle | 27.51 KB |
| CDN Bundle (incl. Tracing) | 42.25 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.33 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.07 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.49 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.26 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.1 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.65 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.5 KB |
| CDN Bundle - uncompressed | 80.42 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 125.07 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 83.19 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 127.83 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 203.96 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 239.21 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 241.96 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 251.82 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 254.56 KB |
| @sentry/nextjs (client) | 46.08 KB |
| @sentry/sveltekit (client) | 41.89 KB |
| @sentry/node-core | 51.01 KB |
| @sentry/node | 170.6 KB |
| @sentry/node - without tracing | 95.09 KB |
| @sentry/aws-serverless | 110.53 KB |
feat(core,cloudflare,deno): Add instrumentPostgresJsSql instrumentation (#19566)
Added a new instrumentation helper for the postgres (postgres.js) library, designed for
SDKs that are not based on OpenTelemetry (e.g. Cloudflare, Deno). This wraps a postgres.js sql tagged template instance so that
all queries automatically create Sentry spans.
import postgres from 'postgres';
import * as Sentry from '@sentry/cloudflare'; // or '@sentry/deno'
export default Sentry.withSentry(env => ({ dsn: '__DSN__' }), {
async fetch(request, env, ctx) {
const sql = Sentry.instrumentPostgresJsSql(postgres(env.DATABASE_URL));
// All queries now create Sentry spans
const users = await sql`SELECT * FROM users WHERE id = ${userId}`;
return Response.json(users);
},
});
The instrumentation is available in @sentry/core, @sentry/cloudflare, and @sentry/deno.
feat(nextjs): Add Turbopack support for thirdPartyErrorFilterIntegration (#19542)
We added experimental support for the thirdPartyErrorFilterIntegration with Turbopack builds.
This feature requires Next.js 16+ and is currently behind an experimental flag:
// next.config.ts
import { withSentryConfig } from '@sentry/nextjs';
export default withSentryConfig(nextConfig, {
_experimental: {
turbopackApplicationKey: 'my-app-key',
},
});
Then configure the integration in your client instrumentation file with a matching key:
// instrumentation-client.ts
import * as Sentry from '@sentry/nextjs';
Sentry.init({
integrations: [
Sentry.thirdPartyErrorFilterIntegration({
filterKeys: ['my-app-key'],
behaviour: 'apply-tag-if-exclusively-contains-third-party-frames',
}),
],
});
not: foreign condition in turbopack loaders (#19502)dotagents (#19526)AGENTS.md for browser (#19551)AGENTS.md for nextjs (#19556)AGENTS.md (#19521)Work in this release was contributed by @YevheniiKotyrlo. Thank you for your contribution!
| Path | Size |
|---|---|
| @sentry/browser | 25.02 KB |
| @sentry/browser - with treeshaking flags | 23.57 KB |
| @sentry/browser (incl. Tracing) | 41.44 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.99 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.35 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.21 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.93 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.91 KB |
| @sentry/browser (incl. Feedback) | 41.44 KB |
| @sentry/browser (incl. sendFeedback) | 29.58 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.52 KB |
| @sentry/browser (incl. Metrics) | 26.17 KB |
| @sentry/browser (incl. Logs) | 26.31 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.96 KB |
| @sentry/react | 26.74 KB |
| @sentry/react (incl. Tracing) | 43.72 KB |
| @sentry/vue | 29.37 KB |
| @sentry/vue (incl. Tracing) | 43.26 KB |
| @sentry/svelte | 25.05 KB |
| CDN Bundle | 27.51 KB |
| CDN Bundle (incl. Tracing) | 42.25 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.33 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.07 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.49 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.26 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.1 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.65 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.5 KB |
| CDN Bundle - uncompressed | 80.42 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 125.07 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 83.19 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 127.83 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 203.96 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 239.21 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 241.96 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 251.82 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 254.56 KB |
| @sentry/nextjs (client) | 46.08 KB |
| @sentry/sveltekit (client) | 41.89 KB |
| @sentry/node-core | 51.01 KB |
| @sentry/node | 170.59 KB |
| @sentry/node - without tracing | 95.1 KB |
| @sentry/aws-serverless | 110.53 KB |
This is an internal beta release to test adding traces by timestamp to replay events for EAP trace association: https://github.com/getsentry/sentry-javascript/pull/18048.
| Path | Size |
|---|---|
| @sentry/browser | 25.02 KB |
| @sentry/browser - with treeshaking flags | 23.56 KB |
| @sentry/browser (incl. Tracing) | 41.44 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.99 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.43 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.27 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 84 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.98 KB |
| @sentry/browser (incl. Feedback) | 41.44 KB |
| @sentry/browser (incl. sendFeedback) | 29.58 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.52 KB |
| @sentry/browser (incl. Metrics) | 26.17 KB |
| @sentry/browser (incl. Logs) | 26.3 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.96 KB |
| @sentry/react | 26.74 KB |
| @sentry/react (incl. Tracing) | 43.72 KB |
| @sentry/vue | 29.37 KB |
| @sentry/vue (incl. Tracing) | 43.23 KB |
| @sentry/svelte | 25.05 KB |
| CDN Bundle | 27.51 KB |
| CDN Bundle (incl. Tracing) | 42.24 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.33 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.07 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.57 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.33 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.16 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.71 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.56 KB |
| CDN Bundle - uncompressed | 80.42 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 125.06 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 83.19 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 127.83 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 204.23 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 239.49 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 242.24 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 252.1 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 254.84 KB |
| @sentry/nextjs (client) | 46.07 KB |
| @sentry/sveltekit (client) | 41.89 KB |
| @sentry/node-core | 50.97 KB |
| @sentry/node | 170.4 KB |
| @sentry/node - without tracing | 95.06 KB |
| @sentry/aws-serverless | 110.49 KB |
feat(tanstackstart-react): Add global sentry exception middlewares (#19330)
The sentryGlobalRequestMiddleware and sentryGlobalFunctionMiddleware global middlewares capture unhandled exceptions thrown in TanStack Start API routes and server functions. Add them as the first entries in the requestMiddleware and functionMiddleware arrays of createStart():
import { createStart } from '@tanstack/react-start/server';
import { sentryGlobalRequestMiddleware, sentryGlobalFunctionMiddleware } from '@sentry/tanstackstart-react';
export default createStart({
requestMiddleware: [sentryGlobalRequestMiddleware, myRequestMiddleware],
functionMiddleware: [sentryGlobalFunctionMiddleware, myFunctionMiddleware],
});
feat(tanstackstart-react)!: Export Vite plugin from @sentry/tanstackstart-react/vite subpath (#19182)
The sentryTanstackStart Vite plugin is now exported from a dedicated subpath. Update your import:
- import { sentryTanstackStart } from '@sentry/tanstackstart-react';
+ import { sentryTanstackStart } from '@sentry/tanstackstart-react/vite';
fix(node-core): Reduce bundle size by removing apm-js-collab and requiring pino >= 9.10 (#18631)
In order to keep receiving pino logs, you need to update your pino version to >= 9.10, the reason for the support bump is to reduce the bundle size of the node-core SDK in frameworks that cannot tree-shake the apm-js-collab dependency.
fix(browser): Ensure user id is consistently added to sessions (#19341)
Previously, the SDK inconsistently set the user id on sessions, meaning sessions were often lacking proper coupling to the user set for example via Sentry.setUser().
Additionally, the SDK incorrectly skipped starting a new session for the first soft navigation after the pageload.
This patch fixes these issues. As a result, metrics around sessions, like "Crash Free Sessions" or "Crash Free Users" might change.
This could also trigger alerts, depending on your set thresholds and conditions.
We apologize for any inconvenience caused!
While we're at it, if you're using Sentry in a Single Page App or meta framework, you might want to give the new 'page' session lifecycle a try!
This new mode no longer creates a session per soft navigation but continues the initial session until the next hard page refresh.
Check out the docs to learn more!
ref!(gatsby): Drop Gatsby v2 support (#19467)
We drop support for Gatsby v2 (which still relies on webpack 4) for a critical security update in https://github.com/getsentry/sentry-javascript-bundler-plugins/releases/tag/5.0.0
setTheme() to dynamically update feedback widget color scheme (#19430)sourcemaps.filesToDeleteAfterUpload as a top-level option (#19280)ignoreConnectSpans option to postgresIntegration (#19291) isPromiseAllSettledResult with null/undefined array elements (#19346)client.close() (#19371)options if set (#19274)sentry.drop_transaction attribute on spans when skipOpenTelemetrySetup is enabled (#19333)options.rootDir instead of options.srcDir (#19343)Work in this release was contributed by @LudvigHz and @jadengis. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 25.02 KB |
| @sentry/browser - with treeshaking flags | 23.56 KB |
| @sentry/browser (incl. Tracing) | 41.43 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.98 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.34 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.2 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.92 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.9 KB |
| @sentry/browser (incl. Feedback) | 41.43 KB |
| @sentry/browser (incl. sendFeedback) | 29.58 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.51 KB |
| @sentry/browser (incl. Metrics) | 26.16 KB |
| @sentry/browser (incl. Logs) | 26.3 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.96 KB |
| @sentry/react | 26.73 KB |
| @sentry/react (incl. Tracing) | 43.71 KB |
| @sentry/vue | 29.36 KB |
| @sentry/vue (incl. Tracing) | 43.23 KB |
| @sentry/svelte | 25.04 KB |
| CDN Bundle | 27.5 KB |
| CDN Bundle (incl. Tracing) | 42.24 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.32 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.06 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.49 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.25 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.1 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.64 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.5 KB |
| CDN Bundle - uncompressed | 80.41 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 125.06 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 83.18 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 127.82 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 203.94 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 239.2 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 241.95 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 251.81 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 254.55 KB |
| @sentry/nextjs (client) | 46.07 KB |
| @sentry/sveltekit (client) | 41.88 KB |
| @sentry/node-core | 50.95 KB |
| @sentry/node | 169.38 KB |
| @sentry/node - without tracing | 95.04 KB |
| @sentry/aws-serverless | 110.47 KB |
feat(tanstackstart-react): Auto-instrument server function middleware (#19001)
The sentryTanstackStart Vite plugin now automatically instruments middleware in createServerFn().middleware([...]) calls. This captures performance data without requiring manual wrapping with wrapMiddlewaresWithSentry().
feat(nextjs): New experimental automatic vercel cron monitoring (#19192)
Setting _experimental.vercelCronMonitoring to true in your Sentry configuration will automatically create Sentry cron monitors for your Vercel Cron Jobs.
Please note that this is an experimental unstable feature and subject to change.
// next.config.ts
export default withSentryConfig(nextConfig, {
_experimental: {
vercelCronMonitoring: true,
},
});
feat(node-core): Add node-core/light (#18502)
This release adds a new light-weight @sentry/node-core/light export to @sentry/node-core. The export acts as a light-weight SDK that does not depend on OpenTelemetry and emits no spans.
Use this SDK when:
It supports error tracking and reporting, logs, metrics, automatic request isolation (requires Node.js 22+) and basic tracing via our Sentry.startSpan* APIs.
Install the SDK by running
npm install @sentry/node-core
and add Sentry at the top of your application's entry file:
import * as Sentry from '@sentry/node-core/light';
Sentry.init({
dsn: '__DSN__',
});
glob in @sentry/react-router (#19162)lazyRouteManifest option to resolve lazy-route names (#19086)flush on empty buffer (#19062)_experiments.enableMetrics references from metrics JSDoc (#19252)@nestjs/platform-express to 11.1.13 (#19206)21.0.1 in @sentry/ember (#19246)captureUnderscoreErrorException captures an exception (#19185)request-handler op. (#18729)debug is disabled (#19095)3.59.2 (#19208)svelte.config.js (#19270)auto.middleware.tanstackstart as middleware trace origin (#19137)shouldPropagateTraceForUrl from opentelemetry to core (#19254)untrack to read route id without invalidation (#19272)seroval alerts (#19150)nextjs-turbo canary tests (#19118)nextjs-t3 to next 15 (#19130)nextjs-turbo into nextjs-15 (#19107)Work in this release was contributed by @limbonaut and @rfoel. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 24.96 KB |
| @sentry/browser - with treeshaking flags | 23.51 KB |
| @sentry/browser (incl. Tracing) | 41.37 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.93 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.28 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.14 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.85 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.73 KB |
| @sentry/browser (incl. Feedback) | 41.3 KB |
| @sentry/browser (incl. sendFeedback) | 29.53 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.4 KB |
| @sentry/browser (incl. Metrics) | 26.11 KB |
| @sentry/browser (incl. Logs) | 26.25 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.91 KB |
| @sentry/react | 26.69 KB |
| @sentry/react (incl. Tracing) | 43.67 KB |
| @sentry/vue | 29.31 KB |
| @sentry/vue (incl. Tracing) | 43.18 KB |
| @sentry/svelte | 24.98 KB |
| CDN Bundle | 27.45 KB |
| CDN Bundle (incl. Tracing) | 42.19 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.27 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.43 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.2 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.05 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.5 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.37 KB |
| CDN Bundle - uncompressed | 80.29 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 124.93 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 83.06 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 127.7 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 203.82 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 239.07 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 241.83 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 251.57 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 254.32 KB |
| @sentry/nextjs (client) | 45.94 KB |
| @sentry/sveltekit (client) | 41.81 KB |
| @sentry/node-core | 50.93 KB |
| @sentry/node | 162.61 KB |
| @sentry/node - without tracing | 91.75 KB |
| @sentry/aws-serverless | 106.89 KB |
This preview release includes updates to our Span Streaming PoC implementation. Use at your own risk.
New:
spanStreamingIntegration in Sentry.init.() to opt into span streamingsentry.replay_id attribute is attached to spans started during an active replaysentry.profiler_id attribute is attached to spans started while the continuous profiler is runningspanStreamingIntegration is now exported from CDN bundles supporting tracingKnown issues:
ignoreSpans is not yet appliedUntested:
Browser
Sentry.init({
dsn: '...',
integrations: [
Sentry.browserTracingIntegration(),
Sentry.spanStreamingIntegration(),
]
})
Server (Node)
Sentry.init({
dsn: '...',
traceLifecycle: 'stream',
})
| Path | Size |
|---|---|
| @sentry/browser | 25.93 KB |
| @sentry/browser - with treeshaking flags | 24.43 KB |
| @sentry/browser (incl. Tracing) | 42.78 KB |
| @sentry/browser (incl. Tracing, Profiling) | 47.43 KB |
| @sentry/browser (incl. Tracing, Replay) | 80.71 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 70.51 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 85.27 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 97.17 KB |
| @sentry/browser (incl. Feedback) | 42.23 KB |
| @sentry/browser (incl. sendFeedback) | 30.48 KB |
| @sentry/browser (incl. FeedbackAsync) | 35.33 KB |
| @sentry/browser (incl. Metrics) | 26.87 KB |
| @sentry/browser (incl. Logs) | 27.02 KB |
| @sentry/browser (incl. Metrics & Logs) | 27.66 KB |
| @sentry/react | 27.62 KB |
| @sentry/react (incl. Tracing) | 45.03 KB |
| @sentry/vue | 30.51 KB |
| @sentry/vue (incl. Tracing) | 44.58 KB |
| @sentry/svelte | 25.95 KB |
| CDN Bundle | 28.18 KB |
| CDN Bundle (incl. Tracing) | 44.63 KB |
| CDN Bundle (incl. Logs, Metrics) | 29.01 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 45.44 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 67.21 KB |
| CDN Bundle (incl. Tracing, Replay) | 80.67 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 81.53 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 86 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 86.84 KB |
| CDN Bundle - uncompressed | 82.31 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 132.71 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 135.48 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 205.92 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 247.08 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 249.84 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 259.58 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 262.33 KB |
| @sentry/nextjs (client) | 47.4 KB |
| @sentry/sveltekit (client) | 43.23 KB |
| @sentry/node-core | 51.8 KB |
| @sentry/node | 165.43 KB |
| @sentry/node - without tracing | 94.67 KB |
| @sentry/aws-serverless | 109.55 KB |
The sentryTanstackStart Vite plugin now automatically instruments middleware arrays in createFileRoute(). This captures performance data without requiring manual wrapping with wrapMiddlewaresWithSentry().
logs.metrics bundle (#19020)replay.logs.metrics bundle (#19021)tracing.replay.logs.metrics bundle (#19039)AggregateErrors as exception groups (#19053)String(key) to fix Symbol conversion error (#18982)Work in this release was contributed by @harshit078. Thank you for your contribution!
| Path | Size |
|---|---|
| @sentry/browser | 24.73 KB |
| @sentry/browser - with treeshaking flags | 23.27 KB |
| @sentry/browser (incl. Tracing) | 41.16 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.69 KB |
| @sentry/browser (incl. Tracing, Replay) | 78.87 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.76 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.46 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.37 KB |
| @sentry/browser (incl. Feedback) | 41.06 KB |
| @sentry/browser (incl. sendFeedback) | 29.31 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.19 KB |
| @sentry/browser (incl. Metrics) | 25.81 KB |
| @sentry/browser (incl. Logs) | 25.96 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.61 KB |
| @sentry/react | 26.42 KB |
| @sentry/react (incl. Tracing) | 43.34 KB |
| @sentry/vue | 29.07 KB |
| @sentry/vue (incl. Tracing) | 42.91 KB |
| @sentry/svelte | 24.75 KB |
| CDN Bundle | 27.25 KB |
| CDN Bundle (incl. Tracing) | 41.93 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.07 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 42.73 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.09 KB |
| CDN Bundle (incl. Tracing, Replay) | 77.8 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 78.65 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.13 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.03 KB |
| CDN Bundle - uncompressed | 79.7 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 124.17 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 82.47 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 126.94 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 202.96 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 238.04 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 240.8 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 250.54 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 253.29 KB |
| @sentry/nextjs (client) | 45.63 KB |
| @sentry/sveltekit (client) | 41.52 KB |
| @sentry/node-core | 50.85 KB |
| @sentry/node | 162.19 KB |
| @sentry/node - without tracing | 91.64 KB |
| @sentry/aws-serverless | 106.79 KB |
feat(core): Introduces a new Sentry.setConversationId() API to track multi turn AI conversations across API calls. (#18909)
You can now set a conversation ID that will be automatically applied to spans within that scope. This allows you to link traces from the same conversation together.
import * as Sentry from '@sentry/node';
// Set conversation ID for all subsequent spans
Sentry.setConversationId('conv_abc123');
// All AI spans will now include the gen_ai.conversation.id attribute
await openai.chat.completions.create({...});
This is particularly useful for tracking multiple AI API calls that are part of the same conversation, allowing you to analyze entire conversation flows in Sentry.
The conversation ID is stored on the isolation scope and automatically applied to spans via the new conversationIdIntegration.
feat(tanstackstart-react): Auto-instrument global middleware in sentryTanstackStart Vite plugin (#18844)
The sentryTanstackStart Vite plugin now automatically instruments requestMiddleware and functionMiddleware arrays in createStart(). This captures performance data without requiring manual wrapping.
Auto-instrumentation is enabled by default. To disable it:
// vite.config.ts
sentryTanstackStart({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'your-org',
project: 'your-project',
autoInstrumentMiddleware: false,
});
invalid (#18901)AbortError by default on unhandled rejection (#18973)platform to envelope item header (#18954)gen_ai.input.messages.original_length to sentry.sdk_meta.gen_ai.input.messages.original_length (#18970)gen_ai.request.messages to gen_ai.input.messages (#18944)Work in this release was contributed by @sebws, @harshit078, and @fedetorre. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 24.73 KB |
| @sentry/browser - with treeshaking flags | 23.27 KB |
| @sentry/browser (incl. Tracing) | 41.15 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.68 KB |
| @sentry/browser (incl. Tracing, Replay) | 78.86 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.75 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.46 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.36 KB |
| @sentry/browser (incl. Feedback) | 41.06 KB |
| @sentry/browser (incl. sendFeedback) | 29.31 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.19 KB |
| @sentry/browser (incl. Metrics) | 25.81 KB |
| @sentry/browser (incl. Logs) | 25.95 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.6 KB |
| @sentry/react | 26.42 KB |
| @sentry/react (incl. Tracing) | 43.33 KB |
| @sentry/vue | 29.07 KB |
| @sentry/vue (incl. Tracing) | 42.9 KB |
| @sentry/svelte | 24.74 KB |
| CDN Bundle | 27.24 KB |
| CDN Bundle (incl. Tracing) | 41.93 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 42.73 KB |
| CDN Bundle (incl. Tracing, Replay) | 77.82 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.12 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.01 KB |
| CDN Bundle - uncompressed | 79.69 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 124.16 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 126.93 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 238.03 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 250.53 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 253.28 KB |
| @sentry/nextjs (client) | 45.63 KB |
| @sentry/sveltekit (client) | 41.51 KB |
| @sentry/node-core | 50.8 KB |
| @sentry/node | 162.16 KB |
| @sentry/node - without tracing | 91.59 KB |
| @sentry/aws-serverless | 106.74 KB |
db.system.name attribute for database spans (#18902)http.client spans (#18896)| Path | Size |
|---|---|
| @sentry/browser | 24.61 KB |
| @sentry/browser - with treeshaking flags | 23.15 KB |
| @sentry/browser (incl. Tracing) | 41.04 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.56 KB |
| @sentry/browser (incl. Tracing, Replay) | 78.74 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.63 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.32 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.24 KB |
| @sentry/browser (incl. Feedback) | 40.94 KB |
| @sentry/browser (incl. sendFeedback) | 29.19 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.07 KB |
| @sentry/browser (incl. Metrics) | 25.69 KB |
| @sentry/browser (incl. Logs) | 25.84 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.48 KB |
| @sentry/react | 26.3 KB |
| @sentry/react (incl. Tracing) | 43.22 KB |
| @sentry/vue | 28.95 KB |
| @sentry/vue (incl. Tracing) | 42.79 KB |
| @sentry/svelte | 24.63 KB |
| CDN Bundle | 27.13 KB |
| CDN Bundle (incl. Tracing) | 41.83 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 42.63 KB |
| CDN Bundle (incl. Tracing, Replay) | 77.67 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 82.98 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 83.87 KB |
| CDN Bundle - uncompressed | 79.36 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 123.84 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 126.61 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 237.64 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 250.14 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 252.89 KB |
| @sentry/nextjs (client) | 45.53 KB |
| @sentry/sveltekit (client) | 41.4 KB |
| @sentry/node-core | 50.68 KB |
| @sentry/node | 161.54 KB |
| @sentry/node - without tracing | 91.46 KB |
| @sentry/aws-serverless | 106.6 KB |
feat(tanstackstart-react): Add sentryTanstackStart vite plugin to manage automatic source map uploads (#18712)
You can now configure source maps upload for TanStack Start using the sentryTanstackStart Vite plugin:
// vite.config.ts
import { defineConfig } from 'vite';
import { sentryTanstackStart } from '@sentry/tanstackstart-react';
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
export default defineConfig({
plugins: [
sentryTanstackStart({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'your-org',
project: 'your-project',
}),
tanstackStart(),
],
});
tracing.replay.feedback.logs.metrics (#18785)ignored client report event drop reason (#18815)Log exports to browser and node packages (#18857)@sveltejs/kit devDependency to 2.49.5 (#18848)Work in this release was contributed by @rreckonerr. Thank you for your contribution!
| Path | Size |
|---|---|
| @sentry/browser | 24.52 KB |
| @sentry/browser - with treeshaking flags | 23.06 KB |
| @sentry/browser (incl. Tracing) | 40.88 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.36 KB |
| @sentry/browser (incl. Tracing, Replay) | 78.58 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.51 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.18 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.09 KB |
| @sentry/browser (incl. Feedback) | 40.85 KB |
| @sentry/browser (incl. sendFeedback) | 29.1 KB |
| @sentry/browser (incl. FeedbackAsync) | 33.97 KB |
| @sentry/browser (incl. Metrics) | 25.6 KB |
| @sentry/browser (incl. Logs) | 25.75 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.39 KB |
| @sentry/react | 26.21 KB |
| @sentry/react (incl. Tracing) | 43.05 KB |
| @sentry/vue | 28.87 KB |
| @sentry/vue (incl. Tracing) | 42.65 KB |
| @sentry/svelte | 24.53 KB |
| CDN Bundle | 27.02 KB |
| CDN Bundle (incl. Tracing) | 41.67 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 42.48 KB |
| CDN Bundle (incl. Tracing, Replay) | 77.51 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 82.82 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 83.71 KB |
| CDN Bundle - uncompressed | 79.18 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 123.53 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 126.3 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 237.33 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 249.83 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 252.58 KB |
| @sentry/nextjs (client) | 45.35 KB |
| @sentry/sveltekit (client) | 41.26 KB |
| @sentry/node-core | 50.72 KB |
| @sentry/node | 158.39 KB |
| @sentry/node - without tracing | 91.16 KB |
| @sentry/aws-serverless | 106.3 KB |
feat(core): Add option to enhance the fetch error message (#18466)
You can now enable enhanced fetch error messages by setting the enhancedFetchErrorMessage option. When enabled, the SDK will include additional context in fetch error messages to help with debugging.
feat(nextjs): Add routeManifestInjection option to exclude routes from client bundle (#18798)
A new routeManifestInjection option allows you to exclude sensitive routes from being injected into the client bundle.
feat(tanstackstart-react): Add wrapMiddlewaresWithSentry for manual middleware instrumentation (#18680)
You can now wrap your middlewares using wrapMiddlewaresWithSentry, allowing you to trace middleware execution in your TanStack Start application.
import { createMiddleware } from '@tanstack/react-start';
import { wrapMiddlewaresWithSentry } from '@sentry/tanstackstart-react';
const loggingMiddleware = createMiddleware({ type: 'function' }).server(async ({ next }) => {
console.log('Request started');
return next();
});
export const [wrappedLoggingMiddleware] = wrapMiddlewaresWithSentry({ loggingMiddleware });
tracing.logs.metrics (#18784)WeakMap (#18809)withSentryConfig (#18777)| Path | Size |
|---|---|
| @sentry/browser | 24.52 KB |
| @sentry/browser - with treeshaking flags | 23.06 KB |
| @sentry/browser (incl. Tracing) | 40.88 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.36 KB |
| @sentry/browser (incl. Tracing, Replay) | 78.58 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.51 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.17 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.08 KB |
| @sentry/browser (incl. Feedback) | 40.85 KB |
| @sentry/browser (incl. sendFeedback) | 29.1 KB |
| @sentry/browser (incl. FeedbackAsync) | 33.97 KB |
| @sentry/browser (incl. Metrics) | 25.6 KB |
| @sentry/browser (incl. Logs) | 25.75 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.39 KB |
| @sentry/react | 26.21 KB |
| @sentry/react (incl. Tracing) | 43.05 KB |
| @sentry/vue | 28.87 KB |
| @sentry/vue (incl. Tracing) | 42.64 KB |
| @sentry/svelte | 24.53 KB |
| CDN Bundle | 26.96 KB |
| CDN Bundle (incl. Tracing) | 41.6 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 42.48 KB |
| CDN Bundle (incl. Tracing, Replay) | 77.43 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 82.72 KB |
| CDN Bundle - uncompressed | 78.99 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 123.34 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 126.29 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 237.15 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 249.64 KB |
| @sentry/nextjs (client) | 45.34 KB |
| @sentry/sveltekit (client) | 41.25 KB |
| @sentry/node-core | 50.69 KB |
| @sentry/node | 158.35 KB |
| @sentry/node - without tracing | 91.14 KB |
| @sentry/aws-serverless | 106.28 KB |
feat(core): Apply scope attributes to metrics (#18738)
You can now set attributes on the SDK's scopes which will be applied to all metrics as long as the respective scopes are active. For the time being, only string, number and boolean attribute values are supported.
Sentry.getGlobalScope().setAttributes({ is_admin: true, auth_provider: 'google' });
Sentry.withScope(scope => {
scope.setAttribute('step', 'authentication');
// scope attributes `is_admin`, `auth_provider` and `step` are added
Sentry.metrics.count('clicks', 1, { attributes: { activeSince: 100 } });
Sentry.metrics.gauge('timeSinceRefresh', 4, { unit: 'hour' });
});
// scope attributes `is_admin` and `auth_provider` are added
Sentry.metrics.count('response_time', 283.33, { unit: 'millisecond' });
feat(tracing): Add Vercel AI SDK v6 support (#18741)
The Sentry SDK now supports the Vercel AI SDK v6. Tracing and error monitoring will work automatically with the new version.
feat(wasm): Add applicationKey option for third-party error filtering (#18762)
Adds support for applying an application key to WASM stack frames that can be then used in the thirdPartyErrorFilterIntegration for detection of first-party code.
Usage:
Sentry.init({
integrations: [
// Integration order matters: wasmIntegration needs to be before thirdPartyErrorFilterIntegration
wasmIntegration({ applicationKey: 'your-custom-application-key' }), ←───┐
thirdPartyErrorFilterIntegration({ │
behaviour: 'drop-error-if-exclusively-contains-third-party-frames', ├─ matching keys
filterKeys: ['your-custom-application-key'] ←─────────────────────────┘
}),
],
});
propagateTraceparent (#18569)ignoreSentryInternalFrames option to thirdPartyErrorFilterIntegration (#18632)isolateTrace option to node-cron instrumentation (#18416)process.on('SIGTERM') for flushing in Vercel functions (#17583)visibilitystate and pagehide listeners (#18581)tunnel in diagnoseSdkConnectivity (#18616)performance.now() from browserPerformanceTimeOrigin fallback (#18715)undefined (#18024)process.argv0 (#18759)setupFastifyErrorHandler argument type (#18620)defaultIntegrations (#18717)msg and err (#18597)resolve dependency (#18618)install-bun.js version check and improve upgrade feedback (#18492)@trpc/server and @trpc/client (#18722)@langchain/core (#18720)hoist-non-react-statics package (#18102)getCombinedScopeData helper (#18585)performance.timeOrigin and performance.timing.navigationStart (#18710)browserPerformanceTimeOrigin (#18708)browserPerformanceTimeOrigin reliability check (#18719)serializeAttributes for metric attribute serialization (#18582)isCjs (#18662)Work in this release was contributed by @G-Rath, @gianpaj, @maximepvrt, @Mohataseem89, @sebws, and @xgedev. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 24.37 KB |
| @sentry/browser - with treeshaking flags | 22.92 KB |
| @sentry/browser (incl. Tracing) | 40.71 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.19 KB |
| @sentry/browser (incl. Tracing, Replay) | 78.43 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.37 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 94.93 KB |
| @sentry/browser (incl. Feedback) | 40.7 KB |
| @sentry/browser (incl. sendFeedback) | 28.95 KB |
| @sentry/browser (incl. FeedbackAsync) | 33.82 KB |
| @sentry/browser (incl. Metrics) | 25.44 KB |
| @sentry/browser (incl. Logs) | 25.59 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.22 KB |
| @sentry/react | 26.05 KB |
| @sentry/react (incl. Tracing) | 42.9 KB |
| @sentry/vue | 28.72 KB |
| @sentry/vue (incl. Tracing) | 42.5 KB |
| @sentry/svelte | 24.39 KB |
| CDN Bundle | 26.83 KB |
| CDN Bundle (incl. Tracing) | 41.46 KB |
| CDN Bundle (incl. Tracing, Replay) | 77.31 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 82.6 KB |
| CDN Bundle - uncompressed | 78.62 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 122.94 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 236.75 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 249.24 KB |
| @sentry/nextjs (client) | 45.2 KB |
| @sentry/sveltekit (client) | 41.08 KB |
| @sentry/node-core | 50.59 KB |
| @sentry/node | 158.26 KB |
| @sentry/node - without tracing | 91.06 KB |
| @sentry/aws-serverless | 106.2 KB |