@@ -64,6 +64,7 @@ const MOCK_LOAD_NO_ROUTE_ARGS: any = {
6464const MOCK_SERVER_ONLY_LOAD_ARGS : any = {
6565 ...MOCK_LOAD_ARGS ,
6666 request : {
67+ method : 'GET' ,
6768 headers : {
6869 get : ( key : string ) => {
6970 if ( key === 'sentry-trace' ) {
@@ -87,6 +88,7 @@ const MOCK_SERVER_ONLY_LOAD_ARGS: any = {
8788const MOCK_SERVER_ONLY_NO_TRACE_LOAD_ARGS : any = {
8889 ...MOCK_LOAD_ARGS ,
8990 request : {
91+ method : 'GET' ,
9092 headers : {
9193 get : ( _ : string ) => {
9294 return null ;
@@ -98,6 +100,7 @@ const MOCK_SERVER_ONLY_NO_TRACE_LOAD_ARGS: any = {
98100const MOCK_SERVER_ONLY_NO_BAGGAGE_LOAD_ARGS : any = {
99101 ...MOCK_LOAD_ARGS ,
100102 request : {
103+ method : 'GET' ,
101104 headers : {
102105 get : ( key : string ) => {
103106 if ( key === 'sentry-trace' ) {
@@ -268,6 +271,9 @@ describe('wrapServerLoadWithSentry calls trace', () => {
268271 parentSpanId : '1234567890abcdef' ,
269272 status : 'ok' ,
270273 traceId : '1234567890abcdef1234567890abcdef' ,
274+ data : {
275+ 'http.method' : 'GET' ,
276+ } ,
271277 metadata : {
272278 dynamicSamplingContext : {
273279 environment : 'production' ,
@@ -296,6 +302,9 @@ describe('wrapServerLoadWithSentry calls trace', () => {
296302 op : 'function.sveltekit.server.load' ,
297303 name : '/users/[id]' ,
298304 status : 'ok' ,
305+ data : {
306+ 'http.method' : 'GET' ,
307+ } ,
299308 metadata : {
300309 source : 'route' ,
301310 } ,
@@ -318,6 +327,9 @@ describe('wrapServerLoadWithSentry calls trace', () => {
318327 parentSpanId : '1234567890abcdef' ,
319328 status : 'ok' ,
320329 traceId : '1234567890abcdef1234567890abcdef' ,
330+ data : {
331+ 'http.method' : 'GET' ,
332+ } ,
321333 metadata : {
322334 dynamicSamplingContext : { } ,
323335 source : 'route' ,
@@ -343,6 +355,9 @@ describe('wrapServerLoadWithSentry calls trace', () => {
343355 parentSpanId : '1234567890abcdef' ,
344356 status : 'ok' ,
345357 traceId : '1234567890abcdef1234567890abcdef' ,
358+ data : {
359+ 'http.method' : 'GET' ,
360+ } ,
346361 metadata : {
347362 dynamicSamplingContext : {
348363 environment : 'production' ,
0 commit comments