File tree 1 file changed +1
-10
lines changed
dev-packages/e2e-tests/test-applications/create-next-app/pages/api
1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,7 @@ import * as Sentry from '@sentry/nextjs';
3
3
import type { NextApiRequest , NextApiResponse } from 'next' ;
4
4
5
5
export default function handler ( req : NextApiRequest , res : NextApiResponse ) {
6
- // eslint-disable-next-line deprecation/deprecation
7
- const transaction = Sentry . startTransaction ( { name : 'test-transaction' , op : 'e2e-test' } ) ;
8
- // eslint-disable-next-line deprecation/deprecation
9
- Sentry . getCurrentScope ( ) . setSpan ( transaction ) ;
10
-
11
- // eslint-disable-next-line deprecation/deprecation
12
- const span = transaction . startChild ( ) ;
13
-
14
- span . end ( ) ;
15
- transaction . end ( ) ;
6
+ Sentry . startSpan ( { name : 'test-span' } , span => undefined ) ;
16
7
17
8
Sentry . flush ( ) . then ( ( ) => {
18
9
res . status ( 200 ) . json ( {
You can’t perform that action at this time.
0 commit comments