Skip to content

Commit fb1b1ca

Browse files
committed
origins #2
1 parent 21ba0d6 commit fb1b1ca

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

dev-packages/browser-integration-tests/suites/tracing/interactions/spans/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ sentryTest('captures streamed interaction span tree. @firefox', async ({ browser
7979
},
8080
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: {
8181
type: 'string',
82-
value: 'manual', // TODO: This is incorrect but not from span streaming.
82+
value: 'auto.browser.interactions',
8383
},
8484
[SENTRY_SDK_NAME]: {
8585
type: 'string',
@@ -139,7 +139,7 @@ sentryTest('captures streamed interaction span tree. @firefox', async ({ browser
139139
},
140140
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: {
141141
type: 'string',
142-
value: 'auto.ui.browser.metrics',
142+
value: 'auto.browser.interactions',
143143
},
144144
[SENTRY_SDK_NAME]: {
145145
type: 'string',

packages/browser-utils/src/performance/interactions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function registerInteractionListener(
168168
attributes: {
169169
[SENTRY_OP]: BROWSER_UI_ACTION_CLICK_SPAN_OP,
170170
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: latestRoute.source || 'url',
171-
[SENTRY_ORIGIN]: 'auto.ui.browser.interactions',
171+
[SENTRY_ORIGIN]: 'auto.browser.interactions',
172172
},
173173
},
174174
idleSpanOptions,
@@ -197,7 +197,7 @@ function trackInteractionsAsSpans(): void {
197197
startTime: startTime,
198198
attributes: {
199199
[SENTRY_OP]: BROWSER_UI_INTERACTION_CLICK_SPAN_OP,
200-
[SENTRY_ORIGIN]: 'auto.ui.browser.interactions',
200+
[SENTRY_ORIGIN]: 'auto.browser.interactions',
201201
},
202202
};
203203

packages/browser-utils/test/performance/interactions.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ describe('interactionsIntegration', () => {
8686
const spans = getInteractionSpans();
8787
expect(spans).toHaveLength(1);
8888
expect(spanToJSON(spans[0]!).description).toBe('/users/:id');
89+
expect(spanToJSON(spans[0]!).data).toMatchObject({ 'sentry.origin': 'auto.browser.interactions' });
8990
});
9091

9192
it('inherits the source of the route span', () => {
@@ -221,6 +222,6 @@ describe('interactionsIntegration', () => {
221222

222223
const eventSpans = endedSpans.filter(span => spanToJSON(span).op === 'ui.interaction.click');
223224
expect(eventSpans).toHaveLength(1);
224-
expect(spanToJSON(eventSpans[0]!).data).toMatchObject({ 'sentry.origin': 'auto.ui.browser.metrics' });
225+
expect(spanToJSON(eventSpans[0]!).data).toMatchObject({ 'sentry.origin': 'auto.browser.interactions' });
225226
});
226227
});

0 commit comments

Comments
 (0)