@sentry/tracing
7.120.4 · 29 Jul 2025MIT1.8M / weekRepositoryHomepagenpmAtom feed
7.120.4 is the newest release of 7.x.
In short
7 new9 fixed3 internal
Release note
Important Changes
This release version bumps the internally used typescript version from 3.8.x to 4.9.x.
We use ds-downlevel to generate two versions of our types, one for >=3.8, one for >=4.9.
This means that this change should be fully backwards compatible and not have any noticable user impact,
but if you still encounter issues please let us know.
types: Add tracePropagationTargets to top level options
Instead of passing tracePropagationTargets to the BrowserTracing integration, you can now define them on the top level:
Sentry.init({
tracePropagationTargets: ['api.site.com'],
});angular: Filter out
TryCatchintegration by default
The Angular and Angular-ivy SDKs will not install the TryCatch integration anymore by default.
This integration conflicted with the SentryErrorHander, sometimes leading to duplicated errors and/or missing data on events.
browser: Better event name handling for non-Error objects
When capturing non-errors via Sentry.captureException(), e.g. Sentry.captureException({ prop: "custom object" }),
we now generate a more helpful value for the synthetic exception. Instead of e.g. Non-Error exception captured with keys: currentTarget, isTrusted, target, type, you'll now get messages like:
Object captured as exception with keys: prop1, prop2 Event `MouseEvent` (type=click) captured as exception Event `ErrorEvent` captured as exception with message `Script error.`
Other Changes
browser: Send profiles in same envelope as transactions
profiling: Collect timings on profiler stop calls
replay: Do not capture replays < 5 seconds (GA)
tracing: Add experiment to capture http timings
tracing: Add
http.response.status_codetospan.dataangular: Stop routing spans on navigation cancel and error events
core: Only start spans in
traceif tracing is enablednextjs: Inject init calls via loader instead of via entrypoints
replay: Mark ui.slowClickDetected
clickCountas optionalserverless: Export
autoDiscoverNodePerformanceMonitoringIntegrationsfrom SDKsveltekit: Check for cached requests in client-side fetch instrumentation
sveltekit: Only instrument SvelteKit
fetchif the SDK client is validtracing: Instrument Prisma client in constructor of integration
Bundle size
| Path | Size |
|---|---|
| @sentry/browser - ES5 CDN Bundle (gzipped + minified) | 21.49 KB |
| @sentry/browser - ES5 CDN Bundle (minified) | 67.59 KB |
| @sentry/browser - ES6 CDN Bundle (gzipped + minified) | 19.82 KB |
| @sentry/browser - ES6 CDN Bundle (minified) | 58.9 KB |
| @sentry/browser - Webpack (gzipped + minified) | 21.43 KB |
| @sentry/browser - Webpack (minified) | 69.87 KB |
| @sentry/react - Webpack (gzipped + minified) | 21.46 KB |
| @sentry/nextjs Client - Webpack (gzipped + minified) | 49.81 KB |
| @sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) | 29.39 KB |
| @sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) | 27.48 KB |
| @sentry/replay ES6 CDN Bundle (gzipped + minified) | 49.34 KB |
| @sentry/replay - Webpack (gzipped + minified) | 43.11 KB |
| @sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) | 68.82 KB |
| @sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) | 61.38 KB |