@sentry/ember 7.100.0 → 7.101.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.
|
@@ -11,7 +11,7 @@ import type { ExtendedBackburner } from '@sentry/ember/runloop';
|
|
|
11
11
|
import type { Span } 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
|
+
import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core';
|
|
15
15
|
import type { BrowserClient } from '..';
|
|
16
16
|
import { getActiveSpan, startInactiveSpan } from '..';
|
|
17
17
|
import type { EmberRouterMain, EmberSentryConfig, GlobalConfig, OwnConfig } from '../types';
|
|
@@ -115,17 +115,18 @@ export function _instrumentEmberRouter(
|
|
|
115
115
|
browserTracingOptions.instrumentPageLoad !== false
|
|
116
116
|
) {
|
|
117
117
|
const routeInfo = routerService.recognize(url);
|
|
118
|
-
Sentry.startBrowserTracingPageLoadSpan(client, {
|
|
118
|
+
activeRootSpan = Sentry.startBrowserTracingPageLoadSpan(client, {
|
|
119
119
|
name: `route:${routeInfo.name}`,
|
|
120
|
-
op: 'pageload',
|
|
121
120
|
origin: 'auto.pageload.ember',
|
|
121
|
+
attributes: {
|
|
122
|
+
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',
|
|
123
|
+
},
|
|
122
124
|
tags: {
|
|
123
125
|
url,
|
|
124
126
|
toRoute: routeInfo.name,
|
|
125
127
|
'routing.instrumentation': '@sentry/ember',
|
|
126
128
|
},
|
|
127
129
|
});
|
|
128
|
-
activeRootSpan = getActiveSpan();
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
const finishActiveTransaction = (_: unknown, nextInstance: unknown): void => {
|
|
@@ -147,10 +148,12 @@ export function _instrumentEmberRouter(
|
|
|
147
148
|
const { fromRoute, toRoute } = getTransitionInformation(transition, routerService);
|
|
148
149
|
activeRootSpan?.end();
|
|
149
150
|
|
|
150
|
-
Sentry.startBrowserTracingNavigationSpan(client, {
|
|
151
|
+
activeRootSpan = Sentry.startBrowserTracingNavigationSpan(client, {
|
|
151
152
|
name: `route:${toRoute}`,
|
|
152
|
-
op: 'navigation',
|
|
153
153
|
origin: 'auto.navigation.ember',
|
|
154
|
+
attributes: {
|
|
155
|
+
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',
|
|
156
|
+
},
|
|
154
157
|
tags: {
|
|
155
158
|
fromRoute,
|
|
156
159
|
toRoute,
|
|
@@ -158,8 +161,6 @@ export function _instrumentEmberRouter(
|
|
|
158
161
|
},
|
|
159
162
|
});
|
|
160
163
|
|
|
161
|
-
activeRootSpan = getActiveSpan();
|
|
162
|
-
|
|
163
164
|
transitionSpan = startInactiveSpan({
|
|
164
165
|
attributes: {
|
|
165
166
|
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.ember',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/ember",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.101.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.101.0",
|
|
36
|
+
"@sentry/core": "7.101.0",
|
|
37
|
+
"@sentry/types": "7.101.0",
|
|
38
|
+
"@sentry/utils": "7.101.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",
|