@sentry/ember 9.28.1 → 9.30.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/README.md +0 -3
- package/addon/index.ts +3 -22
- package/addon/types.ts +3 -0
- package/package.json +3 -3
- package/types.d.ts +3 -0
package/README.md
CHANGED
|
@@ -70,9 +70,6 @@ following Ember specific configuration:
|
|
|
70
70
|
|
|
71
71
|
```javascript
|
|
72
72
|
ENV['@sentry/ember'] = {
|
|
73
|
-
// Will silence Ember.onError warning without the need of using Ember debugging tools.
|
|
74
|
-
ignoreEmberOnErrorWarning: false,
|
|
75
|
-
|
|
76
73
|
// Will disable automatic instrumentation of performance.
|
|
77
74
|
// Manual instrumentation will still be sent.
|
|
78
75
|
disablePerformance: true,
|
package/addon/index.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { assert
|
|
1
|
+
import { assert } from '@ember/debug';
|
|
2
2
|
import type Route from '@ember/routing/route';
|
|
3
|
-
import {
|
|
4
|
-
import { getOwnConfig, isDevelopingApp, macroCondition } from '@embroider/macros';
|
|
3
|
+
import { getOwnConfig } from '@embroider/macros';
|
|
5
4
|
import type { BrowserOptions } from '@sentry/browser';
|
|
6
5
|
import { startSpan } from '@sentry/browser';
|
|
7
6
|
import * as Sentry from '@sentry/browser';
|
|
@@ -12,7 +11,6 @@ import {
|
|
|
12
11
|
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
13
12
|
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
|
|
14
13
|
} from '@sentry/core';
|
|
15
|
-
import Ember from 'ember';
|
|
16
14
|
import type { EmberSentryConfig, GlobalConfig, OwnConfig } from './types';
|
|
17
15
|
|
|
18
16
|
function _getSentryInitConfig(): EmberSentryConfig['sentry'] {
|
|
@@ -45,24 +43,7 @@ export function init(_runtimeConfig?: BrowserOptions): Client | undefined {
|
|
|
45
43
|
const sentryInitConfig = _getSentryInitConfig();
|
|
46
44
|
Object.assign(sentryInitConfig, initConfig);
|
|
47
45
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
if (macroCondition(isDevelopingApp())) {
|
|
51
|
-
if (environmentConfig.ignoreEmberOnErrorWarning) {
|
|
52
|
-
return client;
|
|
53
|
-
}
|
|
54
|
-
next(null, function () {
|
|
55
|
-
warn(
|
|
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
|
-
!Ember.onerror,
|
|
58
|
-
{
|
|
59
|
-
id: '@sentry/ember.ember-onerror-detected',
|
|
60
|
-
},
|
|
61
|
-
);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
return client;
|
|
46
|
+
return Sentry.init(initConfig);
|
|
66
47
|
}
|
|
67
48
|
|
|
68
49
|
type RouteConstructor = new (...args: ConstructorParameters<typeof Route>) => Route;
|
package/addon/types.ts
CHANGED
|
@@ -5,6 +5,9 @@ type BrowserTracingOptions = Parameters<typeof browserTracingIntegration>[0];
|
|
|
5
5
|
export type EmberSentryConfig = {
|
|
6
6
|
sentry: BrowserOptions & { browserTracingOptions?: BrowserTracingOptions };
|
|
7
7
|
transitionTimeout: number;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated This option is no longer used and will be removed in the next major version.
|
|
10
|
+
*/
|
|
8
11
|
ignoreEmberOnErrorWarning: boolean;
|
|
9
12
|
disableInstrumentComponents: boolean;
|
|
10
13
|
disablePerformance: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/ember",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.30.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",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/core": "^7.24.4",
|
|
34
34
|
"@embroider/macros": "^1.16.0",
|
|
35
|
-
"@sentry/browser": "9.
|
|
36
|
-
"@sentry/core": "9.
|
|
35
|
+
"@sentry/browser": "9.30.0",
|
|
36
|
+
"@sentry/core": "9.30.0",
|
|
37
37
|
"ember-auto-import": "^2.7.2",
|
|
38
38
|
"ember-cli-babel": "^8.2.0",
|
|
39
39
|
"ember-cli-htmlbars": "^6.1.1",
|
package/types.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export type EmberSentryConfig = {
|
|
|
5
5
|
browserTracingOptions?: BrowserTracingOptions;
|
|
6
6
|
};
|
|
7
7
|
transitionTimeout: number;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated This option is no longer used and will be removed in the next major version.
|
|
10
|
+
*/
|
|
8
11
|
ignoreEmberOnErrorWarning: boolean;
|
|
9
12
|
disableInstrumentComponents: boolean;
|
|
10
13
|
disablePerformance: boolean;
|