Skip to content

Commit a32cc8f

Browse files
committed
log active transaction
1 parent 784cf64 commit a32cc8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/nextjs/src/utils/handlers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const withSentry = (handler: NextApiHandler): WrappedNextApiHandler => {
1919

2020
async function newEnd(this: NextApiResponse, ...args: any[]) {
2121
const transaction = getActiveTransaction();
22+
console.log('Active transaction:', transaction?.name);
2223

2324
if (transaction) {
2425
transaction.setHttpStatus(res.statusCode);

0 commit comments

Comments
 (0)