UNPKG

telex-amp

Version:

Lightweight React Native tracking library for performance and error logging with Telex Webhooks

11 lines (9 loc) 261 B
import { sendDataToTelex } from "./trackingHelper"; export function trackError(error: Error) { sendDataToTelex({ event_name: "error", message: error.message, status: "failure", timestamp: new Date().toISOString(), }); }