refactor: Uses withReporting to force named functions for tracing (#21219)
This commit is contained in:
1 parent
79d695236f
commit
b3d3cb1dee
35 files changed
+853
-393
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { withReporting } from "@calcom/lib/sentryWrapper";
|
||||
import defaultPrisma from "@calcom/prisma";
|
||||
import type { PrismaClient } from "@calcom/prisma";
|
||||
import type { WebhookTriggerEvents } from "@calcom/prisma/enums";
|
||||
@@ -80,4 +81,4 @@ const getWebhooks = async (options: GetSubscriberOptions, prisma: PrismaClient =
|
||||
return allWebhooks;
|
||||
};
|
||||
|
||||
export default getWebhooks;
|
||||
export default withReporting(getWebhooks, "getWebhooks");
|
||||
@@ -6,6 +6,7 @@ import { getCalEventResponses } from "@calcom/features/bookings/lib/getCalEventR
|
||||
import { getHumanReadableLocationValue } from "@calcom/lib/location";
|
||||
import logger from "@calcom/lib/logger";
|
||||
import { safeStringify } from "@calcom/lib/safeStringify";
|
||||
import { withReporting } from "@calcom/lib/sentryWrapper";
|
||||
import { getTranslation } from "@calcom/lib/server/i18n";
|
||||
import prisma from "@calcom/prisma";
|
||||
import type { ApiKey } from "@calcom/prisma/client";
|
||||
@@ -304,7 +305,7 @@ export async function scheduleTrigger({
|
||||
}
|
||||
}
|
||||
|
||||
export async function deleteWebhookScheduledTriggers({
|
||||
async function _deleteWebhookScheduledTriggers({
|
||||
booking,
|
||||
appId,
|
||||
triggerEvent,
|
||||
@@ -361,6 +362,11 @@ export async function deleteWebhookScheduledTriggers({
|
||||
}
|
||||
}
|
||||
|
||||
export const deleteWebhookScheduledTriggers = withReporting(
|
||||
_deleteWebhookScheduledTriggers,
|
||||
"deleteWebhookScheduledTriggers"
|
||||
);
|
||||
|
||||
export async function updateTriggerForExistingBookings(
|
||||
webhook: Webhook,
|
||||
existingEventTriggers: WebhookTriggerEvents[],
|
||||
|
||||
Reference in new issue
Block a user