Skip to content

Commit 53187d1

Browse files
Lms24mydea
authored andcommitted
update react origins
1 parent 4d7c0e0 commit 53187d1

File tree

8 files changed

+52
-52
lines changed

8 files changed

+52
-52
lines changed

packages/react/src/reactrouter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function createReactRouterInstrumentation(
9393
activeTransaction = customStartTransaction({
9494
name,
9595
op: 'pageload',
96-
origin: 'auto.http.react.reactrouter',
96+
origin: 'auto.pageload.react.reactrouter',
9797
tags,
9898
metadata: {
9999
source,
@@ -112,7 +112,7 @@ function createReactRouterInstrumentation(
112112
activeTransaction = customStartTransaction({
113113
name,
114114
op: 'navigation',
115-
origin: 'auto.http.react.reactrouter',
115+
origin: 'auto.navigation.react.reactrouter',
116116
tags,
117117
metadata: {
118118
source,

packages/react/src/reactrouterv3.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function reactRouterV3Instrumentation(
5353
activeTransaction = startTransaction({
5454
name: prevName,
5555
op: 'pageload',
56-
origin: 'auto.http.react.reactrouterv3',
56+
origin: 'auto.pageload.react.reactrouterv3',
5757
tags: {
5858
'routing.instrumentation': 'react-router-v3',
5959
},
@@ -82,7 +82,7 @@ export function reactRouterV3Instrumentation(
8282
activeTransaction = startTransaction({
8383
name: prevName,
8484
op: 'navigation',
85-
origin: 'auto.http.react.reactrouterv3',
85+
origin: 'auto.navigation.react.reactrouterv3',
8686
tags,
8787
metadata: {
8888
source,

packages/react/src/reactrouterv6.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function reactRouterV6Instrumentation(
5555
activeTransaction = customStartTransaction({
5656
name: initPathName,
5757
op: 'pageload',
58-
origin: 'auto.http.react.reactrouterv6',
58+
origin: 'auto.pageload.react.reactrouterv6',
5959
tags: SENTRY_TAGS,
6060
metadata: {
6161
source: 'url',
@@ -153,7 +153,7 @@ function handleNavigation(
153153
activeTransaction = _customStartTransaction({
154154
name,
155155
op: 'navigation',
156-
origin: 'auto.http.react.reactrouterv6',
156+
origin: 'auto.navigation.react.reactrouterv6',
157157
tags: SENTRY_TAGS,
158158
metadata: {
159159
source,

packages/react/test/reactrouterv3.test.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('React Router V3', () => {
5252
expect(mockStartTransaction).toHaveBeenLastCalledWith({
5353
name: '/',
5454
op: 'pageload',
55-
origin: 'auto.http.react.reactrouterv3',
55+
origin: 'auto.pageload.react.reactrouterv3',
5656
tags: { 'routing.instrumentation': 'react-router-v3' },
5757
metadata: {
5858
source: 'route',
@@ -78,7 +78,7 @@ describe('React Router V3', () => {
7878
expect(mockStartTransaction).toHaveBeenLastCalledWith({
7979
name: '/about',
8080
op: 'navigation',
81-
origin: 'auto.http.react.reactrouterv3',
81+
origin: 'auto.navigation.react.reactrouterv3',
8282
tags: { from: '/', 'routing.instrumentation': 'react-router-v3' },
8383
metadata: {
8484
source: 'route',
@@ -92,7 +92,7 @@ describe('React Router V3', () => {
9292
expect(mockStartTransaction).toHaveBeenLastCalledWith({
9393
name: '/features',
9494
op: 'navigation',
95-
origin: 'auto.http.react.reactrouterv3',
95+
origin: 'auto.navigation.react.reactrouterv3',
9696
tags: { from: '/about', 'routing.instrumentation': 'react-router-v3' },
9797
metadata: {
9898
source: 'route',
@@ -146,7 +146,7 @@ describe('React Router V3', () => {
146146
expect(mockStartTransaction).toHaveBeenLastCalledWith({
147147
name: '/users/:userid',
148148
op: 'navigation',
149-
origin: 'auto.http.react.reactrouterv3',
149+
origin: 'auto.navigation.react.reactrouterv3',
150150
tags: { from: '/', 'routing.instrumentation': 'react-router-v3' },
151151
metadata: {
152152
source: 'route',
@@ -168,7 +168,7 @@ describe('React Router V3', () => {
168168
expect(mockStartTransaction).toHaveBeenLastCalledWith({
169169
name: '/organizations/:orgid/v1/:teamid',
170170
op: 'navigation',
171-
origin: 'auto.http.react.reactrouterv3',
171+
origin: 'auto.navigation.react.reactrouterv3',
172172
tags: { from: '/', 'routing.instrumentation': 'react-router-v3' },
173173
metadata: {
174174
source: 'route',
@@ -184,7 +184,7 @@ describe('React Router V3', () => {
184184
expect(mockStartTransaction).toHaveBeenLastCalledWith({
185185
name: '/organizations/:orgid',
186186
op: 'navigation',
187-
origin: 'auto.http.react.reactrouterv3',
187+
origin: 'auto.navigation.react.reactrouterv3',
188188
tags: { from: '/organizations/:orgid/v1/:teamid', 'routing.instrumentation': 'react-router-v3' },
189189
metadata: {
190190
source: 'route',
@@ -205,7 +205,7 @@ describe('React Router V3', () => {
205205
expect(mockStartTransaction).toHaveBeenLastCalledWith({
206206
name: '/organizations/1234/some/other/route',
207207
op: 'navigation',
208-
origin: 'auto.http.react.reactrouterv3',
208+
origin: 'auto.navigation.react.reactrouterv3',
209209
tags: { from: '/', 'routing.instrumentation': 'react-router-v3' },
210210
metadata: {
211211
source: 'url',
@@ -226,7 +226,7 @@ describe('React Router V3', () => {
226226
expect(mockStartTransaction).toHaveBeenLastCalledWith({
227227
name: '/',
228228
op: 'pageload',
229-
origin: 'auto.http.react.reactrouterv3',
229+
origin: 'auto.pageload.react.reactrouterv3',
230230
tags: { 'routing.instrumentation': 'react-router-v3' },
231231
metadata: {
232232
source: 'url',

packages/react/test/reactrouterv4.test.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('React Router v4', () => {
3737
expect(mockStartTransaction).toHaveBeenLastCalledWith({
3838
name: '/',
3939
op: 'pageload',
40-
origin: 'auto.http.react.reactrouter',
40+
origin: 'auto.pageload.react.reactrouter',
4141
tags: { 'routing.instrumentation': 'react-router-v4' },
4242
metadata: { source: 'url' },
4343
});
@@ -67,7 +67,7 @@ describe('React Router v4', () => {
6767
expect(mockStartTransaction).toHaveBeenLastCalledWith({
6868
name: '/about',
6969
op: 'navigation',
70-
origin: 'auto.http.react.reactrouter',
70+
origin: 'auto.navigation.react.reactrouter',
7171
tags: { 'routing.instrumentation': 'react-router-v4' },
7272
metadata: { source: 'url' },
7373
});
@@ -79,7 +79,7 @@ describe('React Router v4', () => {
7979
expect(mockStartTransaction).toHaveBeenLastCalledWith({
8080
name: '/features',
8181
op: 'navigation',
82-
origin: 'auto.http.react.reactrouter',
82+
origin: 'auto.navigation.react.reactrouter',
8383
tags: { 'routing.instrumentation': 'react-router-v4' },
8484
metadata: { source: 'url' },
8585
});
@@ -158,7 +158,7 @@ describe('React Router v4', () => {
158158
expect(mockStartTransaction).toHaveBeenLastCalledWith({
159159
name: '/users/123',
160160
op: 'navigation',
161-
origin: 'auto.http.react.reactrouter',
161+
origin: 'auto.navigation.react.reactrouter',
162162
tags: { 'routing.instrumentation': 'react-router-v4' },
163163
metadata: { source: 'url' },
164164
});
@@ -186,7 +186,7 @@ describe('React Router v4', () => {
186186
expect(mockStartTransaction).toHaveBeenLastCalledWith({
187187
name: '/users/123',
188188
op: 'navigation',
189-
origin: 'auto.http.react.reactrouter',
189+
origin: 'auto.navigation.react.reactrouter',
190190
tags: { 'routing.instrumentation': 'react-router-v4' },
191191
metadata: { source: 'url' },
192192
});
@@ -216,7 +216,7 @@ describe('React Router v4', () => {
216216
expect(mockStartTransaction).toHaveBeenLastCalledWith({
217217
name: '/organizations/1234/v1/758',
218218
op: 'navigation',
219-
origin: 'auto.http.react.reactrouter',
219+
origin: 'auto.navigation.react.reactrouter',
220220
tags: { 'routing.instrumentation': 'react-router-v4' },
221221
metadata: { source: 'url' },
222222
});
@@ -232,7 +232,7 @@ describe('React Router v4', () => {
232232
expect(mockStartTransaction).toHaveBeenLastCalledWith({
233233
name: '/organizations/543',
234234
op: 'navigation',
235-
origin: 'auto.http.react.reactrouter',
235+
origin: 'auto.navigation.react.reactrouter',
236236
tags: { 'routing.instrumentation': 'react-router-v4' },
237237
metadata: { source: 'url' },
238238
});
@@ -266,7 +266,7 @@ describe('React Router v4', () => {
266266
expect(mockStartTransaction).toHaveBeenLastCalledWith({
267267
name: '/organizations/:orgid/v1/:teamid',
268268
op: 'navigation',
269-
origin: 'auto.http.react.reactrouter',
269+
origin: 'auto.navigation.react.reactrouter',
270270
tags: { 'routing.instrumentation': 'react-router-v4' },
271271
metadata: { source: 'route' },
272272
});
@@ -278,7 +278,7 @@ describe('React Router v4', () => {
278278
expect(mockStartTransaction).toHaveBeenLastCalledWith({
279279
name: '/organizations/:orgid',
280280
op: 'navigation',
281-
origin: 'auto.http.react.reactrouter',
281+
origin: 'auto.navigation.react.reactrouter',
282282
tags: { 'routing.instrumentation': 'react-router-v4' },
283283
metadata: { source: 'route' },
284284
});

packages/react/test/reactrouterv5.test.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('React Router v5', () => {
3737
expect(mockStartTransaction).toHaveBeenLastCalledWith({
3838
name: '/',
3939
op: 'pageload',
40-
origin: 'auto.http.react.reactrouter',
40+
origin: 'auto.pageload.react.reactrouter',
4141
tags: { 'routing.instrumentation': 'react-router-v5' },
4242
metadata: { source: 'url' },
4343
});
@@ -67,7 +67,7 @@ describe('React Router v5', () => {
6767
expect(mockStartTransaction).toHaveBeenLastCalledWith({
6868
name: '/about',
6969
op: 'navigation',
70-
origin: 'auto.http.react.reactrouter',
70+
origin: 'auto.navigation.react.reactrouter',
7171
tags: { 'routing.instrumentation': 'react-router-v5' },
7272
metadata: { source: 'url' },
7373
});
@@ -79,7 +79,7 @@ describe('React Router v5', () => {
7979
expect(mockStartTransaction).toHaveBeenLastCalledWith({
8080
name: '/features',
8181
op: 'navigation',
82-
origin: 'auto.http.react.reactrouter',
82+
origin: 'auto.navigation.react.reactrouter',
8383
tags: { 'routing.instrumentation': 'react-router-v5' },
8484
metadata: { source: 'url' },
8585
});
@@ -158,7 +158,7 @@ describe('React Router v5', () => {
158158
expect(mockStartTransaction).toHaveBeenLastCalledWith({
159159
name: '/users/123',
160160
op: 'navigation',
161-
origin: 'auto.http.react.reactrouter',
161+
origin: 'auto.navigation.react.reactrouter',
162162
tags: { 'routing.instrumentation': 'react-router-v5' },
163163
metadata: { source: 'url' },
164164
});
@@ -186,7 +186,7 @@ describe('React Router v5', () => {
186186
expect(mockStartTransaction).toHaveBeenLastCalledWith({
187187
name: '/users/123',
188188
op: 'navigation',
189-
origin: 'auto.http.react.reactrouter',
189+
origin: 'auto.navigation.react.reactrouter',
190190
tags: { 'routing.instrumentation': 'react-router-v5' },
191191
metadata: { source: 'url' },
192192
});
@@ -217,7 +217,7 @@ describe('React Router v5', () => {
217217
expect(mockStartTransaction).toHaveBeenLastCalledWith({
218218
name: '/organizations/1234/v1/758',
219219
op: 'navigation',
220-
origin: 'auto.http.react.reactrouter',
220+
origin: 'auto.navigation.react.reactrouter',
221221
tags: { 'routing.instrumentation': 'react-router-v5' },
222222
metadata: { source: 'url' },
223223
});
@@ -233,7 +233,7 @@ describe('React Router v5', () => {
233233
expect(mockStartTransaction).toHaveBeenLastCalledWith({
234234
name: '/organizations/543',
235235
op: 'navigation',
236-
origin: 'auto.http.react.reactrouter',
236+
origin: 'auto.navigation.react.reactrouter',
237237
tags: { 'routing.instrumentation': 'react-router-v5' },
238238
metadata: { source: 'url' },
239239
});
@@ -267,7 +267,7 @@ describe('React Router v5', () => {
267267
expect(mockStartTransaction).toHaveBeenLastCalledWith({
268268
name: '/organizations/:orgid/v1/:teamid',
269269
op: 'navigation',
270-
origin: 'auto.http.react.reactrouter',
270+
origin: 'auto.navigation.react.reactrouter',
271271
tags: { 'routing.instrumentation': 'react-router-v5' },
272272
metadata: { source: 'route' },
273273
});
@@ -279,7 +279,7 @@ describe('React Router v5', () => {
279279
expect(mockStartTransaction).toHaveBeenLastCalledWith({
280280
name: '/organizations/:orgid',
281281
op: 'navigation',
282-
origin: 'auto.http.react.reactrouter',
282+
origin: 'auto.navigation.react.reactrouter',
283283
tags: { 'routing.instrumentation': 'react-router-v5' },
284284
metadata: { source: 'route' },
285285
});

packages/react/test/reactrouterv6.4.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe('React Router v6.4', () => {
7070
expect(mockStartTransaction).toHaveBeenCalledWith({
7171
name: '/',
7272
op: 'pageload',
73-
origin: 'auto.http.react.reactrouterv6',
73+
origin: 'auto.pageload.react.reactrouterv6',
7474
tags: {
7575
'routing.instrumentation': 'react-router-v6',
7676
},
@@ -107,7 +107,7 @@ describe('React Router v6.4', () => {
107107
expect(mockStartTransaction).toHaveBeenLastCalledWith({
108108
name: '/about',
109109
op: 'navigation',
110-
origin: 'auto.http.react.reactrouterv6',
110+
origin: 'auto.navigation.react.reactrouterv6',
111111
tags: { 'routing.instrumentation': 'react-router-v6' },
112112
metadata: { source: 'route' },
113113
});
@@ -146,7 +146,7 @@ describe('React Router v6.4', () => {
146146
expect(mockStartTransaction).toHaveBeenLastCalledWith({
147147
name: '/about/us',
148148
op: 'navigation',
149-
origin: 'auto.http.react.reactrouterv6',
149+
origin: 'auto.navigation.react.reactrouterv6',
150150
tags: { 'routing.instrumentation': 'react-router-v6' },
151151
metadata: { source: 'route' },
152152
});
@@ -185,7 +185,7 @@ describe('React Router v6.4', () => {
185185
expect(mockStartTransaction).toHaveBeenLastCalledWith({
186186
name: '/about/:page',
187187
op: 'navigation',
188-
origin: 'auto.http.react.reactrouterv6',
188+
origin: 'auto.navigation.react.reactrouterv6',
189189
tags: { 'routing.instrumentation': 'react-router-v6' },
190190
metadata: { source: 'route' },
191191
});
@@ -236,7 +236,7 @@ describe('React Router v6.4', () => {
236236
expect(mockStartTransaction).toHaveBeenLastCalledWith({
237237
name: '/stores/:storeId/products/:productId',
238238
op: 'navigation',
239-
origin: 'auto.http.react.reactrouterv6',
239+
origin: 'auto.navigation.react.reactrouterv6',
240240
tags: { 'routing.instrumentation': 'react-router-v6' },
241241
metadata: { source: 'route' },
242242
});
@@ -305,7 +305,7 @@ describe('React Router v6.4', () => {
305305
expect(mockStartTransaction).toHaveBeenLastCalledWith({
306306
name: '/app/about/us',
307307
op: 'navigation',
308-
origin: 'auto.http.react.reactrouterv6',
308+
origin: 'auto.navigation.react.reactrouterv6',
309309
tags: { 'routing.instrumentation': 'react-router-v6' },
310310
metadata: { source: 'url' },
311311
});

0 commit comments

Comments
 (0)