perf: Reduce spans in highPerf temporarily (#17413)

* perf: Reduce spans in highPerf temporarily

* Just completely removed them
This commit is contained in:
Keith Williams
2024-10-30 16:15:51 +00:00
committed by GitHub
parent dfa4e10c83
commit ced7f282a5
-6
View File
@@ -415,8 +415,6 @@ const _getUserAvailability = async function getUsersWorkingHoursLifeTheUniverseA
})
);
const getWorkingHoursSpan = Sentry.startInactiveSpan({ name: "getWorkingHours" });
if (
!(schedule?.availability || (eventType?.availability.length ? eventType.availability : user.availability))
) {
@@ -431,7 +429,6 @@ const _getUserAvailability = async function getUsersWorkingHoursLifeTheUniverseA
}));
const workingHours = getWorkingHours({ timeZone }, availability);
getWorkingHoursSpan.end();
const dateOverrides: TimeRange[] = [];
// NOTE: getSchedule is currently calling this function for every user in a team event
@@ -530,7 +527,6 @@ const _getUserAvailability = async function getUsersWorkingHoursLifeTheUniverseA
const datesOutOfOffice: IOutOfOfficeData = calculateOutOfOfficeRanges(outOfOfficeDays, availability);
const buildDateRangesSpan = Sentry.startInactiveSpan({ name: "buildDateRanges" });
const { dateRanges, oooExcludedDateRanges } = buildDateRanges({
dateFrom,
dateTo,
@@ -548,8 +544,6 @@ const _getUserAvailability = async function getUsersWorkingHoursLifeTheUniverseA
outOfOffice: datesOutOfOffice,
});
buildDateRangesSpan.end();
const formattedBusyTimes = detailedBusyTimes.map((busy) => ({
start: dayjs(busy.start),
end: dayjs(busy.end),