Packages

@sentry/tracing

7.120.4 · 29 Jul 2025MIT1.8M / weekRepositoryHomepagenpmAtom feed

Your version

7.95.0

23 Jan 2024Where it was published

7.120.4 is the newest release of 7.x.

In short

5 deprecated3 new2 fixed

  • deprecated

    core: Deprecate Span.origin in favor of sentry.origin attribute

  • deprecated

    core: Deprecate Span.parentSpanId

  • deprecated

    core: Expose isInitialized() to replace checking via getClient

  • deprecated

    replay: Deprecate Replay, ReplayCanvas, Feedback classes

  • deprecated

    wasm: Deprecate Wasm integration class

Release note

Important Changes

Deprecations

This release includes some deprecations in preparation for v8.

Most notably, it deprecates the Replay & Feedback classes in favor of a functional replacement:

import * as Sentry from '@sentry/browser';

Sentry.init({
  integrations: [
    // Instead of
    new Sentry.Replay(),
    new Sentry.Feedback(),
    // Use the functional replacement:
    Sentry.replayIntegration(),
    Sentry.feedbackIntegration(),
  ],
});
  • deprecated

    core: Deprecate Span.origin in favor of sentry.origin attribute

  • deprecated

    core: Deprecate Span.parentSpanId

  • deprecated

    core: Expose isInitialized() to replace checking via getClient

  • deprecated

    replay: Deprecate Replay, ReplayCanvas, Feedback classes

  • deprecated

    wasm: Deprecate Wasm integration class

Other Changes

  • Make parameterize function available through browser and node API

  • feedback: Configure feedback border radius

  • sveltekit: Update default integration handling & deprecate addOrUpdateIntegration

  • replay-canvas: Add missing dependency on @sentry/utils

  • tracing: Don't send negative ttfb

Work in this release contributed by @AleshaOleg. Thank you for your contribution!

Bundle size

PathSize
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped)77.79 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped)68.96 KB
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped)72.85 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped)62.6 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped)32.97 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped)31.24 KB
@sentry/browser (incl. sendFeedback) - Webpack (gzipped)31.25 KB
@sentry/browser - Webpack (gzipped)22.53 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped)75.46 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped)67.03 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped)32.85 KB
@sentry/browser - ES6 CDN Bundle (gzipped)24.36 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed)211.12 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed)99.11 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed)72.91 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped)35.95 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped)69.37 KB
@sentry/react - Webpack (gzipped)22.58 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped)85.98 KB
@sentry/nextjs Client - Webpack (gzipped)50.27 KB
@sentry-internal/feedback - Webpack (gzipped)17.21 KB