@embrace-io/web-sdk
Version:
3 lines (2 loc) • 2.63 kB
JavaScript
import"../managers/EmbraceLogManager/EmbraceLogManager.js";import"../managers/EmbraceSpanSessionManager/EmbraceSpanSessionManager.js";import"../managers/EmbraceTraceManager/EmbraceTraceManager.js";import"../managers/EmbraceUserManager/EmbraceUserManager.js";import{SpanSessionVisibilityInstrumentation as t}from"../instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js";import{SpanSessionBrowserActivityInstrumentation as n}from"../instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js";import{SpanSessionOnLoadInstrumentation as e}from"../instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js";import{SpanSessionTimeoutInstrumentation as i}from"../instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js";import"../instrumentations/EmbraceInstrumentationBase/EmbraceInstrumentationBase.js";import{GlobalExceptionInstrumentation as s}from"../instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js";import{ClicksInstrumentation as o}from"../instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js";import{WebVitalsInstrumentation as r}from"../instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js";import{DocumentLoadInstrumentation as a}from"@opentelemetry/instrumentation-document-load";import{FetchInstrumentation as m}from"@opentelemetry/instrumentation-fetch";import{XMLHttpRequestInstrumentation as u}from"@opentelemetry/instrumentation-xml-http-request";var p=function(p){var l,c,v,d,b,S;void 0===p&&(p={});var h=[new e(p["session-on-load"]),new t(p["session-visibility"]),new n(p["session-activity"]),new i(p["session-timeout"])];return(null===(l=p.omit)||void 0===l?void 0:l.has("exception"))||h.push(new s(p.exception)),(null===(c=p.omit)||void 0===c?void 0:c.has("click"))||h.push(new o(p.click)),(null===(v=p.omit)||void 0===v?void 0:v.has("web-vital"))||h.push(new r(p["web-vital"])),(null===(d=p.omit)||void 0===d?void 0:d.has("@opentelemetry/instrumentation-document-load"))||h.push(new a(p["@opentelemetry/instrumentation-document-load"])),(null===(b=p.omit)||void 0===b?void 0:b.has("@opentelemetry/instrumentation-fetch"))||h.push(new m(p["@opentelemetry/instrumentation-fetch"])),(null===(S=p.omit)||void 0===S?void 0:S.has("@opentelemetry/instrumentation-xml-http-request"))||h.push(new u(p["@opentelemetry/instrumentation-xml-http-request"])),h};export{p as setupDefaultInstrumentations};
//# sourceMappingURL=setupDefaultInstrumentations.js.map