chore: New booking perf tracing (#18212)
* chore: Add perf tracing for handleNewBooking * Added a few more to the event manager * Added the sentry wrapper that enables perf tracing * Revert "Added a few more to the event manager" This reverts commit ccf3ee5200466b8b1d51f5663363fbb9dfd9a06f. * Fixed where we wrap sentry * Reverse sentry wrapper
This commit is contained in:
1 parent
80815bd8a5
commit
14acf4e9bc
2 files changed
+25
-14
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { wrapApiHandlerWithSentry } from "@sentry/nextjs";
|
||||
import type { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
import { getServerSession } from "@calcom/features/auth/lib/getServerSession";
|
||||
@@ -21,4 +22,4 @@ async function handler(req: NextApiRequest & { userId?: number }, res: NextApiRe
|
||||
return booking;
|
||||
}
|
||||
|
||||
export default defaultResponder(handler);
|
||||
export default defaultResponder(wrapApiHandlerWithSentry(handler, "/api/book/event"));
|
||||
Reference in new issue
Block a user