diff --git a/studio/components/interfaces/Settings/Logs/Logs.utils.ts b/studio/components/interfaces/Settings/Logs/Logs.utils.ts index f9ca314548b..006f78c3ff9 100644 --- a/studio/components/interfaces/Settings/Logs/Logs.utils.ts +++ b/studio/components/interfaces/Settings/Logs/Logs.utils.ts @@ -394,6 +394,12 @@ export const fillTimeseries = ( }) const diff = maxDate.diff(minDate, truncation as dayjs.UnitType) + // Intentional throwing of error here to be caught by Sentry, as this would indicate a bug since charts shouldn't be rendering more than 10k data points + if (diff > 10000) { + throw new Error( + 'Data error, filling timeseries dynamically with more than 10k data points degrades performance.' + ) + } for (let i = 0; i <= diff; i++) { const dateToMaybeAdd = minDate.add(i, truncation as dayjs.ManipulateType)