@grafana/faro-web-sdk
Version:
Faro instrumentations, metas, transports for web.
38 lines • 1.85 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorsInstrumentation = void 0;
var faro_core_1 = require("@grafana/faro-core");
var registerOnerror_1 = require("./registerOnerror");
var registerOnunhandledrejection_1 = require("./registerOnunhandledrejection");
var ErrorsInstrumentation = /** @class */ (function (_super) {
__extends(ErrorsInstrumentation, _super);
function ErrorsInstrumentation() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.name = '@grafana/faro-web-sdk:instrumentation-errors';
_this.version = faro_core_1.VERSION;
return _this;
}
ErrorsInstrumentation.prototype.initialize = function () {
this.logDebug('Initializing');
(0, registerOnerror_1.registerOnerror)(this.api);
(0, registerOnunhandledrejection_1.registerOnunhandledrejection)(this.api);
};
return ErrorsInstrumentation;
}(faro_core_1.BaseInstrumentation));
exports.ErrorsInstrumentation = ErrorsInstrumentation;
//# sourceMappingURL=instrumentation.js.map