perf: Sentry perf tracing (#17202)

* chore: Add Sentry perf tracing

* Just to build

* perf: Add Sentry perf tracing

* Removed the extra integrations tracing config

* Got spans working

* Now only tracing individual endpoints

* Removed check for booking event type

* Fixed types

* Added back for spans

* Consolidate sentry imports

* Added more traces

* Moved the start of the span
This commit is contained in:
Keith Williams authored and GitHub committed 2024-10-30 00:35:25 +00:00
1 parent 5a9197f357
commit 4b6b9badf5
12 files changed
+311 -274

No files matched your search

+2 -4
View File
@@ -6,9 +6,7 @@
"logo": "icon.svg",
"url": "https://meetings.dialpad.com/",
"variant": "conferencing",
"categories": [
"conferencing"
],
"categories": ["conferencing"],
"publisher": "Cal.com",
"email": "[email protected]",
"appData": {
@@ -24,4 +22,4 @@
"isTemplate": false,
"__createdUsingCli": true,
"__template": "event-type-location-video-static"
}
}
@@ -64,10 +64,10 @@ async function getResponseWithFormFieldsHandler({ ctx, input }: GetResponseWithF
});
if (!formResponse) {
throw new TRPCError({
code: "NOT_FOUND",
message: translate("form_response_not_found"),
});
throw new TRPCError({
code: "NOT_FOUND",
message: translate("form_response_not_found"),
});
}
const form = formResponse.form;
@@ -138,9 +138,12 @@ export const responseHandler = async ({ ctx, input }: ResponseHandlerOptions) =>
safeStringify({ teamMembersMatchingAttributeLogicWithResult })
);
const teamMemberIdsMatchingAttributeLogic = teamMembersMatchingAttributeLogicWithResult?.teamMembersMatchingAttributeLogic
? teamMembersMatchingAttributeLogicWithResult.teamMembersMatchingAttributeLogic.map((member) => member.userId)
: null;
const teamMemberIdsMatchingAttributeLogic =
teamMembersMatchingAttributeLogicWithResult?.teamMembersMatchingAttributeLogic
? teamMembersMatchingAttributeLogicWithResult.teamMembersMatchingAttributeLogic.map(
(member) => member.userId
)
: null;
const chosenRoute = serializableFormWithFields.routes?.find((route) => route.id === chosenRouteId);
if (!chosenRoute) {