Skip to content

Commit f514930

Browse files
committed
test=
1 parent 63647f1 commit f514930

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

dev-packages/e2e-tests/test-applications/create-next-app/pages/api/success.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,7 @@ import * as Sentry from '@sentry/nextjs';
33
import type { NextApiRequest, NextApiResponse } from 'next';
44

55
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);
167

178
Sentry.flush().then(() => {
189
res.status(200).json({

0 commit comments

Comments
 (0)