File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export function wrapLoadWithSentry<T extends ServerLoad | Load>(origLoad: T): T
58
58
const { traceparentData, dynamicSamplingContext } = getTracePropagationData ( event ) ;
59
59
60
60
const traceLoadContext : TransactionContext = {
61
- op : ' function.sveltekit.load' ,
61
+ op : ` function.sveltekit${ isServerOnlyLoad ( event ) ? '.server' : '' } .load` ,
62
62
name : routeId ? routeId : event . url . pathname ,
63
63
status : 'ok' ,
64
64
metadata : {
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ describe('wrapLoadWithSentry', () => {
202
202
expect ( mockTrace ) . toHaveBeenC
8000
alledTimes ( 1 ) ;
203
203
expect ( mockTrace ) . toHaveBeenCalledWith (
204
204
{
205
- op : 'function.sveltekit.load' ,
205
+ op : 'function.sveltekit.server. load' ,
206
206
name : '/users/[id]' ,
207
207
parentSampled : true ,
208
208
parentSpanId : '1234567890abcdef' ,
@@ -233,7 +233,7 @@ describe('wrapLoadWithSentry', () => {
233
233
expect ( mockTrace ) . toHaveBeenCalledTimes ( 1 ) ;
234
234
expect ( mockTrace ) . toHaveBeenCalledWith (
235
235
{
236
- op : 'function.sveltekit.load' ,
236
+ op : 'function.sveltekit.server. load' ,
237
237
name : '/users/[id]' ,
238
238
status : 'ok' ,
239
239
metadata : {
@@ -252,7 +252,7 @@ describe('wrapLoadWithSentry', () => {
252
252
expect ( mockTrace ) . toHaveBeenCalledTimes ( 1 ) ;
253
253
expect ( mockTrace ) . toHaveBeenCalledWith (
254
254
{
255
- op : 'function.sveltekit.load' ,
255
+ op : 'function.sveltekit.server. load' ,
256
256
name : '/users/[id]' ,
257
257
parentSampled : true ,
258
258
parentSpanId : '1234567890abcdef' ,
You can’t perform that action at this time.
0 commit comments