@dash0/sdk-web
Version:
Dash0's Web SDK to collect telemetry from end-users' web browsers
17 lines (14 loc) • 379 B
text/typescript
import { AttributeValueType } from "../utils/otel";
import { AnyValue } from "./otlp";
export type ErrorLike = {
message: string;
name?: string;
stack?: string;
};
export type ReportErrorOpts = {
componentStack?: string | null | undefined;
/**
* Additional attributes to add to the error span
*/
attributes?: Record<string, AttributeValueType | AnyValue>;
};