
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@sentry/replay-canvas
Advanced tools
[!NOTE] This package is an internal library published for use by Sentry-owned JavaScript SDK packages. It is re-exported from
@sentry/browserand other browser-related SDKs like@sentry/reactand@sentry/vue. It is not part of the public API contract and may change in any release. Do not rely on SemVer compatibility if you depend on it directly.
Replay with canvas requires Node 14+, and browsers newer than IE11.
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.
To set up the canvas integration, add the following to your Sentry integrations:
Sentry.replayCanvasIntegration(),
import * as Sentry from '@sentry/browser';
// or e.g. import * as Sentry from '@sentry/react';
Sentry.init({
dsn: '__DSN__',
// This sets the sample rate to be 10%. You may want this to be 100% while
// in development and sample at a lower rate in production
replaysSessionSampleRate: 0.1,
// If the entire session is not sampled, use the below sample rate to sample
// sessions when an error occurs.
replaysOnErrorSampleRate: 1.0,
integrations: [Sentry.replayIntegration(), Sentry.replayCanvasIntegration()],
// ...
});
FAQs
Replay canvas integration
The npm package @sentry/replay-canvas receives a total of 1,143,467 weekly downloads. As such, @sentry/replay-canvas popularity was classified as popular.
We found that @sentry/replay-canvas demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.