Sentry Session Replay with Canvas
Pre-requisites
Replay with canvas requires Node 14+, and browsers newer than IE11.
Installation
Replay and ReplayCanvas can be imported from @sentry/browser
, or a respective SDK package like @sentry/react
or
@sentry/vue
. You don't need to install anything in order to use Session Replay. The minimum version that includes
Replay is 7.27.0.
For details on using Replay when using Sentry via the CDN bundles, see CDN bundle.
Setup
To set up the canvas integration, add the following to your Sentry integrations:
Sentry.replayCanvasIntegration(),
Full Example
import * as Sentry from '@sentry/browser';
Sentry.init({
dsn: '__DSN__',
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
integrations: [Sentry.replayIntegration(), Sentry.replayCanvasIntegration()],
});
8.30.0
Important Changes
- feat(node): Add
kafkajs
integration (#13528)
This release adds a new integration that instruments kafkajs
library with spans and traces. This integration is
automatically enabled by default, but can be included with the Sentry.kafkaIntegration()
import.
Sentry.init({
integrations: [Sentry.kafkaIntegration()],
});
Other Changes
- feat(core): Allow adding measurements without global client (#13612)
- feat(deps): Bump @opentelemetry/instrumentation-undici from 0.5.0 to 0.6.0 (#13622)
- feat(deps): Bump @sentry/cli from 2.33.0 to 2.35.0 (#13624)
- feat(node): Use
@opentelemetry/instrumentation-undici
for fetch tracing (#13485) - feat(nuxt): Add server config to root folder (#13583)
- feat(otel): Upgrade @opentelemetry/semantic-conventions to 1.26.0 (#13631)
- fix(browser): check supportedEntryTypes before caling the function (#13541)
- fix(browser): Ensure Standalone CLS span timestamps are correct (#13649)
- fix(nextjs): Widen removal of 404 transactions (#13628)
- fix(node): Remove ambiguity and race conditions when matching local variables to exceptions (#13501)
- fix(node): Update OpenTelemetry instrumentation package for solidstart and opentelemetry (#13640)
- fix(node): Update OpenTelemetry instrumentation package for solidstart and opentelemetry (#13642)
- fix(vue): Ensure Vue
trackComponents
list matches components with or without <>
(#13543) - ref(profiling): Conditionally shim cjs globals (#13267)
Work in this release was contributed by @Zen-cronic and @odanado. Thank you for your contributions!