UNPKG

@elastic/apm-rum

Version:
26 lines (19 loc) 502 B
"use strict"; exports.__esModule = true; exports.default = bootstrap; var _apmRumCore = require("@elastic/apm-rum-core"); var alreadyBootstrap = false; var enabled = false; function bootstrap() { if (alreadyBootstrap) { return enabled; } alreadyBootstrap = true; if ((0, _apmRumCore.isPlatformSupported)()) { (0, _apmRumCore.patchAll)(); enabled = true; } else if (typeof window !== 'undefined') { console.log('APM: Platform is not supported!'); } return enabled; }