Socket
Socket
Sign inDemoInstall

@sentry/core

Package Overview
Dependencies
2
Maintainers
11
Versions
467
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @sentry/core

Base implementation for all Sentry JavaScript SDKs


Version published
Weekly downloads
10M
decreased by-1.32%
Maintainers
11
Install size
3.08 MB
Created
Weekly downloads
 

Package description

What is @sentry/core?

The @sentry/core package is part of the Sentry SDK for JavaScript, which is designed for real-time monitoring and tracking of application health, errors, and performance issues. It provides the core functionalities needed for initializing and configuring Sentry in your application, handling exceptions, and capturing messages and events.

What are @sentry/core's main functionalities?

Initialization and Configuration

This feature allows you to initialize Sentry in your application with your project's DSN (Data Source Name). It is the first step in integrating Sentry into your project for error tracking and performance monitoring.

Sentry.init({ dsn: 'YOUR_DSN_HERE' });

Capturing Exceptions

This feature enables you to capture exceptions in your code and send them to Sentry for monitoring and analysis. It helps in identifying and debugging errors in your application.

try { myFunction(); } catch (e) { Sentry.captureException(e); }

Capturing Messages

This feature allows you to capture custom messages or log messages in Sentry. It can be used for tracking custom events or information that is not necessarily an error.

Sentry.captureMessage('Something went wrong');

Other packages similar to @sentry/core

Changelog

Source

8.0.0-alpha.5

This is the fifth alpha release of Sentry JavaScript SDK v8, which includes a variety of breaking changes.

Read the in-depth migration guide to find out how to address any breaking changes in your code.

Important Changes

  • feat(nextjs): Remove client.(server|client).config.ts functionality in favor of instrumentation.ts (#11059)
    • feat(nextjs): Bump minimum required Next.js version to 13.2.0 (#11097)

With version 8 of the SDK we will no longer support the use of sentry.server.config.ts and sentry.edge.config.ts files. Instead, please initialize the Sentry Next.js SDK for the serverside in a Next.js instrumentation hook. sentry.client.config.ts|js is still supported and encouraged for initializing the clientside SDK. Please see the Migration Guide for more details.

In addition, the Next.js SDK now requires a minimum Next.js version of 13.2.0.

  • feat(v8/angular): Merge angular and angular-ivy packages and start Angular support at v14 (#11091)

The @sentry/angular-ivy package has been removed. The @sentry/angular package now supports Ivy by default and requires at least Angular 14. See the Migration Guide for more details.

Removal/Refactoring of deprecated functionality

  • feat(aws-serverless): Remove deprecated rethrowAfterCapture option (#11126)
  • feat(node): Remove deprecated/duplicate/unused definitions (#11120)
  • feat(v8): Remove deprecated integration methods on client (#11134)
  • feat(v8/browser): Remove class export for linked errors (#11129)
  • feat(v8/browser): Remove deprecated wrap export (#11127)
  • feat(v8/core): Remove deprecated client.setupIntegrations method (#11179)
  • feat(v8/core): Remove deprecated integration classes (#11132)
  • feat(v8/ember): Remove InitSentryForEmber export (#11202)
  • feat(v8/nextjs): Remove usage of class integrations (#11182)
  • feat(v8/replay): Delete deprecated types (#11177)
  • feat(v8/utils): Remove deprecated util functions (#11143)
  • ref(node): Remove class based export for local variable integration (#11128)

Other Changes

  • feat(browser): Make fetch the default transport for offline (#11209)
  • feat(core): Filter out noisy GoogleTag error by default (#11208)
  • feat(deps): Bump @sentry/cli from 2.30.0 to 2.30.2 (#11168)
  • feat(nextjs): Prefix webpack plugin log messages with runtime (#11173)
  • feat(node-profiling): Output ESM and remove Sentry deps from output (#11135)
  • feat(node): Allow Anr worker to be stopped and restarted (#11214)
  • feat(node): Support tunnel option for ANR (#11163)
  • feat(opentelemetry): Do not capture exceptions for timed events (#11221)
  • feat(serverless): Add Node.js 20 to compatible runtimes (#11103)
  • feat(sveltekit): Switch to Otel-based @sentry/node package (#11075)
  • fix(attachments): Add missing view_hierarchy attachment type (#11197)
  • fix(build): Ensure tree shaking works properly for ESM output (#11122)
  • fix(feedback): Only allow screenshots in secure contexts (#11188)
  • fix(feedback): Reduce force layout in screenshots (#11181)
  • fix(feedback): Smoother cropping experience and better UI (#11165)
  • fix(feedback): Fix screenshot black bars in Safari (#11233)
  • fix(metrics): use correct statsd data category (#11184)
  • fix(metrics): use web-vitals ttfb calculation (#11185)
  • fix(node): Export initOpenTelemetry (#11158)
  • fix(node): Clear ANR timer on stop (#11229)
  • fix(node): Time zone handling for cron (#11225)
  • fix(node): Use unique variable for ANR context transfer (#11161)
  • fix(opentelemetry): Do not stomp span error status (#11169)
  • fix(types): Fix incorrect sampled type on Transaction (#11115)

Readme

Source

Sentry

Sentry JavaScript SDK Core

npm version npm dm npm dt

General

This package contains interface definitions, base classes and utilities for building Sentry JavaScript SDKs, like @sentry/node or @sentry/browser.

Please consider all classes and exported functions and interfaces internal.

FAQs

Last updated on 22 Mar 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc