in src/services/report.ts [21:34]
constructor(type: string, collector: string) {
const typesMap: Record<string, string> = {
ERROR: ReportTypes.ERROR,
ERRORS: ReportTypes.ERRORS,
SEGMENT: ReportTypes.SEGMENT,
SEGMENTS: ReportTypes.SEGMENTS,
PERF: ReportTypes.PERF,
WEBVITALS: ReportTypes.WEBVITALS,
WEBINTERACTIONS: ReportTypes.WEBINTERACTIONS,
RESOURCES: ReportTypes.RESOURCES,
};
this.url = `${collector}${typesMap[type]}`;
}