📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
added some console stuff
Blue Mouse97d4a7f00ad8
diff --git a/src/analytics/analytics.controller.ts b/src/analytics/analytics.controller.tsindex ca86acdc9..7862afe68 100644--- a/src/analytics/analytics.controller.ts+++ b/src/analytics/analytics.controller.ts@@ -831,6 +831,30 @@ export class AnalyticsController {)}+ // this is a temp measure to track a mindblowing bug that causing perf data like 4294966341 be written into the DB.+ if (!_isEmpty(logDTO.perf) && !isPerformanceValid(logDTO.perf)) {+ const {+ dns, tls, conn, response, render, dom_load, page_load, ttfb,+ } = logDTO.perf+ console.error('[ERROR] Something is wrong with the performance data:', logDTO.perf)+ console.error('Performance DTO:', performanceDTO(+ 'test',+ 'test',+ 'test',+ 'test',+ 'test',+ dns,+ tls,+ conn,+ response,+ render,+ dom_load,+ page_load,+ ttfb,+ ))+ console.error('Postprocessed performance DTO:', `(${perfDTO.map(getElValue).join(',')})`)+ }+if (!_isEmpty(logDTO.perf) && isPerformanceValid(logDTO.perf)) {if (!ua) {ua = UAParser(userAgent)