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
5858 const { traceparentData, dynamicSamplingContext } = getTracePropagationData ( event ) ;
5959
6060 const traceLoadContext : TransactionContext = {
61- op : ' function.sveltekit.load' ,
61+ op : ` function.sveltekit${ isServerOnlyLoad ( event ) ? '.server' : '' } .load` ,
6262 name : routeId ? routeId : event . url . pathname ,
6363 status : 'ok' ,
6464 metadata : {
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ describe('wrapLoadWithSentry', () => {
202202 expect ( mockTrace ) . toHaveBeenCalledTimes ( 1 ) ;
203203 expect ( mockTrace ) . toHaveBeenCalledWith (
204204 {
205- op : 'function.sveltekit.load' ,
205+ op : 'function.sveltekit.server. load' ,
206206 name : '/users/[id]' ,
207207 parentSampled : true ,
208208 parentSpanId : '1234567890abcdef' ,
@@ -233,7 +233,7 @@ describe('wrapLoadWithSentry', () => {
233233 expect ( mockTrace ) . toHaveBeenCalledTimes ( 1 ) ;
234234 expect ( mockTrace ) . toHaveBeenCalledWith (
235235 {
236- op : 'function.sveltekit.load' ,
236+ op : 'function.sveltekit.server. load' ,
237237 name : '/users/[id]' ,
238238 status : 'ok' ,
239239 metadata : {
@@ -252,7 +252,7 @@ describe('wrapLoadWithSentry', () => {
252252 expect ( mockTrace ) . toHaveBeenCalledTimes ( 1 ) ;
253253 expect ( mockTrace ) . toHaveBeenCalledWith (
254254 {
255- op : 'function.sveltekit.load' ,
255+ op : 'function.sveltekit.server. load' ,
256256 name : '/users/[id]' ,
257257 parentSampled : true ,
258258 parentSpanId : '1234567890abcdef' ,
You can’t perform that action at this time.
0 commit comments