@@ -8,7 +8,7 @@ test('Should report an error event for errors thrown in getServerSideProps', asy
88
99 const transactionEventPromise = waitForTransaction ( 'nextjs-13' , transactionEvent => {
1010 return (
11- transactionEvent . transaction === '/error-getServerSideProps' &&
11+ transactionEvent . transaction === 'GET /error-getServerSideProps' &&
1212 transactionEvent . contexts ?. trace ?. op === 'http.server'
1313 ) ;
1414 } ) ;
@@ -60,11 +60,11 @@ test('Should report an error event for errors thrown in getServerSideProps', asy
6060 data : {
6161 'http.response.status_code' : 500 ,
6262 'sentry.op' : 'http.server' ,
63- 'sentry.origin' : 'auto.function.nextjs ' ,
63+ 'sentry.origin' : 'auto' ,
6464 'sentry.source' : 'route' ,
6565 } ,
6666 op : 'http.server' ,
67- origin : 'auto.function.nextjs ' ,
67+ origin : 'auto' ,
6868 span_id : expect . any ( String ) ,
6969 status : 'internal_error' ,
7070 trace_id : expect . any ( String ) ,
@@ -80,13 +80,13 @@ test('Should report an error event for errors thrown in getServerSideProps', asy
8080 } ,
8181 start_timestamp : expect . any ( Number ) ,
8282 timestamp : expect . any ( Number ) ,
83- transaction : '/error-getServerSideProps' ,
84- transaction_info : { source : 'route ' } ,
83+ transaction : 'GET /error-getServerSideProps' ,
84+ transaction_info : { source : 'custom ' } ,
8585 type : 'transaction' ,
8686 } ) ;
8787} ) ;
8888
89- test ( 'Should report an error event for errors thrown in getServerSideProps in pages with custom page extensions' , async ( {
89+ test . only ( 'Should report an error event for errors thrown in getServerSideProps in pages with custom page extensions' , async ( {
9090 page,
9191} ) => {
9292 const errorEventPromise = waitForError ( 'nextjs-13' , errorEvent => {
@@ -95,7 +95,8 @@ test('Should report an error event for errors thrown in getServerSideProps in pa
9595
9696 const transactionEventPromise = waitForTransaction ( 'nextjs-13' , transactionEvent => {
9797 return (
98- transactionEvent . transaction === '/customPageExtension' && transactionEvent . contexts ?. trace ?. op === 'http.server'
98+ transactionEvent . transaction === 'GET /customPageExtension' &&
99+ transactionEvent . contexts ?. trace ?. op === 'http.server'
99100 ) ;
100101 } ) ;
101102
@@ -146,11 +147,11 @@ test('Should report an error event for errors thrown in getServerSideProps in pa
146147 data : {
147148 'http.response.status_code' : 500 ,
148149 'sentry.op' : 'http.server' ,
149- 'sentry.origin' : 'auto.function.nextjs ' ,
150+ 'sentry.origin' : 'auto' ,
150151 'sentry.source' : 'route' ,
151152 } ,
152153 op : 'http.server' ,
153- origin : 'auto.function.nextjs ' ,
154+ origin : 'auto' ,
154155 span_id : expect . any ( String ) ,
155156 status : 'internal_error' ,
156157 trace_id : expect . any ( String ) ,
@@ -166,8 +167,8 @@ test('Should report an error event for errors thrown in getServerSideProps in pa
166167 } ,
167168 start_timestamp : expect . any ( Number ) ,
168169 timestamp : expect . any ( Number ) ,
169- transaction : '/customPageExtension' ,
170- transaction_info : { source : 'route ' } ,
170+ transaction : 'GET /customPageExtension' ,
171+ transaction_info : { source : 'custom ' } ,
171172 type : 'transaction' ,
172173 } ) ;
173174} ) ;
0 commit comments