WayrApp Backend & Ecosystem Documentation - v1.0.0
    Preparing search index...

    Variable performanceMonitorConst

    performanceMonitor: PerformanceMonitor = ...

    Singleton performance monitor instance for application-wide request tracking.

    Pre-configured PerformanceMonitor instance that serves as the primary performance tracking system for the entire application. Used by Express middleware and health check endpoints to provide consistent performance monitoring across all components.

    // Use in Express middleware
    import { performanceMiddleware, performanceMonitor } from '@/shared/utils/performance';
    app.use(performanceMiddleware(performanceMonitor));
    // Manual tracking
    performanceMonitor.trackRequest(responseTime, isError);
    // Generate reports
    const report = await performanceMonitor.generateReport();