Skip to content

Commit 27bbf95

Browse files
Lms24mydea
authored andcommitted
update tracing-internal origins
1 parent 53187d1 commit 27bbf95

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/tracing-internal/src/browser/metrics/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ function _addPerformanceNavigationTiming(
358358
}
359359
_startChild(transaction, {
360360
op: 'browser',
361-
origin: 'auto.resource.browser.metrics',
361+
origin: 'auto.browser.browser.metrics',
362362
description: description || event,
363363
startTimestamp: timeOrigin + msToSec(start),
364364
endTimestamp: timeOrigin + msToSec(end),
@@ -370,15 +370,15 @@ function _addPerformanceNavigationTiming(
370370
function _addRequest(transaction: Transaction, entry: Record<string, any>, timeOrigin: number): void {
371371
_startChild(transaction, {
372372
op: 'browser',
373-
origin: 'auto.resource.browser.metrics',
373+
origin: 'auto.browser.browser.metrics',
374374
description: 'request',
375375
startTimestamp: timeOrigin + msToSec(entry.requestStart as number),
376376
endTimestamp: timeOrigin + msToSec(entry.responseEnd as number),
377377
});
378378

379379
_startChild(transaction, {
380380
op: 'browser',
381-
origin: 'auto.resource.browser.metrics',
381+
origin: 'auto.browser.browser.metrics',
382382
description: 'response',
383383
startTimestamp: timeOrigin + msToSec(entry.responseStart as number),
384384
endTimestamp: timeOrigin + msToSec(entry.responseEnd as number),

packages/tracing-internal/src/browser/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function instrumentRoutingWithDefaults<T extends Transaction>(
2525
// pageload should always start at timeOrigin (and needs to be in s, not ms)
2626
startTimestamp: browserPerformanceTimeOrigin ? browserPerformanceTimeOrigin / 1000 : undefined,
2727
op: 'pageload',
28-
origin: 'auto.http.browser',
28+
origin: 'auto.pageload.browser',
2929
metadata: { source: 'url' },
3030
});
3131
}
@@ -56,7 +56,7 @@ export function instrumentRoutingWithDefaults<T extends Transaction>(
5656
activeTransaction = customStartTransaction({
5757
name: WINDOW.location.pathname,
5858
op: 'navigation',
59-
origin: 'auto.http.browser',
59+
origin: 'auto.navigation.browser',
6060
metadata: { source: 'url' },
6161
});
6262
}

packages/tracing-internal/test/browser/router.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ conditionalTest({ min: 16 })('instrumentRoutingWithDefaults', () => {
4646
expect(customStartTransaction).toHaveBeenLastCalledWith({
4747
name: 'blank',
4848
op: 'pageload',
49-
origin: 'auto.http.browser',
49+
origin: 'auto.pageload.browser',
5050
metadata: { source: 'url' },
5151
startTimestamp: expect.any(Number),
5252
});
@@ -68,7 +68,7 @@ conditionalTest({ min: 16 })('instrumentRoutingWithDefaults', () => {
6868
expect(customStartTransaction).not.toHaveBeenLastCalledWith({
6969
name: 'blank',
7070
op: 'navigation',
71-
origin: 'auto.http.browser',
71+
origin: 'auto.navigation.browser',
7272
metadata: { source: 'url' },
7373
});
7474
});
@@ -82,7 +82,7 @@ conditionalTest({ min: 16 })('instrumentRoutingWithDefaults', () => {
8282
expect(customStartTransaction).toHaveBeenLastCalledWith({
8383
name: 'blank',
8484
op: 'navigation',
85-
origin: 'auto.http.browser',
85+
origin: 'auto.navigation.browser',
8686
metadata: { source: 'url' },
8787
});
8888
});

0 commit comments

Comments
 (0)