Some checks failed
Build & Deploy KLZ Cables / 🔍 Prepare Environment (push) Successful in 7s
Build & Deploy KLZ Cables / 🏗️ Build App (push) Successful in 4m3s
Build & Deploy KLZ Cables / 🏗️ Build Gatekeeper (push) Successful in 20s
Build & Deploy KLZ Cables / 🚀 Deploy (push) Has been cancelled
Build & Deploy KLZ Cables / ⚡ PageSpeed (push) Has been cancelled
Build & Deploy KLZ Cables / 🔔 Notifications (push) Has been cancelled
Build & Deploy KLZ Cables / 🧪 Quality Assurance (push) Has been cancelled
23 lines
581 B
TypeScript
23 lines
581 B
TypeScript
import type {
|
|
ErrorReportingLevel,
|
|
ErrorReportingService,
|
|
ErrorReportingUser,
|
|
} from './error-reporting-service';
|
|
|
|
export class NoopErrorReportingService implements ErrorReportingService {
|
|
async captureException(_error: unknown, _context?: Record<string, unknown>) {
|
|
return undefined;
|
|
}
|
|
|
|
async captureMessage(_message: string, _level?: ErrorReportingLevel) {
|
|
return undefined;
|
|
}
|
|
|
|
setUser(_user: ErrorReportingUser | null) {}
|
|
setTag(_key: string, _value: string) {}
|
|
|
|
withScope<T>(fn: () => T, _context?: Record<string, unknown>) {
|
|
return fn();
|
|
}
|
|
}
|