@sentry/integrations
- Version 7.114.0
- Published
- 275 kB
- 4 dependencies
- MIT license
Install
npm i @sentry/integrations
yarn add @sentry/integrations
pnpm add @sentry/integrations
Overview
Pluggable integrations that can be used to enhance JS SDKs
Index
Variables
Functions
Classes
Variables
variable CaptureConsole
const CaptureConsole: any;
Send Console API calls as Sentry Events.
Deprecated
Use
captureConsoleIntegration()
instead.
variable ContextLines
const ContextLines: any;
Collects source context lines around the lines of stackframes pointing to JS embedded in the current page's HTML.
This integration DOES NOT work for stack frames pointing to JS files that are loaded by the browser. For frames pointing to files, context lines are added during ingestion and symbolication by attempting to download the JS files to the Sentry backend.
Use this integration if you have inline JS code in HTML pages that can't be accessed by our backend (e.g. due to a login-protected page).
Deprecated
Use
contextLinesIntegration()
instead.
variable Debug
const Debug: any;
Integration to debug sent Sentry events. This integration should not be used in production.
Deprecated
Use
debugIntegration()
instead.
variable Dedupe
const Dedupe: IntegrationClass<any>;
Deduplication filter.
Deprecated
Use
dedupeIntegration()
instead.
variable ExtraErrorData
const ExtraErrorData: any;
Extract additional data for from original exceptions.
Deprecated
Use
extraErrorDataIntegration()
instead.
variable HttpClient
const HttpClient: any;
Create events for failed client side HTTP requests.
Deprecated
Use
httpClientIntegration()
instead.
variable ReportingObserver
const ReportingObserver: any;
Reporting API integration - https://w3c.github.io/reporting/
Deprecated
Use
reportingObserverIntegration()
instead.
variable RewriteFrames
const RewriteFrames: any;
Rewrite event frames paths.
Deprecated
Use
rewriteFramesIntegration()
instead.
variable SessionTiming
const SessionTiming: IntegrationClass<any>;
This function adds duration since Sentry was initialized till the time event was sent.
Deprecated
Use
sessionTimingIntegration()
instead.
variable Transaction
const Transaction: IntegrationClass<any>;
Add node transaction to the event.
Deprecated
This integration will be removed in v8.
Functions
function captureConsoleIntegration
captureConsoleIntegration: (options?: CaptureConsoleOptions | undefined) => any;
function contextLinesIntegration
contextLinesIntegration: (options?: ContextLinesOptions | undefined) => any;
function debugIntegration
debugIntegration: (options?: DebugOptions | undefined) => any;
function dedupeIntegration
dedupeIntegration: () => any;
function extraErrorDataIntegration
extraErrorDataIntegration: ( options?: Partial<ExtraErrorDataOptions> | undefined) => any;
function httpClientIntegration
httpClientIntegration: (options?: Partial<HttpClientOptions> | undefined) => any;
function reportingObserverIntegration
reportingObserverIntegration: ( options?: ReportingObserverOptions | undefined) => any;
function rewriteFramesIntegration
rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => any;
function sessionTimingIntegration
sessionTimingIntegration: () => any;
Classes
class Offline
class Offline implements Integration {}
cache offline errors and send when connected
Deprecated
The offline integration has been deprecated in favor of the offline transport wrapper.
http://docs.sentry.io/platforms/javascript/configuration/transports/#offline-caching
constructor
constructor(options?: { maxStoredEvents?: number });
property hub
hub?: Hub;
the current hub instance
property id
static id: string;
property maxStoredEvents
maxStoredEvents: number;
maximum number of events to store while offline
property name
readonly name: string;
property offlineEventStore
offlineEventStore: LocalForage;
event cache
method setupOnce
setupOnce: ( addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub) => void;
Package Files (12)
Dependencies (4)
Dev Dependencies (1)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@sentry/integrations
.
- Markdown[](https://www.jsdocs.io/package/@sentry/integrations)
- HTML<a href="https://www.jsdocs.io/package/@sentry/integrations"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2312 ms. - Missing or incorrect documentation? Open an issue for this package.