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:
Keith Williams authored and GitHub committed 2024-12-17 08:51:00 +01:00
1 parent 80815bd8a5
commit 14acf4e9bc
2 files changed
+25 -14

No files matched your search

+2 -1
View File
@@ -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"));