@grafana/faro-web-sdk
Version:
Faro instrumentations, metas, transports for web.
19 lines • 838 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebVitalsInstrumentation = void 0;
const faro_core_1 = require("@grafana/faro-core");
const webVitalsWithAttribution_1 = require("./webVitalsWithAttribution");
class WebVitalsInstrumentation extends faro_core_1.BaseInstrumentation {
constructor() {
super(...arguments);
this.name = '@grafana/faro-web-sdk:instrumentation-web-vitals';
this.version = faro_core_1.VERSION;
}
initialize() {
this.logDebug('Initializing');
const webVitals = new webVitalsWithAttribution_1.WebVitalsWithAttribution(this.api.pushMeasurement, this.config.webVitalsInstrumentation);
webVitals.initialize();
}
}
exports.WebVitalsInstrumentation = WebVitalsInstrumentation;
//# sourceMappingURL=instrumentation.js.map