UNPKG

@grafana/faro-web-sdk

Version:

Faro instrumentations, metas, transports for web.

20 lines 849 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ErrorsInstrumentation = void 0; const faro_core_1 = require("@grafana/faro-core"); const registerOnerror_1 = require("./registerOnerror"); const registerOnunhandledrejection_1 = require("./registerOnunhandledrejection"); class ErrorsInstrumentation extends faro_core_1.BaseInstrumentation { constructor() { super(...arguments); this.name = '@grafana/faro-web-sdk:instrumentation-errors'; this.version = faro_core_1.VERSION; } initialize() { this.logDebug('Initializing'); (0, registerOnerror_1.registerOnerror)(this.api); (0, registerOnunhandledrejection_1.registerOnunhandledrejection)(this.api); } } exports.ErrorsInstrumentation = ErrorsInstrumentation; //# sourceMappingURL=instrumentation.js.map