Skip to content

Commit e1c4367

Browse files
authored
ref(remix): Adjust event mechanism of captureRemixServerException (#17629)
Mechanism type now follows the trace origin naming scheme ref: #17212
1 parent 7c41f03 commit e1c4367

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

packages/remix/src/server/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export async function captureRemixServerException(err: unknown, name: string, re
6565

6666
scope.addEventProcessor(event => {
6767
addExceptionMechanism(event, {
68-
type: 'instrument',
68+
type: 'auto.function.remix.server',
6969
handled: false,
7070
data: {
7171
function: name,

packages/remix/test/integration/test/server/instrumentation/action.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe('Remix API Actions', () => {
9090
function: 'remix.server.handleError',
9191
},
9292
handled: false,
93-
type: 'instrument',
93+
type: 'auto.function.remix.server',
9494
},
9595
},
9696
],
@@ -185,7 +185,7 @@ describe('Remix API Actions', () => {
185185
function: 'remix.server.handleError',
186186
},
187187
handled: false,
188-
type: 'instrument',
188+
type: 'auto.function.remix.server',
189189
},
190190
},
191191
],
@@ -232,7 +232,7 @@ describe('Remix API Actions', () => {
232232
function: 'action',
233233
},
234234
handled: false,
235-
type: 'instrument',
235+
type: 'auto.function.remix.server',
236236
},
237237
},
238238
],
@@ -279,7 +279,7 @@ describe('Remix API Actions', () => {
279279
function: 'action',
280280
},
281281
handled: false,
282-
type: 'instrument',
282+
type: 'auto.function.remix.server',
283283
},
284284
},
285285
],
@@ -326,7 +326,7 @@ describe('Remix API Actions', () => {
326326
function: 'action',
327327
},
328328
handled: false,
329-
type: 'instrument',
329+
type: 'auto.function.remix.server',
330330
},
331331
},
332332
],
@@ -373,7 +373,7 @@ describe('Remix API Actions', () => {
373373
function: 'action',
374374
},
375375
handled: false,
376-
type: 'instrument',
376+
type: 'auto.function.remix.server',
377377
},
378378
},
379379
],
@@ -420,7 +420,7 @@ describe('Remix API Actions', () => {
420420
function: 'remix.server.handleError',
421421
},
422422
handled: false,
423-
type: 'instrument',
423+
type: 'auto.function.remix.server',
424424
},
425425
},
426426
],
@@ -467,7 +467,7 @@ describe('Remix API Actions', () => {
467467
function: 'remix.server.handleError',
468468
},
469469
handled: false,
470-
type: 'instrument',
470+
type: 'auto.function.remix.server',
471471
},
472472
},
473473
],

packages/remix/test/integration/test/server/instrumentation/loader.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('Remix API Loaders', () => {
3535
function: 'remix.server.handleError',
3636
},
3737
handled: false,
38-
type: 'instrument',
38+
type: 'auto.function.remix.server',
3939
},
4040
},
4141
],
@@ -77,7 +77,7 @@ describe('Remix API Loaders', () => {
7777
function: 'loader',
7878
},
7979
handled: false,
80-
type: 'instrument',
80+
type: 'auto.function.remix.server',
8181
},
8282
},
8383
],
@@ -155,7 +155,7 @@ describe('Remix API Loaders', () => {
155155
function: 'remix.server.handleError',
156156
},
157157
handled: false,
158-
type: 'instrument',
158+
type: 'auto.function.remix.server',
159159
},
160160
},
161161
],

packages/remix/test/integration/test/server/instrumentation/ssr.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('Server Side Rendering', () => {
3636
function: 'remix.server.handleError',
3737
},
3838
handled: false,
39-
type: 'instrument',
39+
type: 'auto.function.remix.server',
4040
},
4141
},
4242
],

0 commit comments

Comments
 (0)