Add Sentry instrumentation for JavaScript
This commit is contained in:
@ -16,11 +16,22 @@ import 'jstree';
|
||||
import * as _ from 'underscore';
|
||||
import * as d3 from 'd3';
|
||||
import * as Sentry from '@sentry/browser';
|
||||
import * as SentryIntegration from '@sentry/integrations';
|
||||
import { startIdleTransaction, TRACING_DEFAULTS } from '@sentry/core';
|
||||
import { dynamicSamplingContextToSentryBaggageHeader } from '@sentry/utils';
|
||||
import 'sorttable';
|
||||
window.bootstrap = bootstrap; // Publish bootstrap in global namespace
|
||||
window._ = _; // Publish underscore's `_` in global namespace
|
||||
window.d3 = d3; // Publish d3 in global namespace
|
||||
window.Sentry = Sentry; // Publish sentry in global namespace
|
||||
window.SentryIntegrations = [ // Publish sentry integration in global namespace
|
||||
new SentryIntegration.ReportingObserver(),
|
||||
new SentryIntegration.ExtraErrorData(),
|
||||
new SentryIntegration.HttpClient(),
|
||||
new Sentry.BrowserTracing(),
|
||||
new Sentry.Replay(),
|
||||
];
|
||||
window.SentryUtils = { dynamicSamplingContextToSentryBaggageHeader, startIdleTransaction, TRACING_DEFAULTS };
|
||||
|
||||
// CSS
|
||||
import 'chosen-js/chosen.css';
|
||||
|
Reference in New Issue
Block a user