in src/plugins/event-plugins/XhrPlugin.ts [254:270]
private recordHttpEventWithError(
xhrDetails: XhrDetails,
error: Error | string | number | boolean | undefined | null
) {
const httpEvent: HttpEvent = {
version: '1.0.0',
request: { method: xhrDetails.method }
};
httpEvent.error = errorEventToJsErrorEvent(
{
type: 'error',
error
} as ErrorEvent,
this.config.stackTraceLength
);
this.context.record(HTTP_EVENT_TYPE, httpEvent);
}