@@ -8,7 +8,7 @@ test('Should report an error event for errors thrown in getServerSideProps', asy
8
8
9
9
const transactionEventPromise = waitForTransaction ( 'nextjs-13' , transactionEvent => {
10
10
return (
11
- transactionEvent . transaction === '/error-getServerSideProps' &&
11
+ transactionEvent . transaction === 'GET /error-getServerSideProps' &&
12
12
transactionEvent . contexts ?. trace ?. op === 'http.server'
13
13
) ;
14
14
} ) ;
@@ -60,11 +60,11 @@ test('Should report an error event for errors thrown in getServerSideProps', asy
60
60
data : {
61
61
'http.response.status_code' : 500 ,
62
62
'sentry.op' : 'http.server' ,
63
- 'sentry.origin' : 'auto.function.nextjs ' ,
63
+ 'sentry.origin' : 'auto' ,
64
64
'sentry.source' : 'route' ,
65
65
} ,
66
66
op : 'http.server' ,
67
- origin : 'auto.function.nextjs ' ,
67
+ origin : 'auto' ,
68
68
span_id : expect . any ( String ) ,
69
69
status : 'internal_error' ,
70
70
trace_id : expect . any ( String ) ,
@@ -80,13 +80,13 @@ test('Should report an error event for errors thrown in getServerSideProps', asy
80
80
} ,
81
81
start_timestamp : expect . any ( Number ) ,
82
82
timestamp : expect . any ( Number ) ,
83
- transaction : '/error-getServerSideProps' ,
84
- transaction_info : { source : 'route ' } ,
83
+ transaction : 'GET /error-getServerSideProps' ,
84
+ transaction_info : { source : 'custom ' } ,
85
85
type : 'transaction' ,
86
86
} ) ;
87
87
} ) ;
88
88
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 ( {
90
90
page,
91
91
} ) => {
92
92
const errorEventPromise = waitForError ( 'nextjs-13' , errorEvent => {
@@ -95,7 +95,8 @@ test('Should report an error event for errors thrown in getServerSideProps in pa
95
95
96
96
const transactionEventPromise = waitForTransaction ( 'nextjs-13' , transactionEvent => {
97
97
return (
98
- transactionEvent . transaction === '/customPageExtension' && transactionEvent . contexts ?. trace ?. op === 'http.server'
98
+ transactionEvent . transaction === 'GET /customPageExtension' &&
99
+ transactionEvent . contexts ?. trace ?. op === 'http.server'
99
100
) ;
100
101
} ) ;
101
102
@@ -146,11 +147,11 @@ test('Should report an error event for errors thrown in getServerSideProps in pa
146
147
data : {
147
148
'http.response.status_code' : 500 ,
148
149
'sentry.op' : 'http.server' ,
149
- 'sentry.origin' : 'auto.function.nextjs ' ,
150
+ 'sentry.origin' : 'auto' ,
150
151
'sentry.source' : 'route' ,
151
152
} ,
152
153
op : 'http.server' ,
153
- origin : 'auto.function.nextjs ' ,
154
+ origin : 'auto' ,
154
155
span_id : expect . any ( String ) ,
155
156
status : 'internal_error' ,
156
157
trace_id : expect . any ( String ) ,
@@ -166,8 +167,8 @@ test('Should report an error event for errors thrown in getServerSideProps in pa
166
167
} ,
167
168
start_timestamp : expect . any ( Number ) ,
168
169
timestamp : expect . any ( Number ) ,
169
- transaction : '/customPageExtension' ,
170
- transaction_info : { source : 'route ' } ,
170
+ transaction : 'GET /customPageExtension' ,
171
+ transaction_info : { source : 'custom ' } ,
171
172
type : 'transaction' ,
172
173
} ) ;
173
174
} ) ;
0 commit comments