mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Upgraded Sentry error monitoring
This commit is contained in:
parent
9f1d678418
commit
b4ea4d3b58
@ -64,8 +64,17 @@ $.ready(function() {
|
||||
moment.suppressDeprecationWarnings = true;
|
||||
if (window.environment === 'live') {
|
||||
Sentry.init({
|
||||
'release': window.commit,
|
||||
'dsn': 'https://af9fd2cf6cda49dcb93dcaf02fe39fc6@sentry.io/3736982',
|
||||
'ignoreErrors': ['window.webkit.messageHandlers']
|
||||
'ignoreErrors': ['window.webkit.messageHandlers'],
|
||||
'integrations': [
|
||||
Sentry.replayIntegration({
|
||||
maskAllText: false,
|
||||
blockAllMedia: false,
|
||||
}),
|
||||
],
|
||||
'replaysSessionSampleRate': 0.01, // 1%
|
||||
'replaysOnErrorSampleRate': 1.0, // 100%
|
||||
});
|
||||
}
|
||||
(new beestat.layer.load()).render();
|
||||
|
@ -7,6 +7,7 @@ $setting = cora\setting::get_instance();
|
||||
echo '<script>window.beestat_api_key_local = \'' . $setting->get('beestat_api_key_local') . '\';</script>';
|
||||
echo '<script>window.environment = \'' . $setting->get('environment') . '\';</script>';
|
||||
echo '<script>window.is_demo = ' . ($setting->is_demo() === true ? 'true' : 'false') . ';</script>';
|
||||
echo '<script>window.commit = \'' . $setting->get('commit') . '\';</script>';
|
||||
|
||||
if($setting->get('environment') === 'dev' || $setting->get('environment') === 'dev_live') {
|
||||
// External libraries
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user