You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@sentry/electron

Package Overview
Dependencies
Maintainers
10
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/electron

Official Sentry SDK for Electron

5.12.0
Source
npmnpm
Version published
Maintainers
10
Created

What is @sentry/electron?

@sentry/electron is a package that provides error tracking and performance monitoring for Electron applications. It allows developers to capture and report errors, monitor application performance, and gain insights into application behavior in production environments.

What are @sentry/electron's main functionalities?

Error Tracking

This feature allows developers to initialize Sentry in their Electron application to automatically capture and report errors. The DSN (Data Source Name) is used to identify the project in Sentry.

const { init } = require('@sentry/electron');

init({
  dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0',
});

Performance Monitoring

This feature enables performance monitoring by setting a sample rate for tracing. It helps in capturing performance data to analyze application speed and responsiveness.

const { init } = require('@sentry/electron');

init({
  dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0',
  tracesSampleRate: 1.0,
});

Breadcrumbs

Breadcrumbs are used to record events leading up to an error. This feature allows developers to add custom breadcrumbs to provide context around errors.

const { addBreadcrumb } = require('@sentry/electron');

addBreadcrumb({
  category: 'ui.click',
  message: 'User clicked on button',
  level: 'info',
});

Other packages similar to @sentry/electron

FAQs

Package last updated on 02 Apr 2025

Did you know?

Socket

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.

Install

Related posts