evolution-api / src /api /guards /telemetry.guard.ts
oex2003's picture
Deploy Evolution API to Hugging Face Space
5e518ea
import { sendTelemetry } from '@utils/sendTelemetry';
import { NextFunction, Request, Response } from 'express';
class Telemetry {
public collectTelemetry(req: Request, res: Response, next: NextFunction): void {
sendTelemetry(req.path);
next();
}
}
export default Telemetry;