UNPKG

@dash0/sdk-web

Version:

Dash0's Web SDK to collect telemetry from end-users' web browsers

7 lines (5 loc) 288 B
import { reportUnhandledError as reportErrorInternal } from "../instrumentations/errors/unhandled-error"; import { ReportErrorOpts, ErrorLike } from "../types/errors"; export function reportError(error: string | ErrorLike, opts?: ReportErrorOpts) { reportErrorInternal(error, opts); }