@sentry/ember 7.98.0 → 7.99.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
|
@@ -5,7 +5,7 @@ import { getOwnConfig, isDevelopingApp, macroCondition } from '@embroider/macros
|
|
|
5
5
|
import { startSpan } from '@sentry/browser';
|
|
6
6
|
import type { BrowserOptions } from '@sentry/browser';
|
|
7
7
|
import * as Sentry from '@sentry/browser';
|
|
8
|
-
import { applySdkMetadata } from '@sentry/core';
|
|
8
|
+
import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, applySdkMetadata } from '@sentry/core';
|
|
9
9
|
import { GLOBAL_OBJ } from '@sentry/utils';
|
|
10
10
|
import Ember from 'ember';
|
|
11
11
|
|
|
@@ -82,9 +82,11 @@ export const instrumentRoutePerformance = <T extends RouteConstructor>(BaseRoute
|
|
|
82
82
|
): Promise<ReturnType<X>> => {
|
|
83
83
|
return startSpan(
|
|
84
84
|
{
|
|
85
|
+
attributes: {
|
|
86
|
+
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'ember',
|
|
87
|
+
},
|
|
85
88
|
op,
|
|
86
89
|
name: description,
|
|
87
|
-
origin: 'auto.ui.ember',
|
|
88
90
|
},
|
|
89
91
|
() => {
|
|
90
92
|
return fn(...args);
|
|
@@ -11,6 +11,7 @@ import type { ExtendedBackburner } from '@sentry/ember/runloop';
|
|
|
11
11
|
import type { Span, Transaction } from '@sentry/types';
|
|
12
12
|
import { GLOBAL_OBJ, browserPerformanceTimeOrigin, timestampInSeconds } from '@sentry/utils';
|
|
13
13
|
|
|
14
|
+
import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
|
|
14
15
|
import type { BrowserClient } from '..';
|
|
15
16
|
import { getActiveSpan, startInactiveSpan } from '..';
|
|
16
17
|
import type { EmberRouterMain, EmberSentryConfig, GlobalConfig, OwnConfig, StartTransactionFunction } from '../types';
|
|
@@ -150,9 +151,11 @@ export function _instrumentEmberRouter(
|
|
|
150
151
|
},
|
|
151
152
|
});
|
|
152
153
|
transitionSpan = startInactiveSpan({
|
|
154
|
+
attributes: {
|
|
155
|
+
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.ember',
|
|
156
|
+
},
|
|
153
157
|
op: 'ui.ember.transition',
|
|
154
158
|
name: `route:${fromRoute} -> route:${toRoute}`,
|
|
155
|
-
origin: 'auto.ui.ember',
|
|
156
159
|
});
|
|
157
160
|
});
|
|
158
161
|
|
|
@@ -212,9 +215,11 @@ function _instrumentEmberRunloop(config: EmberSentryConfig): void {
|
|
|
212
215
|
|
|
213
216
|
if ((now - currentQueueStart) * 1000 >= minQueueDuration) {
|
|
214
217
|
startInactiveSpan({
|
|
218
|
+
attributes: {
|
|
219
|
+
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.ember',
|
|
220
|
+
},
|
|
215
221
|
name: 'runloop',
|
|
216
222
|
op: `ui.ember.runloop.${queue}`,
|
|
217
|
-
origin: 'auto.ui.ember',
|
|
218
223
|
startTimestamp: currentQueueStart,
|
|
219
224
|
})?.end(now);
|
|
220
225
|
}
|
|
@@ -370,7 +375,9 @@ function _instrumentInitialLoad(config: EmberSentryConfig): void {
|
|
|
370
375
|
startInactiveSpan({
|
|
371
376
|
op: 'ui.ember.init',
|
|
372
377
|
name: 'init',
|
|
373
|
-
|
|
378
|
+
attributes: {
|
|
379
|
+
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.ember',
|
|
380
|
+
},
|
|
374
381
|
startTimestamp,
|
|
375
382
|
})?.end(endTimestamp);
|
|
376
383
|
performance.clearMarks(startName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/ember",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.99.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,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@embroider/macros": "^1.9.0",
|
|
35
|
-
"@sentry/browser": "7.
|
|
36
|
-
"@sentry/core": "7.
|
|
37
|
-
"@sentry/types": "7.
|
|
38
|
-
"@sentry/utils": "7.
|
|
35
|
+
"@sentry/browser": "7.99.0",
|
|
36
|
+
"@sentry/core": "7.99.0",
|
|
37
|
+
"@sentry/types": "7.99.0",
|
|
38
|
+
"@sentry/utils": "7.99.0",
|
|
39
39
|
"ember-auto-import": "^1.12.1 || ^2.4.3",
|
|
40
40
|
"ember-cli-babel": "^7.26.11",
|
|
41
41
|
"ember-cli-htmlbars": "^6.1.1",
|