@sentry/ember 6.15.0 → 6.17.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 +0 -4
- package/addon/instance-initializers/sentry-performance.ts +5 -5
- package/index.d.ts +0 -3
- package/package.json +14 -16
- package/scripts/run-CI-tests.js +17 -0
- package/scripts/run_tests.js +0 -15
package/addon/index.ts
CHANGED
|
@@ -8,10 +8,6 @@ import { timestampWithMs } from '@sentry/utils';
|
|
|
8
8
|
import { GlobalConfig, OwnConfig } from './types';
|
|
9
9
|
import { getGlobalObject } from '@sentry/utils';
|
|
10
10
|
|
|
11
|
-
declare module '@ember/debug' {
|
|
12
|
-
export function assert(desc: string, test: unknown): void;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
11
|
function _getSentryInitConfig() {
|
|
16
12
|
const _global = getGlobalObject<GlobalConfig>();
|
|
17
13
|
_global.__sentryEmberConfig = _global.__sentryEmberConfig ?? {};
|
|
@@ -109,7 +109,7 @@ export function _instrumentEmberRouter(
|
|
|
109
109
|
},
|
|
110
110
|
});
|
|
111
111
|
transitionSpan = activeTransaction.startChild({
|
|
112
|
-
op: 'ember.transition',
|
|
112
|
+
op: 'ui.ember.transition',
|
|
113
113
|
description: `route:${fromRoute} -> route:${toRoute}`,
|
|
114
114
|
});
|
|
115
115
|
});
|
|
@@ -173,7 +173,7 @@ function _instrumentEmberRunloop(config: EmberSentryConfig) {
|
|
|
173
173
|
if ((now - currentQueueStart) * 1000 >= minQueueDuration) {
|
|
174
174
|
activeTransaction
|
|
175
175
|
?.startChild({
|
|
176
|
-
op: `ember.runloop.${queue}`,
|
|
176
|
+
op: `ui.ember.runloop.${queue}`,
|
|
177
177
|
startTimestamp: currentQueueStart,
|
|
178
178
|
endTimestamp: now,
|
|
179
179
|
})
|
|
@@ -273,7 +273,7 @@ function _instrumentComponents(config: EmberSentryConfig) {
|
|
|
273
273
|
},
|
|
274
274
|
|
|
275
275
|
after(_name: string, _timestamp: number, payload: any, _beganIndex: number) {
|
|
276
|
-
processComponentRenderAfter(payload, beforeEntries, 'ember.component.render', minComponentDuration);
|
|
276
|
+
processComponentRenderAfter(payload, beforeEntries, 'ui.ember.component.render', minComponentDuration);
|
|
277
277
|
},
|
|
278
278
|
});
|
|
279
279
|
if (enableComponentDefinitions) {
|
|
@@ -283,7 +283,7 @@ function _instrumentComponents(config: EmberSentryConfig) {
|
|
|
283
283
|
},
|
|
284
284
|
|
|
285
285
|
after(_name: string, _timestamp: number, payload: any, _beganIndex: number) {
|
|
286
|
-
processComponentRenderAfter(payload, beforeComponentDefinitionEntries, 'ember.component.definition', 0);
|
|
286
|
+
processComponentRenderAfter(payload, beforeComponentDefinitionEntries, 'ui.ember.component.definition', 0);
|
|
287
287
|
},
|
|
288
288
|
});
|
|
289
289
|
}
|
|
@@ -331,7 +331,7 @@ function _instrumentInitialLoad(config: EmberSentryConfig) {
|
|
|
331
331
|
|
|
332
332
|
const transaction = getActiveTransaction();
|
|
333
333
|
const span = transaction?.startChild({
|
|
334
|
-
op: 'ember.
|
|
334
|
+
op: 'ui.ember.init',
|
|
335
335
|
startTimestamp,
|
|
336
336
|
});
|
|
337
337
|
span?.finish(endTimestamp);
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { BrowserOptions } from '@sentry/browser';
|
|
2
|
-
declare module '@ember/debug' {
|
|
3
|
-
function assert(desc: string, test: unknown): void;
|
|
4
|
-
}
|
|
5
2
|
export declare function InitSentryForEmber(_runtimeConfig?: BrowserOptions): void;
|
|
6
3
|
export declare const getActiveTransaction: () => import("@sentry/types").Transaction | undefined;
|
|
7
4
|
export declare const instrumentRoutePerformance: (BaseRoute: any) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/ember",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.17.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",
|
|
@@ -23,32 +23,31 @@
|
|
|
23
23
|
"lint:hbs": "ember-template-lint .",
|
|
24
24
|
"lint:js": "eslint . --cache --cache-location '../../eslintcache/'",
|
|
25
25
|
"pack": "npm pack",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
26
|
+
"prepack": "ember ts:precompile",
|
|
27
|
+
"postpack": "ember ts:clean",
|
|
28
28
|
"start": "ember serve",
|
|
29
|
-
"test": "
|
|
30
|
-
"test:
|
|
31
|
-
"test:ember-compatibility": "ember try:each"
|
|
29
|
+
"test": "ember try:each",
|
|
30
|
+
"test:all": "node ./scripts/run-CI-tests.js"
|
|
32
31
|
},
|
|
33
32
|
"dependencies": {
|
|
34
33
|
"@embroider/macros": "~0.47.2",
|
|
35
|
-
"@sentry/browser": "6.
|
|
36
|
-
"@sentry/tracing": "6.
|
|
37
|
-
"@sentry/types": "6.
|
|
38
|
-
"@sentry/utils": "6.
|
|
39
|
-
"ember-auto-import": "^1.12.0",
|
|
34
|
+
"@sentry/browser": "6.17.0",
|
|
35
|
+
"@sentry/tracing": "6.17.0",
|
|
36
|
+
"@sentry/types": "6.17.0",
|
|
37
|
+
"@sentry/utils": "6.17.0",
|
|
38
|
+
"ember-auto-import": "^1.12.0 || ^2.2.0",
|
|
40
39
|
"ember-cli-babel": "~7.26.6",
|
|
41
|
-
"ember-cli-htmlbars": "^
|
|
42
|
-
"ember-cli-typescript": "
|
|
40
|
+
"ember-cli-htmlbars": "^6.0.1",
|
|
41
|
+
"ember-cli-typescript": "^4.2.1"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
45
44
|
"@ember/optional-features": "~1.3.0",
|
|
46
45
|
"@embroider/test-setup": "~0.47.2",
|
|
47
46
|
"@glimmer/component": "~1.0.0",
|
|
48
47
|
"@glimmer/tracking": "~1.0.0",
|
|
49
|
-
"@sentry-internal/eslint-config-sdk": "6.15.0",
|
|
50
48
|
"@types/ember": "~3.16.5",
|
|
51
49
|
"@types/ember-qunit": "~3.4.9",
|
|
50
|
+
"@types/ember__debug": "^3.16.5",
|
|
52
51
|
"@types/ember__test-helpers": "~1.7.0",
|
|
53
52
|
"@types/qunit": "~2.9.1",
|
|
54
53
|
"@types/rsvp": "~4.0.3",
|
|
@@ -76,9 +75,8 @@
|
|
|
76
75
|
"eslint-plugin-ember": "~8.6.0",
|
|
77
76
|
"eslint-plugin-node": "^11.1.0",
|
|
78
77
|
"loader.js": "~4.7.0",
|
|
79
|
-
"npm-run-all": "^4.1.5",
|
|
80
78
|
"qunit-dom": "~1.2.0",
|
|
81
|
-
"
|
|
79
|
+
"webpack": "^5.65.0"
|
|
82
80
|
},
|
|
83
81
|
"engines": {
|
|
84
82
|
"node": "10.* || >= 12"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*eslint-env node*/
|
|
2
|
+
const { spawnSync } = require('child_process');
|
|
3
|
+
|
|
4
|
+
console.log('Mimicking the CI environment in order to run tests against multiple versions of Ember');
|
|
5
|
+
|
|
6
|
+
const result = spawnSync('yarn test', {
|
|
7
|
+
shell: true,
|
|
8
|
+
stdio: 'inherit',
|
|
9
|
+
env: {
|
|
10
|
+
...process.env,
|
|
11
|
+
GITHUB_ACTIONS: true,
|
|
12
|
+
GITHUB_EVENT_NAME: 'push',
|
|
13
|
+
GITHUB_HEAD_REF: 'master',
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
process.exit(result.status);
|
package/scripts/run_tests.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// running compatibilty tests takes ~15 min on a 2019 2.6 GHz 6-Core Intel i7 16" MacBook Pro w 32 GB of RAM, vs ~25 sec
|
|
2
|
-
// for the regular tests
|
|
3
|
-
|
|
4
|
-
/*eslint-env node*/
|
|
5
|
-
const { spawnSync } = require('child_process');
|
|
6
|
-
|
|
7
|
-
if (process.env.TRAVIS || process.env.GITHUB_ACTIONS) {
|
|
8
|
-
console.log('In CI - running tests against multiple versions of Ember');
|
|
9
|
-
const result = spawnSync('yarn npm-run-all lint:* test:*', { shell: true, stdio: 'inherit' });
|
|
10
|
-
process.exit(result.status);
|
|
11
|
-
} else {
|
|
12
|
-
console.log('Tests running locally - will only run tests against default version of Ember');
|
|
13
|
-
const result = spawnSync('yarn npm-run-all lint:* test:ember', { shell: true, stdio: 'inherit' });
|
|
14
|
-
process.exit(result.status);
|
|
15
|
-
}
|