perf: Reduce spans in highPerf temporarily (#17413)
* perf: Reduce spans in highPerf temporarily * Just completely removed them
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user