@sentry/ember 6.18.2 → 6.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/addon/index.ts
CHANGED
|
@@ -51,7 +51,7 @@ export function InitSentryForEmber(_runtimeConfig?: BrowserOptions) {
|
|
|
51
51
|
if (environmentConfig.ignoreEmberOnErrorWarning) {
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
|
-
next(null, function() {
|
|
54
|
+
next(null, function () {
|
|
55
55
|
warn(
|
|
56
56
|
'Ember.onerror found. Using Ember.onerror can hide some errors (such as flushed runloop errors) from Sentry. Use Sentry.captureException to capture errors within Ember.onError or remove it to have errors caught by Sentry directly. This error can be silenced via addon configuration.',
|
|
57
57
|
!Ember.onerror,
|
|
@@ -64,9 +64,7 @@ export function InitSentryForEmber(_runtimeConfig?: BrowserOptions) {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
export const getActiveTransaction = () => {
|
|
67
|
-
return Sentry.getCurrentHub()
|
|
68
|
-
?.getScope()
|
|
69
|
-
?.getTransaction();
|
|
67
|
+
return Sentry.getCurrentHub()?.getScope()?.getTransaction();
|
|
70
68
|
};
|
|
71
69
|
|
|
72
70
|
export const instrumentRoutePerformance = (BaseRoute: any) => {
|
|
@@ -2,7 +2,7 @@ import ApplicationInstance from '@ember/application/instance';
|
|
|
2
2
|
import Ember from 'ember';
|
|
3
3
|
import { run, _backburner, scheduleOnce } from '@ember/runloop';
|
|
4
4
|
import * as Sentry from '@sentry/browser';
|
|
5
|
-
import { ExtendedBackburner } from
|
|
5
|
+
import { ExtendedBackburner } from '@sentry/ember/runloop';
|
|
6
6
|
import { Span, Transaction, Integration } from '@sentry/types';
|
|
7
7
|
import { EmberRunQueues } from '@ember/runloop/-private/types';
|
|
8
8
|
import { getActiveTransaction } from '..';
|
|
@@ -14,6 +14,11 @@ function getSentryConfig() {
|
|
|
14
14
|
const _global = getGlobalObject<GlobalConfig>();
|
|
15
15
|
_global.__sentryEmberConfig = _global.__sentryEmberConfig ?? {};
|
|
16
16
|
const environmentConfig = getOwnConfig<OwnConfig>().sentryConfig;
|
|
17
|
+
if (!environmentConfig.sentry) {
|
|
18
|
+
environmentConfig.sentry = {
|
|
19
|
+
browserTracingOptions: {},
|
|
20
|
+
};
|
|
21
|
+
}
|
|
17
22
|
Object.assign(environmentConfig.sentry, _global.__sentryEmberConfig);
|
|
18
23
|
return environmentConfig;
|
|
19
24
|
}
|
|
@@ -29,7 +34,7 @@ export function initialize(appInstance: ApplicationInstance): void {
|
|
|
29
34
|
}
|
|
30
35
|
}
|
|
31
36
|
|
|
32
|
-
function getBackburner(): Pick<ExtendedBackburner,
|
|
37
|
+
function getBackburner(): Pick<ExtendedBackburner, 'on' | 'off'> {
|
|
33
38
|
if (_backburner) {
|
|
34
39
|
return _backburner;
|
|
35
40
|
}
|
|
@@ -40,8 +45,8 @@ function getBackburner(): Pick<ExtendedBackburner, "on" | "off"> {
|
|
|
40
45
|
|
|
41
46
|
return {
|
|
42
47
|
on() {},
|
|
43
|
-
off() {}
|
|
44
|
-
}
|
|
48
|
+
off() {},
|
|
49
|
+
};
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
function getTransitionInformation(transition: any, router: any) {
|
package/config/environment.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/ember",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.19.0",
|
|
4
4
|
"description": "Official Sentry SDK for Ember.js",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/ember",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@embroider/macros": "~0.47.2",
|
|
34
|
-
"@sentry/browser": "6.
|
|
35
|
-
"@sentry/tracing": "6.
|
|
36
|
-
"@sentry/types": "6.
|
|
37
|
-
"@sentry/utils": "6.
|
|
38
|
-
"ember-auto-import": "
|
|
34
|
+
"@sentry/browser": "6.19.0",
|
|
35
|
+
"@sentry/tracing": "6.19.0",
|
|
36
|
+
"@sentry/types": "6.19.0",
|
|
37
|
+
"@sentry/utils": "6.19.0",
|
|
38
|
+
"ember-auto-import": "~1.12.1 || ~2.2.0",
|
|
39
39
|
"ember-cli-babel": "~7.26.6",
|
|
40
40
|
"ember-cli-htmlbars": "^6.0.1",
|
|
41
41
|
"ember-cli-typescript": "^4.2.1"
|
package/types/dummy/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|