@safaricom-mxl/web-sdk 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DATA_EXPORT.md +1 -1
- package/REACT.md +1 -1
- package/README.md +19 -28
- package/UPGRADING.md +2 -2
- package/dist/_virtual/_rolldown/runtime.cjs +7 -13
- package/dist/api-logs/api/LogAPI/LogAPI.cjs +6 -7
- package/dist/api-logs/api/LogAPI/LogAPI.cjs.map +1 -1
- package/dist/api-logs/api/LogAPI/LogAPI.d.cts +0 -1
- package/dist/api-logs/api/LogAPI/LogAPI.d.cts.map +1 -1
- package/dist/api-logs/api/LogAPI/LogAPI.d.ts +0 -2
- package/dist/api-logs/api/LogAPI/LogAPI.d.ts.map +1 -1
- package/dist/api-logs/api/LogAPI/LogAPI.js +1 -2
- package/dist/api-logs/api/LogAPI/LogAPI.js.map +1 -1
- package/dist/api-logs/api/LogAPI/index.cjs +3 -4
- package/dist/api-logs/api/LogAPI/index.js +1 -2
- package/dist/api-logs/api/LogAPI/types.d.cts +0 -1
- package/dist/api-logs/api/LogAPI/types.d.cts.map +1 -1
- package/dist/api-logs/api/LogAPI/types.d.ts +0 -2
- package/dist/api-logs/api/LogAPI/types.d.ts.map +1 -1
- package/dist/api-logs/api/index.cjs +3 -4
- package/dist/api-logs/api/index.d.ts +0 -1
- package/dist/api-logs/api/index.js +1 -2
- package/dist/api-logs/index.cjs +5 -6
- package/dist/api-logs/index.d.ts +0 -1
- package/dist/api-logs/index.js +1 -2
- package/dist/api-logs/logAPI.cjs +3 -5
- package/dist/api-logs/logAPI.cjs.map +1 -1
- package/dist/api-logs/logAPI.js +1 -2
- package/dist/api-logs/logAPI.js.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs +2 -3
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.cts +0 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.cts.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.ts +0 -2
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.d.ts.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js +1 -1
- package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js.map +1 -1
- package/dist/api-logs/manager/NoOpLogManager/index.cjs +3 -4
- package/dist/api-logs/manager/NoOpLogManager/index.js +1 -2
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.cjs +3 -5
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.cjs.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.cts +0 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.cts.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.ts +0 -2
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.d.ts.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.js +1 -2
- package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.js.map +1 -1
- package/dist/api-logs/manager/ProxyLogManager/index.cjs +3 -4
- package/dist/api-logs/manager/ProxyLogManager/index.js +1 -2
- package/dist/api-logs/manager/index.cjs +4 -5
- package/dist/api-logs/manager/index.js +1 -2
- package/dist/api-page/api/PageAPI/PageAPI.cjs +6 -7
- package/dist/api-page/api/PageAPI/PageAPI.cjs.map +1 -1
- package/dist/api-page/api/PageAPI/PageAPI.js +1 -2
- package/dist/api-page/api/PageAPI/PageAPI.js.map +1 -1
- package/dist/api-page/api/PageAPI/index.cjs +3 -4
- package/dist/api-page/api/PageAPI/index.js +1 -2
- package/dist/api-page/api/index.cjs +3 -4
- package/dist/api-page/api/index.js +1 -2
- package/dist/api-page/index.cjs +5 -6
- package/dist/api-page/index.js +1 -2
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.cjs +2 -3
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.cjs.map +1 -1
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.js +1 -1
- package/dist/api-page/manager/NoOpPageManager/NoOpPageManager.js.map +1 -1
- package/dist/api-page/manager/NoOpPageManager/index.cjs +3 -4
- package/dist/api-page/manager/NoOpPageManager/index.js +1 -2
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.cjs +3 -5
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.cjs.map +1 -1
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.js +1 -2
- package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.js.map +1 -1
- package/dist/api-page/manager/ProxyPageManager/index.cjs +3 -4
- package/dist/api-page/manager/ProxyPageManager/index.js +1 -2
- package/dist/api-page/manager/index.cjs +4 -5
- package/dist/api-page/manager/index.js +1 -2
- package/dist/api-page/pageAPI.cjs +3 -5
- package/dist/api-page/pageAPI.cjs.map +1 -1
- package/dist/api-page/pageAPI.js +1 -2
- package/dist/api-page/pageAPI.js.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs +6 -7
- package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts +0 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts +0 -2
- package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts.map +1 -1
- package/dist/api-sessions/api/SessionAPI/SessionAPI.js +1 -2
- package/dist/api-sessions/api/SessionAPI/SessionAPI.js.map +1 -1
- package/dist/api-sessions/api/SessionAPI/index.cjs +3 -4
- package/dist/api-sessions/api/SessionAPI/index.js +1 -2
- package/dist/api-sessions/api/SessionAPI/types.d.cts +0 -1
- package/dist/api-sessions/api/SessionAPI/types.d.cts.map +1 -1
- package/dist/api-sessions/api/SessionAPI/types.d.ts +0 -2
- package/dist/api-sessions/api/SessionAPI/types.d.ts.map +1 -1
- package/dist/api-sessions/api/index.cjs +3 -4
- package/dist/api-sessions/api/index.d.ts +0 -1
- package/dist/api-sessions/api/index.js +1 -2
- package/dist/api-sessions/index.cjs +5 -6
- package/dist/api-sessions/index.d.ts +0 -1
- package/dist/api-sessions/index.js +1 -2
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs +2 -3
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs.map +1 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts +0 -2
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts.map +1 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js +1 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js.map +1 -1
- package/dist/api-sessions/manager/NoOpSpanSessionManager/index.cjs +3 -4
- package/dist/api-sessions/manager/NoOpSpanSessionManager/index.js +1 -2
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs +3 -5
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs.map +1 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts +0 -2
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts.map +1 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js +1 -2
- package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js.map +1 -1
- package/dist/api-sessions/manager/ProxySpanSessionManager/index.cjs +3 -4
- package/dist/api-sessions/manager/ProxySpanSessionManager/index.js +1 -2
- package/dist/api-sessions/manager/index.cjs +4 -5
- package/dist/api-sessions/manager/index.d.ts +0 -2
- package/dist/api-sessions/manager/index.js +1 -2
- package/dist/api-sessions/manager/types.d.cts +3 -0
- package/dist/api-sessions/manager/types.d.cts.map +1 -1
- package/dist/api-sessions/manager/types.d.ts +3 -1
- package/dist/api-sessions/manager/types.d.ts.map +1 -1
- package/dist/api-sessions/sessionAPI.cjs +3 -5
- package/dist/api-sessions/sessionAPI.cjs.map +1 -1
- package/dist/api-sessions/sessionAPI.js +1 -2
- package/dist/api-sessions/sessionAPI.js.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.cjs +6 -7
- package/dist/api-traces/api/TraceAPI/TraceAPI.cjs.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.d.cts +0 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.d.cts.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.d.ts +0 -2
- package/dist/api-traces/api/TraceAPI/TraceAPI.d.ts.map +1 -1
- package/dist/api-traces/api/TraceAPI/TraceAPI.js +1 -2
- package/dist/api-traces/api/TraceAPI/TraceAPI.js.map +1 -1
- package/dist/api-traces/api/TraceAPI/index.cjs +3 -4
- package/dist/api-traces/api/TraceAPI/index.js +1 -2
- package/dist/api-traces/api/TraceAPI/types.d.cts.map +1 -1
- package/dist/api-traces/api/TraceAPI/types.d.ts +0 -1
- package/dist/api-traces/api/TraceAPI/types.d.ts.map +1 -1
- package/dist/api-traces/api/index.cjs +3 -4
- package/dist/api-traces/api/index.d.ts +0 -1
- package/dist/api-traces/api/index.js +1 -2
- package/dist/api-traces/index.cjs +5 -6
- package/dist/api-traces/index.d.ts +0 -2
- package/dist/api-traces/index.js +1 -2
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.cjs +4 -5
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.cjs.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.d.ts +0 -2
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.d.ts.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.js +1 -2
- package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.js.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.cjs +3 -4
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.cjs.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.d.ts +0 -1
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.d.ts.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.js +1 -2
- package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.js.map +1 -1
- package/dist/api-traces/manager/NoOpTraceManager/index.cjs +3 -4
- package/dist/api-traces/manager/NoOpTraceManager/index.js +1 -2
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.cjs +3 -5
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.cjs.map +1 -1
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.d.ts +0 -2
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.d.ts.map +1 -1
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.js +1 -2
- package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.js.map +1 -1
- package/dist/api-traces/manager/ProxyTraceManager/index.cjs +3 -4
- package/dist/api-traces/manager/ProxyTraceManager/index.js +1 -2
- package/dist/api-traces/manager/index.cjs +4 -5
- package/dist/api-traces/manager/index.d.ts +0 -2
- package/dist/api-traces/manager/index.js +1 -2
- package/dist/api-traces/manager/types.d.ts +0 -1
- package/dist/api-traces/manager/types.d.ts.map +1 -1
- package/dist/api-traces/traceAPI.cjs +3 -5
- package/dist/api-traces/traceAPI.cjs.map +1 -1
- package/dist/api-traces/traceAPI.js +1 -2
- package/dist/api-traces/traceAPI.js.map +1 -1
- package/dist/api-users/api/UserAPI/UserAPI.cjs +6 -7
- package/dist/api-users/api/UserAPI/UserAPI.cjs.map +1 -1
- package/dist/api-users/api/UserAPI/UserAPI.js +1 -2
- package/dist/api-users/api/UserAPI/UserAPI.js.map +1 -1
- package/dist/api-users/api/UserAPI/index.cjs +3 -4
- package/dist/api-users/api/UserAPI/index.js +1 -2
- package/dist/api-users/api/index.cjs +3 -4
- package/dist/api-users/api/index.js +1 -2
- package/dist/api-users/index.cjs +6 -7
- package/dist/api-users/index.js +1 -2
- package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.cjs +2 -3
- package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.cjs.map +1 -1
- package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.js +1 -1
- package/dist/api-users/manager/NoOpUserManager/NoOpUserManager.js.map +1 -1
- package/dist/api-users/manager/NoOpUserManager/index.cjs +3 -4
- package/dist/api-users/manager/NoOpUserManager/index.js +1 -2
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.cjs +3 -5
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.cjs.map +1 -1
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.js +1 -2
- package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.js.map +1 -1
- package/dist/api-users/manager/ProxyUserManager/index.cjs +3 -4
- package/dist/api-users/manager/ProxyUserManager/index.js +1 -2
- package/dist/api-users/manager/constants/index.cjs +2 -3
- package/dist/api-users/manager/constants/index.cjs.map +1 -1
- package/dist/api-users/manager/constants/index.js +1 -1
- package/dist/api-users/manager/index.cjs +5 -6
- package/dist/api-users/manager/index.js +1 -2
- package/dist/api-users/userAPI.cjs +3 -5
- package/dist/api-users/userAPI.cjs.map +1 -1
- package/dist/api-users/userAPI.js +1 -2
- package/dist/api-users/userAPI.js.map +1 -1
- package/dist/common/attributes.cjs +3 -5
- package/dist/common/attributes.cjs.map +1 -1
- package/dist/common/attributes.js +1 -2
- package/dist/common/attributes.js.map +1 -1
- package/dist/common/index.cjs +3 -4
- package/dist/common/index.js +1 -2
- package/dist/common/types.d.cts +1 -0
- package/dist/common/types.d.cts.map +1 -1
- package/dist/common/types.d.ts +1 -0
- package/dist/common/types.d.ts.map +1 -1
- package/dist/constants/attributes.cjs +11 -3
- package/dist/constants/attributes.cjs.map +1 -1
- package/dist/constants/attributes.d.cts +11 -4
- package/dist/constants/attributes.d.cts.map +1 -1
- package/dist/constants/attributes.d.ts +11 -4
- package/dist/constants/attributes.d.ts.map +1 -1
- package/dist/constants/attributes.js +10 -2
- package/dist/constants/attributes.js.map +1 -1
- package/dist/constants/index.cjs +4 -4
- package/dist/constants/index.d.cts +2 -2
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +2 -3
- package/dist/exporters/BaseFetchExporter/BaseFetchExporter.cjs +2 -3
- package/dist/exporters/BaseFetchExporter/BaseFetchExporter.cjs.map +1 -1
- package/dist/exporters/BaseFetchExporter/BaseFetchExporter.js +1 -1
- package/dist/exporters/BaseFetchExporter/BaseFetchExporter.js.map +1 -1
- package/dist/exporters/BaseFetchExporter/index.cjs +3 -4
- package/dist/exporters/BaseFetchExporter/index.js +1 -2
- package/dist/exporters/MXLLogExporter/MXLLogExporter.cjs +6 -7
- package/dist/exporters/MXLLogExporter/MXLLogExporter.cjs.map +1 -1
- package/dist/exporters/MXLLogExporter/MXLLogExporter.js +1 -2
- package/dist/exporters/MXLLogExporter/MXLLogExporter.js.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs +5 -6
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts +0 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts.map +1 -1
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js +1 -2
- package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js.map +1 -1
- package/dist/exporters/MXLLogExporter/index.cjs +3 -4
- package/dist/exporters/MXLLogExporter/index.js +1 -2
- package/dist/exporters/MXLLogExporter/utils.cjs +3 -4
- package/dist/exporters/MXLLogExporter/utils.cjs.map +1 -1
- package/dist/exporters/MXLLogExporter/utils.js +1 -2
- package/dist/exporters/MXLLogExporter/utils.js.map +1 -1
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.cjs +6 -7
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.cjs.map +1 -1
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.js +1 -2
- package/dist/exporters/MXLTraceExporter/MXLTraceExporter.js.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs +5 -6
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.d.ts +0 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.d.ts.map +1 -1
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js +1 -2
- package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js.map +1 -1
- package/dist/exporters/MXLTraceExporter/index.cjs +3 -4
- package/dist/exporters/MXLTraceExporter/index.js +1 -2
- package/dist/exporters/MXLTraceExporter/utils.cjs +3 -4
- package/dist/exporters/MXLTraceExporter/utils.cjs.map +1 -1
- package/dist/exporters/MXLTraceExporter/utils.js +1 -2
- package/dist/exporters/MXLTraceExporter/utils.js.map +1 -1
- package/dist/exporters/constants.cjs +3 -6
- package/dist/exporters/constants.cjs.map +1 -1
- package/dist/exporters/constants.js +2 -4
- package/dist/exporters/constants.js.map +1 -1
- package/dist/exporters/index.cjs +7 -8
- package/dist/exporters/index.d.ts +0 -2
- package/dist/exporters/index.js +1 -2
- package/dist/exporters/otlpBrowserFetchExportDelegate.cjs +5 -6
- package/dist/exporters/otlpBrowserFetchExportDelegate.cjs.map +1 -1
- package/dist/exporters/otlpBrowserFetchExportDelegate.d.cts +2 -2
- package/dist/exporters/otlpBrowserFetchExportDelegate.d.cts.map +1 -1
- package/dist/exporters/otlpBrowserFetchExportDelegate.d.ts +2 -2
- package/dist/exporters/otlpBrowserFetchExportDelegate.d.ts.map +1 -1
- package/dist/exporters/otlpBrowserFetchExportDelegate.js +1 -2
- package/dist/exporters/otlpBrowserFetchExportDelegate.js.map +1 -1
- package/dist/exporters/utils.cjs +2 -3
- package/dist/exporters/utils.cjs.map +1 -1
- package/dist/exporters/utils.d.cts.map +1 -1
- package/dist/exporters/utils.d.ts.map +1 -1
- package/dist/exporters/utils.js +1 -1
- package/dist/exporters/utils.js.map +1 -1
- package/dist/index.cjs +17 -16
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -7
- package/dist/index.js +2 -2
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs +3 -4
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs.map +1 -1
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js +1 -2
- package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js.map +1 -1
- package/dist/instrumentations/InstrumentationAbstract/index.cjs +3 -4
- package/dist/instrumentations/InstrumentationAbstract/index.js +1 -2
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs +16 -8
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts +7 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts +7 -5
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js +11 -3
- package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/index.cjs +3 -4
- package/dist/instrumentations/MXLInstrumentationBase/index.js +1 -2
- package/dist/instrumentations/MXLInstrumentationBase/types.d.cts +3 -0
- package/dist/instrumentations/MXLInstrumentationBase/types.d.cts.map +1 -1
- package/dist/instrumentations/MXLInstrumentationBase/types.d.ts +3 -1
- package/dist/instrumentations/MXLInstrumentationBase/types.d.ts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs +4 -5
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts +0 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js +1 -2
- package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/clicks/ClicksInstrumentation/index.js +1 -2
- package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/clicks/ClicksInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/utils.cjs +2 -3
- package/dist/instrumentations/clicks/ClicksInstrumentation/utils.cjs.map +1 -1
- package/dist/instrumentations/clicks/ClicksInstrumentation/utils.js +1 -1
- package/dist/instrumentations/clicks/index.cjs +3 -4
- package/dist/instrumentations/clicks/index.d.ts +0 -1
- package/dist/instrumentations/clicks/index.js +1 -2
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs +12 -13
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.ts +0 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js +8 -9
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.cjs +2 -3
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.js +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/AttributeNames.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.cjs +2 -3
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.js +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/enums/EventNames.js.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/index.cjs +4 -5
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/index.js +1 -2
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/types.d.ts +0 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs +6 -7
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs.map +1 -1
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js +4 -5
- package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js.map +1 -1
- package/dist/instrumentations/document-load/index.cjs +4 -5
- package/dist/instrumentations/document-load/index.d.ts +0 -1
- package/dist/instrumentations/document-load/index.js +1 -2
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs +67 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.cts +19 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.ts +19 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js +66 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.cjs +21 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.cts +12 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.ts +12 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.js +13 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/index.js +2 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.cts +16 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.ts +16 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/element-timing/ElementTimingInstrumentation/types.js +0 -0
- package/dist/instrumentations/element-timing/index.cjs +3 -0
- package/dist/instrumentations/element-timing/index.d.cts +3 -0
- package/dist/instrumentations/element-timing/index.d.ts +3 -0
- package/dist/instrumentations/element-timing/index.js +2 -0
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs +3 -4
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.d.ts +0 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js +1 -2
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/index.js +1 -2
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/empty-root/EmptyRootInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/empty-root/index.cjs +3 -4
- package/dist/instrumentations/empty-root/index.d.ts +0 -1
- package/dist/instrumentations/empty-root/index.js +1 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs +3 -4
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.d.ts +0 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js +1 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/index.js +1 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/exceptions/index.cjs +3 -4
- package/dist/instrumentations/exceptions/index.d.ts +0 -1
- package/dist/instrumentations/exceptions/index.js +1 -2
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs +7 -8
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs.map +1 -1
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js +3 -4
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js.map +1 -1
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/index.cjs +3 -4
- package/dist/instrumentations/exceptions/react/MXLErrorBoundary/index.js +1 -2
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs +3 -4
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js +1 -2
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js.map +1 -1
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.js +1 -2
- package/dist/instrumentations/fetch/index.cjs +3 -4
- package/dist/instrumentations/fetch/index.d.ts +0 -1
- package/dist/instrumentations/fetch/index.js +1 -2
- package/dist/instrumentations/index.cjs +19 -20
- package/dist/instrumentations/index.d.cts +9 -9
- package/dist/instrumentations/index.d.ts +9 -19
- package/dist/instrumentations/index.js +5 -6
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs +168 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts +33 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts +33 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js +166 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.cjs +29 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.cts +16 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.ts +16 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.js +17 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/index.js +2 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.d.cts +6 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.d.ts +6 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/loaf/LoafInstrumentation/types.js +0 -0
- package/dist/instrumentations/loaf/index.cjs +3 -0
- package/dist/instrumentations/loaf/index.d.cts +3 -0
- package/dist/instrumentations/loaf/index.d.ts +3 -0
- package/dist/instrumentations/loaf/index.js +2 -0
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs +7 -8
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts +0 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js +4 -5
- package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/index.cjs +4 -5
- package/dist/instrumentations/navigation/NavigationInstrumentation/index.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/instance.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/instance.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/instance.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/instance.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.cts +0 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.ts +0 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/index.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/index.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.cjs +8 -9
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.js +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/index.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/index.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs +5 -6
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/index.cjs +3 -4
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/index.js +1 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.cjs +8 -9
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.cjs.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.js +4 -5
- package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.js.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/navigation/NavigationInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/navigation/index.cjs +4 -5
- package/dist/instrumentations/navigation/index.d.ts +0 -1
- package/dist/instrumentations/navigation/index.js +1 -2
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs +59 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.cts +19 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.ts +19 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js +57 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.cjs +13 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.cts +8 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.ts +8 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.js +9 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/index.js +2 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.cts +7 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.ts +7 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/server-timing/ServerTimingInstrumentation/types.js +0 -0
- package/dist/instrumentations/server-timing/index.cjs +3 -0
- package/dist/instrumentations/server-timing/index.d.cts +3 -0
- package/dist/instrumentations/server-timing/index.d.ts +3 -0
- package/dist/instrumentations/server-timing/index.js +2 -0
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs +7 -8
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js +1 -2
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs +2 -3
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.js +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.js +1 -2
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts +0 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js +1 -2
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.js +1 -2
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs +4 -5
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js +1 -2
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs +2 -3
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.js +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.js +1 -2
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts +0 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts +0 -2
- package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs +10 -73
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts +1 -14
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts +1 -17
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js +8 -71
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.js +1 -2
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts +1 -6
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts +1 -7
- package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/session/index.cjs +6 -11
- package/dist/instrumentations/session/index.d.cts +1 -5
- package/dist/instrumentations/session/index.d.ts +1 -11
- package/dist/instrumentations/session/index.js +1 -4
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs +95 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.cts +23 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.cts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.ts +23 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.ts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js +93 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.cjs +17 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.cjs.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.cts +10 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.cts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.ts +10 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.d.ts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.js +11 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/constants.js.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.cjs +3 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.d.cts +3 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.d.ts +3 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/index.js +2 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.cjs +0 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.cts +18 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.cts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.ts +18 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.d.ts.map +1 -0
- package/dist/instrumentations/user-timing/UserTimingInstrumentation/types.js +0 -0
- package/dist/instrumentations/user-timing/index.cjs +3 -0
- package/dist/instrumentations/user-timing/index.d.cts +3 -0
- package/dist/instrumentations/user-timing/index.d.ts +3 -0
- package/dist/instrumentations/user-timing/index.js +2 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs +79 -105
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts +0 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js +75 -101
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.cjs +19 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.cjs.map +1 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.cts +11 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.cts.map +1 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.ts +11 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.d.ts.map +1 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.js +12 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/attributes.js.map +1 -0
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.cjs +60 -4
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.cjs.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.cts +9 -7
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.ts +9 -7
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.d.ts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.js +57 -3
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/constants.js.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/index.js +1 -2
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts.map +1 -1
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts +1 -2
- package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts.map +1 -1
- package/dist/instrumentations/web-vitals/index.cjs +3 -4
- package/dist/instrumentations/web-vitals/index.d.ts +0 -1
- package/dist/instrumentations/web-vitals/index.js +1 -2
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs +3 -4
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs.map +1 -1
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js +1 -2
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js.map +1 -1
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.cjs +3 -4
- package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.js +1 -2
- package/dist/instrumentations/xhr/index.cjs +3 -4
- package/dist/instrumentations/xhr/index.d.ts +0 -1
- package/dist/instrumentations/xhr/index.js +1 -2
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs +43 -10
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts +10 -0
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts +10 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js +39 -6
- package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js.map +1 -1
- package/dist/managers/MXLConfigManager/constants.cjs +2 -3
- package/dist/managers/MXLConfigManager/constants.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/constants.d.cts +0 -1
- package/dist/managers/MXLConfigManager/constants.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/constants.d.ts +0 -2
- package/dist/managers/MXLConfigManager/constants.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/constants.js +1 -1
- package/dist/managers/MXLConfigManager/index.cjs +3 -4
- package/dist/managers/MXLConfigManager/index.js +1 -2
- package/dist/managers/MXLConfigManager/types.d.cts +2 -1
- package/dist/managers/MXLConfigManager/types.d.cts.map +1 -1
- package/dist/managers/MXLConfigManager/types.d.ts +2 -2
- package/dist/managers/MXLConfigManager/types.d.ts.map +1 -1
- package/dist/managers/MXLConfigManager/utils.cjs +2 -3
- package/dist/managers/MXLConfigManager/utils.cjs.map +1 -1
- package/dist/managers/MXLConfigManager/utils.js +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.cjs +24 -8
- package/dist/managers/MXLLimitManager/MXLLimitManager.cjs.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.cts +3 -0
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.cts.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.ts +3 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.d.ts.map +1 -1
- package/dist/managers/MXLLimitManager/MXLLimitManager.js +22 -6
- package/dist/managers/MXLLimitManager/MXLLimitManager.js.map +1 -1
- package/dist/managers/MXLLimitManager/constants.cjs +11 -8
- package/dist/managers/MXLLimitManager/constants.cjs.map +1 -1
- package/dist/managers/MXLLimitManager/constants.js +10 -6
- package/dist/managers/MXLLimitManager/constants.js.map +1 -1
- package/dist/managers/MXLLimitManager/index.cjs +4 -5
- package/dist/managers/MXLLimitManager/index.js +1 -2
- package/dist/managers/MXLLimitManager/types.d.cts +7 -1
- package/dist/managers/MXLLimitManager/types.d.cts.map +1 -1
- package/dist/managers/MXLLimitManager/types.d.ts +7 -2
- package/dist/managers/MXLLimitManager/types.d.ts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.cjs +11 -12
- package/dist/managers/MXLLogManager/MXLLogManager.cjs.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.d.cts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.d.ts +0 -2
- package/dist/managers/MXLLogManager/MXLLogManager.d.ts.map +1 -1
- package/dist/managers/MXLLogManager/MXLLogManager.js +5 -6
- package/dist/managers/MXLLogManager/MXLLogManager.js.map +1 -1
- package/dist/managers/MXLLogManager/index.cjs +3 -4
- package/dist/managers/MXLLogManager/index.js +1 -2
- package/dist/managers/MXLLogManager/types.d.ts +0 -3
- package/dist/managers/MXLLogManager/types.d.ts.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.cjs +3 -4
- package/dist/managers/MXLPageManager/MXLPageManager.cjs.map +1 -1
- package/dist/managers/MXLPageManager/MXLPageManager.js +1 -2
- package/dist/managers/MXLPageManager/MXLPageManager.js.map +1 -1
- package/dist/managers/MXLPageManager/index.cjs +3 -4
- package/dist/managers/MXLPageManager/index.js +1 -2
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs +3 -4
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js +1 -2
- package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/index.cjs +3 -4
- package/dist/managers/MXLSDKFeaturesManager/index.js +1 -2
- package/dist/managers/MXLSDKFeaturesManager/types.d.cts +0 -1
- package/dist/managers/MXLSDKFeaturesManager/types.d.cts.map +1 -1
- package/dist/managers/MXLSDKFeaturesManager/types.d.ts +0 -2
- package/dist/managers/MXLSDKFeaturesManager/types.d.ts.map +1 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs +18 -17
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs.map +1 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts +3 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts.map +1 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts +3 -3
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts.map +1 -1
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js +9 -8
- package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js.map +1 -1
- package/dist/managers/MXLSpanSessionManager/constants.cjs +2 -3
- package/dist/managers/MXLSpanSessionManager/constants.cjs.map +1 -1
- package/dist/managers/MXLSpanSessionManager/constants.js +1 -1
- package/dist/managers/MXLSpanSessionManager/index.cjs +3 -4
- package/dist/managers/MXLSpanSessionManager/index.js +1 -2
- package/dist/managers/MXLSpanSessionManager/types.d.cts +5 -0
- package/dist/managers/MXLSpanSessionManager/types.d.cts.map +1 -1
- package/dist/managers/MXLSpanSessionManager/types.d.ts +5 -3
- package/dist/managers/MXLSpanSessionManager/types.d.ts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.cjs +3 -4
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.cjs.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.cts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.ts +0 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.ts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.js +1 -2
- package/dist/managers/MXLTraceManager/MXLExtendedSpan.js.map +1 -1
- package/dist/managers/MXLTraceManager/MXLTraceManager.cjs +8 -8
- package/dist/managers/MXLTraceManager/MXLTraceManager.cjs.map +1 -1
- package/dist/managers/MXLTraceManager/MXLTraceManager.d.ts +0 -1
- package/dist/managers/MXLTraceManager/MXLTraceManager.d.ts.map +1 -1
- package/dist/managers/MXLTraceManager/MXLTraceManager.js +5 -5
- package/dist/managers/MXLTraceManager/MXLTraceManager.js.map +1 -1
- package/dist/managers/MXLTraceManager/index.cjs +4 -5
- package/dist/managers/MXLTraceManager/index.js +1 -2
- package/dist/managers/MXLUserManager/MXLUserManager.cjs +7 -8
- package/dist/managers/MXLUserManager/MXLUserManager.cjs.map +1 -1
- package/dist/managers/MXLUserManager/MXLUserManager.js +1 -2
- package/dist/managers/MXLUserManager/MXLUserManager.js.map +1 -1
- package/dist/managers/MXLUserManager/constants.cjs +2 -3
- package/dist/managers/MXLUserManager/constants.cjs.map +1 -1
- package/dist/managers/MXLUserManager/constants.js +1 -1
- package/dist/managers/MXLUserManager/index.cjs +3 -4
- package/dist/managers/MXLUserManager/index.js +1 -2
- package/dist/managers/MXLUserManager/types.cjs +4 -5
- package/dist/managers/MXLUserManager/types.cjs.map +1 -1
- package/dist/managers/MXLUserManager/types.js +3 -4
- package/dist/managers/MXLUserManager/types.js.map +1 -1
- package/dist/managers/index.cjs +12 -13
- package/dist/managers/index.d.cts +1 -1
- package/dist/managers/index.d.ts +1 -9
- package/dist/managers/index.js +1 -2
- package/dist/mxl-web-sdk.js +24 -4
- package/dist/mxl-web-sdk.js.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.cjs +443 -274
- package/dist/packages/otlp-transformer/dist/index.cjs.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.d.cts +14 -2
- package/dist/packages/otlp-transformer/dist/index.d.cts.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.d.ts +14 -2
- package/dist/packages/otlp-transformer/dist/index.d.ts.map +1 -1
- package/dist/packages/otlp-transformer/dist/index.js +443 -273
- package/dist/packages/otlp-transformer/dist/index.js.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.cjs +4 -5
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.d.cts.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.d.ts.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.js +2 -3
- package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.js.map +1 -1
- package/dist/processors/BrowserLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/BrowserLogRecordProcessor/index.js +1 -2
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs +4 -5
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.d.cts.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.d.ts.map +1 -1
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js +2 -3
- package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js.map +1 -1
- package/dist/processors/BrowserSpanProcessor/index.cjs +3 -4
- package/dist/processors/BrowserSpanProcessor/index.js +1 -2
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs +4 -5
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js +1 -2
- package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js.map +1 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/IdentifiableSessionLogRecordProcessor/index.js +1 -2
- package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts +0 -1
- package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.cjs +2 -3
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.cjs.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.js +1 -1
- package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.js.map +1 -1
- package/dist/processors/LogRecordScrubProcessor/index.cjs +3 -4
- package/dist/processors/LogRecordScrubProcessor/index.js +1 -2
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs +5 -6
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js +3 -4
- package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js.map +1 -1
- package/dist/processors/MXLLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/MXLLogRecordProcessor/index.js +1 -2
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs +6 -7
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js +3 -4
- package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/index.cjs +3 -4
- package/dist/processors/MXLNetworkSpanProcessor/index.js +1 -2
- package/dist/processors/MXLNetworkSpanProcessor/types.cjs +3 -4
- package/dist/processors/MXLNetworkSpanProcessor/types.cjs.map +1 -1
- package/dist/processors/MXLNetworkSpanProcessor/types.js +1 -2
- package/dist/processors/MXLNetworkSpanProcessor/types.js.map +1 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs +6 -7
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs.map +1 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js +3 -4
- package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js.map +1 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/index.cjs +3 -4
- package/dist/processors/MXLSessionBatchedSpanProcessor/index.js +1 -2
- package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts +0 -1
- package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts.map +1 -1
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.cjs +5 -6
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.js +3 -4
- package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.js.map +1 -1
- package/dist/processors/PageLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/PageLogRecordProcessor/index.js +1 -2
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs +5 -6
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs.map +1 -1
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.js +3 -4
- package/dist/processors/PageSpanProcessor/PageSpanProcessor.js.map +1 -1
- package/dist/processors/PageSpanProcessor/index.cjs +3 -4
- package/dist/processors/PageSpanProcessor/index.js +1 -2
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs +2 -3
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs.map +1 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js +1 -1
- package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js.map +1 -1
- package/dist/processors/SpanScrubProcessor/index.cjs +3 -4
- package/dist/processors/SpanScrubProcessor/index.js +1 -2
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.cjs +3 -4
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.cjs.map +1 -1
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.js +1 -2
- package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.js.map +1 -1
- package/dist/processors/UserLogRecordProcessor/index.cjs +3 -4
- package/dist/processors/UserLogRecordProcessor/index.js +1 -2
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs +3 -4
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs.map +1 -1
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.js +1 -2
- package/dist/processors/UserSpanProcessor/UserSpanProcessor.js.map +1 -1
- package/dist/processors/UserSpanProcessor/index.cjs +3 -4
- package/dist/processors/UserSpanProcessor/index.js +1 -2
- package/dist/processors/index.cjs +14 -15
- package/dist/processors/index.d.ts +0 -12
- package/dist/processors/index.js +1 -2
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.cjs +4 -5
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.cjs.map +1 -1
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.js +1 -2
- package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.js.map +1 -1
- package/dist/propagators/MXLW3CTraceContextPropagator/index.cjs +3 -4
- package/dist/propagators/MXLW3CTraceContextPropagator/index.js +1 -2
- package/dist/propagators/index.cjs +3 -4
- package/dist/propagators/index.d.ts +0 -1
- package/dist/propagators/index.js +1 -2
- package/dist/react-instrumentation/index.cjs +7 -8
- package/dist/react-instrumentation/index.d.ts +0 -3
- package/dist/react-instrumentation/index.js +1 -2
- package/dist/resources/appInstanceId.cjs +4 -5
- package/dist/resources/appInstanceId.cjs.map +1 -1
- package/dist/resources/appInstanceId.js +1 -2
- package/dist/resources/appInstanceId.js.map +1 -1
- package/dist/resources/constants/index.cjs +3 -4
- package/dist/resources/constants/index.cjs.map +1 -1
- package/dist/resources/constants/index.d.cts +1 -1
- package/dist/resources/constants/index.d.ts +1 -1
- package/dist/resources/constants/index.js +2 -2
- package/dist/resources/constants/index.js.map +1 -1
- package/dist/resources/index.cjs +7 -6
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +2 -3
- package/dist/resources/webSdkResource.cjs +22 -9
- package/dist/resources/webSdkResource.cjs.map +1 -1
- package/dist/resources/webSdkResource.d.cts +16 -1
- package/dist/resources/webSdkResource.d.cts.map +1 -1
- package/dist/resources/webSdkResource.d.ts +16 -1
- package/dist/resources/webSdkResource.d.ts.map +1 -1
- package/dist/resources/webSdkResource.js +17 -6
- package/dist/resources/webSdkResource.js.map +1 -1
- package/dist/sdk/defaultAttributeScrubbers.cjs +3 -4
- package/dist/sdk/defaultAttributeScrubbers.cjs.map +1 -1
- package/dist/sdk/defaultAttributeScrubbers.js +1 -2
- package/dist/sdk/defaultAttributeScrubbers.js.map +1 -1
- package/dist/sdk/index.cjs +3 -4
- package/dist/sdk/index.js +1 -2
- package/dist/sdk/initSDK.cjs +62 -58
- package/dist/sdk/initSDK.cjs.map +1 -1
- package/dist/sdk/initSDK.d.cts +2 -1
- package/dist/sdk/initSDK.d.cts.map +1 -1
- package/dist/sdk/initSDK.d.ts +2 -1
- package/dist/sdk/initSDK.d.ts.map +1 -1
- package/dist/sdk/initSDK.js +24 -20
- package/dist/sdk/initSDK.js.map +1 -1
- package/dist/sdk/registry.cjs +3 -4
- package/dist/sdk/registry.cjs.map +1 -1
- package/dist/sdk/registry.js +1 -2
- package/dist/sdk/registry.js.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.cjs +36 -28
- package/dist/sdk/setupDefaultInstrumentations.cjs.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.d.cts +2 -3
- package/dist/sdk/setupDefaultInstrumentations.d.cts.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.d.ts +2 -3
- package/dist/sdk/setupDefaultInstrumentations.d.ts.map +1 -1
- package/dist/sdk/setupDefaultInstrumentations.js +26 -19
- package/dist/sdk/setupDefaultInstrumentations.js.map +1 -1
- package/dist/sdk/setupSessionRecorder.cjs +5 -6
- package/dist/sdk/setupSessionRecorder.cjs.map +1 -1
- package/dist/sdk/setupSessionRecorder.js +1 -2
- package/dist/sdk/setupSessionRecorder.js.map +1 -1
- package/dist/sdk/types.d.cts +29 -16
- package/dist/sdk/types.d.cts.map +1 -1
- package/dist/sdk/types.d.ts +29 -22
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/sdk/utils.cjs +3 -4
- package/dist/sdk/utils.cjs.map +1 -1
- package/dist/sdk/utils.js +1 -2
- package/dist/sdk/utils.js.map +1 -1
- package/dist/transport/FetchTransport/FetchTransport.cjs +3 -4
- package/dist/transport/FetchTransport/FetchTransport.cjs.map +1 -1
- package/dist/transport/FetchTransport/FetchTransport.js +1 -2
- package/dist/transport/FetchTransport/FetchTransport.js.map +1 -1
- package/dist/transport/FetchTransport/createFetchTransport.cjs +3 -4
- package/dist/transport/FetchTransport/createFetchTransport.cjs.map +1 -1
- package/dist/transport/FetchTransport/createFetchTransport.js +1 -2
- package/dist/transport/FetchTransport/createFetchTransport.js.map +1 -1
- package/dist/transport/FetchTransport/index.cjs +3 -4
- package/dist/transport/FetchTransport/index.js +1 -2
- package/dist/transport/RetryingTransport/RetryingTransport.cjs +6 -7
- package/dist/transport/RetryingTransport/RetryingTransport.cjs.map +1 -1
- package/dist/transport/RetryingTransport/RetryingTransport.d.ts +0 -1
- package/dist/transport/RetryingTransport/RetryingTransport.d.ts.map +1 -1
- package/dist/transport/RetryingTransport/RetryingTransport.js +4 -5
- package/dist/transport/RetryingTransport/RetryingTransport.js.map +1 -1
- package/dist/transport/RetryingTransport/constants.cjs +2 -3
- package/dist/transport/RetryingTransport/constants.cjs.map +1 -1
- package/dist/transport/RetryingTransport/constants.js +1 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.cjs +4 -5
- package/dist/transport/RetryingTransport/createRetryingTransport.cjs.map +1 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.d.cts.map +1 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.d.ts +0 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.d.ts.map +1 -1
- package/dist/transport/RetryingTransport/createRetryingTransport.js +1 -2
- package/dist/transport/RetryingTransport/createRetryingTransport.js.map +1 -1
- package/dist/transport/RetryingTransport/index.cjs +3 -4
- package/dist/transport/RetryingTransport/index.js +1 -2
- package/dist/transport/index.cjs +4 -5
- package/dist/transport/index.d.ts +0 -2
- package/dist/transport/index.js +1 -2
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs +4 -5
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs.map +1 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts +0 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts.map +1 -1
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.js +1 -2
- package/dist/utils/MXLSpanStorage/MXLSpanStorage.js.map +1 -1
- package/dist/utils/MXLSpanStorage/index.cjs +3 -4
- package/dist/utils/MXLSpanStorage/index.d.ts +0 -1
- package/dist/utils/MXLSpanStorage/index.js +1 -2
- package/dist/utils/NamespacedStorage/NamespacedStorage.cjs +12 -3
- package/dist/utils/NamespacedStorage/NamespacedStorage.cjs.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts +8 -0
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts +8 -0
- package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts.map +1 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.js +11 -1
- package/dist/utils/NamespacedStorage/NamespacedStorage.js.map +1 -1
- package/dist/utils/NamespacedStorage/index.cjs +3 -4
- package/dist/utils/NamespacedStorage/index.js +1 -2
- package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs +4 -4
- package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.cts +1 -0
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.cts.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.ts +1 -0
- package/dist/utils/PerformanceManager/OTelPerformanceManager.d.ts.map +1 -1
- package/dist/utils/PerformanceManager/OTelPerformanceManager.js +2 -2
- package/dist/utils/PerformanceManager/OTelPerformanceManager.js.map +1 -1
- package/dist/utils/PerformanceManager/index.cjs +3 -4
- package/dist/utils/PerformanceManager/index.js +1 -2
- package/dist/utils/PerformanceManager/types.d.cts +1 -0
- package/dist/utils/PerformanceManager/types.d.cts.map +1 -1
- package/dist/utils/PerformanceManager/types.d.ts +1 -0
- package/dist/utils/PerformanceManager/types.d.ts.map +1 -1
- package/dist/utils/bulkAddEventListener/bulkAddEventListener.cjs +2 -3
- package/dist/utils/bulkAddEventListener/bulkAddEventListener.cjs.map +1 -1
- package/dist/utils/bulkAddEventListener/bulkAddEventListener.js +1 -1
- package/dist/utils/bulkAddEventListener/index.cjs +3 -4
- package/dist/utils/bulkAddEventListener/index.js +1 -2
- package/dist/utils/bulkRemoveEventListener/bulkRemoveEventListener.cjs +2 -3
- package/dist/utils/bulkRemoveEventListener/bulkRemoveEventListener.cjs.map +1 -1
- package/dist/utils/bulkRemoveEventListener/bulkRemoveEventListener.js +1 -1
- package/dist/utils/bulkRemoveEventListener/index.cjs +3 -4
- package/dist/utils/bulkRemoveEventListener/index.js +1 -2
- package/dist/utils/createSafeProxy/createSafeProxy.cjs +2 -3
- package/dist/utils/createSafeProxy/createSafeProxy.cjs.map +1 -1
- package/dist/utils/createSafeProxy/createSafeProxy.js +1 -1
- package/dist/utils/createSafeProxy/index.cjs +3 -4
- package/dist/utils/createSafeProxy/index.js +1 -2
- package/dist/utils/generateUUID.cjs +2 -3
- package/dist/utils/generateUUID.cjs.map +1 -1
- package/dist/utils/generateUUID.js +1 -1
- package/dist/utils/generateWebVitalID.cjs +9 -0
- package/dist/utils/generateWebVitalID.cjs.map +1 -0
- package/dist/utils/generateWebVitalID.d.cts +5 -0
- package/dist/utils/generateWebVitalID.d.cts.map +1 -0
- package/dist/utils/generateWebVitalID.d.ts +5 -0
- package/dist/utils/generateWebVitalID.d.ts.map +1 -0
- package/dist/utils/generateWebVitalID.js +8 -0
- package/dist/utils/generateWebVitalID.js.map +1 -0
- package/dist/utils/getIncrementedCount.cjs +6 -3
- package/dist/utils/getIncrementedCount.cjs.map +1 -1
- package/dist/utils/getIncrementedCount.js +5 -1
- package/dist/utils/getIncrementedCount.js.map +1 -1
- package/dist/utils/getVisibilityState.cjs +4 -5
- package/dist/utils/getVisibilityState.cjs.map +1 -1
- package/dist/utils/getVisibilityState.js +3 -4
- package/dist/utils/getVisibilityState.js.map +1 -1
- package/dist/utils/globalConfig.cjs +2 -3
- package/dist/utils/globalConfig.cjs.map +1 -1
- package/dist/utils/globalConfig.js +1 -1
- package/dist/utils/index.cjs +20 -16
- package/dist/utils/index.d.cts +4 -2
- package/dist/utils/index.d.ts +4 -5
- package/dist/utils/index.js +3 -2
- package/dist/utils/isDeviceIdEnabled.cjs +2 -3
- package/dist/utils/isDeviceIdEnabled.cjs.map +1 -1
- package/dist/utils/isDeviceIdEnabled.js +1 -1
- package/dist/utils/isDeviceIdEnabled.js.map +1 -1
- package/dist/utils/nsfConfigValidation.cjs +2 -3
- package/dist/utils/nsfConfigValidation.cjs.map +1 -1
- package/dist/utils/nsfConfigValidation.d.ts +0 -2
- package/dist/utils/nsfConfigValidation.d.ts.map +1 -1
- package/dist/utils/nsfConfigValidation.js +1 -1
- package/dist/utils/performanceObserver/index.cjs +4 -0
- package/dist/utils/performanceObserver/index.d.cts +2 -0
- package/dist/utils/performanceObserver/index.d.ts +2 -0
- package/dist/utils/performanceObserver/index.js +2 -0
- package/dist/utils/performanceObserver/performanceObserver.cjs +47 -0
- package/dist/utils/performanceObserver/performanceObserver.cjs.map +1 -0
- package/dist/utils/performanceObserver/performanceObserver.d.cts +23 -0
- package/dist/utils/performanceObserver/performanceObserver.d.cts.map +1 -0
- package/dist/utils/performanceObserver/performanceObserver.d.ts +23 -0
- package/dist/utils/performanceObserver/performanceObserver.d.ts.map +1 -0
- package/dist/utils/performanceObserver/performanceObserver.js +45 -0
- package/dist/utils/performanceObserver/performanceObserver.js.map +1 -0
- package/dist/utils/throttle.cjs +2 -3
- package/dist/utils/throttle.cjs.map +1 -1
- package/dist/utils/throttle.js +1 -1
- package/package.json +15 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstrumentationAbstract.js","names":[],"sources":["../../../src/instrumentations/InstrumentationAbstract/InstrumentationAbstract.ts"],"sourcesContent":["import type {\n DiagLogger,\n Meter,\n MeterProvider,\n Span,\n Tracer,\n TracerProvider,\n} from '@opentelemetry/api';\nimport { diag, metrics, trace } from '@opentelemetry/api';\nimport type { Logger } from '@opentelemetry/api-logs';\nimport { logs } from '@opentelemetry/api-logs';\nimport type {\n Instrumentation,\n InstrumentationConfig,\n InstrumentationModuleDefinition,\n SpanCustomizationHook,\n} from '@opentelemetry/instrumentation';\nimport type { LoggerProvider } from '@opentelemetry/sdk-logs';\n\n// copied directly from https://github.com/open-telemetry/opentelemetry-js/blob/90afa2850c0690f7a18ecc511c04927a3183490b/experimental/packages/opentelemetry-instrumentation/src/instrumentation.ts\n// to avoid importing internal and experimental code. Some unused blocks removed.\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport abstract class InstrumentationAbstract<\n ConfigType extends InstrumentationConfig = InstrumentationConfig,\n> implements Instrumentation<ConfigType>\n{\n protected _config: ConfigType = {} as ConfigType;\n protected _diag: DiagLogger;\n\n public constructor(\n public readonly instrumentationName: string,\n public readonly instrumentationVersion: string,\n config: ConfigType,\n ) {\n this.setConfig(config);\n\n this._diag = diag.createComponentLogger({\n namespace: instrumentationName,\n });\n\n this._tracer = trace.getTracer(instrumentationName, instrumentationVersion);\n this._meter = metrics.getMeter(instrumentationName, instrumentationVersion);\n this._logger = logs.getLogger(instrumentationName, instrumentationVersion);\n this._updateMetricInstruments();\n }\n\n private _tracer: Tracer;\n\n /* Returns tracer */\n protected get tracer(): Tracer {\n return this._tracer;\n }\n\n private _meter: Meter;\n\n /* Returns meter */\n protected get meter(): Meter {\n return this._meter;\n }\n\n private _logger: Logger;\n\n /* Returns logger */\n protected get logger(): Logger {\n return this._logger;\n }\n\n /**\n * @experimental\n *\n * Get module definitions defined by {@link init}.\n * This can be used for experimental compile-time instrumentation.\n *\n * @returns an array of {@link InstrumentationModuleDefinition}\n */\n public getModuleDefinitions(): InstrumentationModuleDefinition[] {\n const initResult = this.init() ?? [];\n if (!Array.isArray(initResult)) {\n return [initResult];\n }\n\n return initResult;\n }\n\n /* Disable plugin */\n public abstract disable(): void;\n\n /* Enable plugin */\n public abstract enable(): void;\n\n /* Returns InstrumentationConfig */\n public getConfig(): ConfigType {\n return this._config;\n }\n\n /**\n * Sets InstrumentationConfig to this plugin\n * @param config\n */\n public setConfig(config: ConfigType): void {\n // copy config first level properties to ensure they are immutable.\n // nested properties are not copied, thus are mutable from the outside.\n this._config = {\n enabled: true,\n ...config,\n };\n }\n\n /**\n * Sets LoggerProvider to this plugin\n * @param loggerProvider\n */\n public setLoggerProvider(loggerProvider: LoggerProvider): void {\n this._logger = loggerProvider.getLogger(\n this.instrumentationName,\n this.instrumentationVersion,\n );\n }\n\n /**\n * Sets MeterProvider to this plugin\n * @param meterProvider\n */\n public setMeterProvider(meterProvider: MeterProvider): void {\n this._meter = meterProvider.getMeter(\n this.instrumentationName,\n this.instrumentationVersion,\n );\n\n this._updateMetricInstruments();\n }\n\n /**\n * Sets TraceProvider to this plugin\n * @param tracerProvider\n */\n public setTracerProvider(tracerProvider: TracerProvider): void {\n this._tracer = tracerProvider.getTracer(\n this.instrumentationName,\n this.instrumentationVersion,\n );\n }\n\n /**\n * Init method in which plugin should define _modules and patches for\n * methods.\n *\n * Note: OTel uses `| void` but we use `| undefined` for semantic clarity.\n * `void` in union types is confusing because it mixes \"returns nothing\" with \"returns data or nothing\".\n * `undefined` better expresses the intent: this method may or may not return a value.\n */\n protected abstract init():\n | InstrumentationModuleDefinition\n | InstrumentationModuleDefinition[]\n | undefined;\n\n protected _updateMetricInstruments(): void {\n return;\n }\n\n /**\n * Execute span customization hook, if configured, and log any errors.\n * Any semantics of the trigger and info are defined by the specific instrumentation.\n * @param hookHandler The optional hook handler which the user has configured via instrumentation config\n * @param triggerName The name of the trigger for executing the hook for logging purposes\n * @param span The span to which the hook should be applied\n * @param info The info object to be passed to the hook, with useful data the hook may use\n */\n protected _runSpanCustomizationHook<SpanCustomizationInfoType>(\n hookHandler: SpanCustomizationHook<SpanCustomizationInfoType> | undefined,\n triggerName: string,\n span: Span,\n info: SpanCustomizationInfoType,\n ) {\n if (!hookHandler) {\n return;\n }\n\n try {\n hookHandler(span, info);\n } catch (e) {\n this._diag.error(\n `Error running span customization hook due to exception in handler`,\n { triggerName },\n e,\n );\n }\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"InstrumentationAbstract.js","names":[],"sources":["../../../src/instrumentations/InstrumentationAbstract/InstrumentationAbstract.ts"],"sourcesContent":["import type {\n DiagLogger,\n Meter,\n MeterProvider,\n Span,\n Tracer,\n TracerProvider,\n} from '@opentelemetry/api';\nimport { diag, metrics, trace } from '@opentelemetry/api';\nimport type { Logger } from '@opentelemetry/api-logs';\nimport { logs } from '@opentelemetry/api-logs';\nimport type {\n Instrumentation,\n InstrumentationConfig,\n InstrumentationModuleDefinition,\n SpanCustomizationHook,\n} from '@opentelemetry/instrumentation';\nimport type { LoggerProvider } from '@opentelemetry/sdk-logs';\n\n// copied directly from https://github.com/open-telemetry/opentelemetry-js/blob/90afa2850c0690f7a18ecc511c04927a3183490b/experimental/packages/opentelemetry-instrumentation/src/instrumentation.ts\n// to avoid importing internal and experimental code. Some unused blocks removed.\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport abstract class InstrumentationAbstract<\n ConfigType extends InstrumentationConfig = InstrumentationConfig,\n> implements Instrumentation<ConfigType>\n{\n protected _config: ConfigType = {} as ConfigType;\n protected _diag: DiagLogger;\n\n public constructor(\n public readonly instrumentationName: string,\n public readonly instrumentationVersion: string,\n config: ConfigType,\n ) {\n this.setConfig(config);\n\n this._diag = diag.createComponentLogger({\n namespace: instrumentationName,\n });\n\n this._tracer = trace.getTracer(instrumentationName, instrumentationVersion);\n this._meter = metrics.getMeter(instrumentationName, instrumentationVersion);\n this._logger = logs.getLogger(instrumentationName, instrumentationVersion);\n this._updateMetricInstruments();\n }\n\n private _tracer: Tracer;\n\n /* Returns tracer */\n protected get tracer(): Tracer {\n return this._tracer;\n }\n\n private _meter: Meter;\n\n /* Returns meter */\n protected get meter(): Meter {\n return this._meter;\n }\n\n private _logger: Logger;\n\n /* Returns logger */\n protected get logger(): Logger {\n return this._logger;\n }\n\n /**\n * @experimental\n *\n * Get module definitions defined by {@link init}.\n * This can be used for experimental compile-time instrumentation.\n *\n * @returns an array of {@link InstrumentationModuleDefinition}\n */\n public getModuleDefinitions(): InstrumentationModuleDefinition[] {\n const initResult = this.init() ?? [];\n if (!Array.isArray(initResult)) {\n return [initResult];\n }\n\n return initResult;\n }\n\n /* Disable plugin */\n public abstract disable(): void;\n\n /* Enable plugin */\n public abstract enable(): void;\n\n /* Returns InstrumentationConfig */\n public getConfig(): ConfigType {\n return this._config;\n }\n\n /**\n * Sets InstrumentationConfig to this plugin\n * @param config\n */\n public setConfig(config: ConfigType): void {\n // copy config first level properties to ensure they are immutable.\n // nested properties are not copied, thus are mutable from the outside.\n this._config = {\n enabled: true,\n ...config,\n };\n }\n\n /**\n * Sets LoggerProvider to this plugin\n * @param loggerProvider\n */\n public setLoggerProvider(loggerProvider: LoggerProvider): void {\n this._logger = loggerProvider.getLogger(\n this.instrumentationName,\n this.instrumentationVersion,\n );\n }\n\n /**\n * Sets MeterProvider to this plugin\n * @param meterProvider\n */\n public setMeterProvider(meterProvider: MeterProvider): void {\n this._meter = meterProvider.getMeter(\n this.instrumentationName,\n this.instrumentationVersion,\n );\n\n this._updateMetricInstruments();\n }\n\n /**\n * Sets TraceProvider to this plugin\n * @param tracerProvider\n */\n public setTracerProvider(tracerProvider: TracerProvider): void {\n this._tracer = tracerProvider.getTracer(\n this.instrumentationName,\n this.instrumentationVersion,\n );\n }\n\n /**\n * Init method in which plugin should define _modules and patches for\n * methods.\n *\n * Note: OTel uses `| void` but we use `| undefined` for semantic clarity.\n * `void` in union types is confusing because it mixes \"returns nothing\" with \"returns data or nothing\".\n * `undefined` better expresses the intent: this method may or may not return a value.\n */\n protected abstract init():\n | InstrumentationModuleDefinition\n | InstrumentationModuleDefinition[]\n | undefined;\n\n protected _updateMetricInstruments(): void {\n return;\n }\n\n /**\n * Execute span customization hook, if configured, and log any errors.\n * Any semantics of the trigger and info are defined by the specific instrumentation.\n * @param hookHandler The optional hook handler which the user has configured via instrumentation config\n * @param triggerName The name of the trigger for executing the hook for logging purposes\n * @param span The span to which the hook should be applied\n * @param info The info object to be passed to the hook, with useful data the hook may use\n */\n protected _runSpanCustomizationHook<SpanCustomizationInfoType>(\n hookHandler: SpanCustomizationHook<SpanCustomizationInfoType> | undefined,\n triggerName: string,\n span: Span,\n info: SpanCustomizationInfoType,\n ) {\n if (!hookHandler) {\n return;\n }\n\n try {\n hookHandler(span, info);\n } catch (e) {\n this._diag.error(\n `Error running span customization hook due to exception in handler`,\n { triggerName },\n e,\n );\n }\n }\n}\n"],"mappings":";;;AAoCA,IAAsB,0BAAtB,MAGA;CACE,UAAgC,EAAE;CAClC;CAEA,YACE,qBACA,wBACA,QACA;AAHgB,OAAA,sBAAA;AACA,OAAA,yBAAA;AAGhB,OAAK,UAAU,OAAO;AAEtB,OAAK,QAAQ,KAAK,sBAAsB,EACtC,WAAW,qBACZ,CAAC;AAEF,OAAK,UAAU,MAAM,UAAU,qBAAqB,uBAAuB;AAC3E,OAAK,SAAS,QAAQ,SAAS,qBAAqB,uBAAuB;AAC3E,OAAK,UAAU,KAAK,UAAU,qBAAqB,uBAAuB;AAC1E,OAAK,0BAA0B;;CAGjC;CAGA,IAAc,SAAiB;AAC7B,SAAO,KAAK;;CAGd;CAGA,IAAc,QAAe;AAC3B,SAAO,KAAK;;CAGd;CAGA,IAAc,SAAiB;AAC7B,SAAO,KAAK;;;;;;;;;;CAWd,uBAAiE;EAC/D,MAAM,aAAa,KAAK,MAAM,IAAI,EAAE;AACpC,MAAI,CAAC,MAAM,QAAQ,WAAW,CAC5B,QAAO,CAAC,WAAW;AAGrB,SAAO;;CAUT,YAA+B;AAC7B,SAAO,KAAK;;;;;;CAOd,UAAiB,QAA0B;AAGzC,OAAK,UAAU;GACb,SAAS;GACT,GAAG;GACJ;;;;;;CAOH,kBAAyB,gBAAsC;AAC7D,OAAK,UAAU,eAAe,UAC5B,KAAK,qBACL,KAAK,uBACN;;;;;;CAOH,iBAAwB,eAAoC;AAC1D,OAAK,SAAS,cAAc,SAC1B,KAAK,qBACL,KAAK,uBACN;AAED,OAAK,0BAA0B;;;;;;CAOjC,kBAAyB,gBAAsC;AAC7D,OAAK,UAAU,eAAe,UAC5B,KAAK,qBACL,KAAK,uBACN;;CAgBH,2BAA2C;;;;;;;;;CAY3C,0BACE,aACA,aACA,MACA,MACA;AACA,MAAI,CAAC,YACH;AAGF,MAAI;AACF,eAAY,MAAM,KAAK;WAChB,GAAG;AACV,QAAK,MAAM,MACT,qEACA,EAAE,aAAa,EACf,EACD"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
const require_instrumentations_InstrumentationAbstract_InstrumentationAbstract = require(
|
|
3
|
-
|
|
4
|
-
exports.InstrumentationAbstract = require_instrumentations_InstrumentationAbstract_InstrumentationAbstract.InstrumentationAbstract;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_instrumentations_InstrumentationAbstract_InstrumentationAbstract = require("./InstrumentationAbstract.cjs");
|
|
3
|
+
exports.InstrumentationAbstract = require_instrumentations_InstrumentationAbstract_InstrumentationAbstract.InstrumentationAbstract;
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
const require_utils_PerformanceManager_OTelPerformanceManager = require(
|
|
3
|
-
const require_api_logs_logAPI = require(
|
|
4
|
-
const require_api_sessions_sessionAPI = require(
|
|
5
|
-
const require_instrumentations_InstrumentationAbstract_InstrumentationAbstract = require(
|
|
6
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_utils_PerformanceManager_OTelPerformanceManager = require("../../utils/PerformanceManager/OTelPerformanceManager.cjs");
|
|
3
|
+
const require_api_logs_logAPI = require("../../api-logs/logAPI.cjs");
|
|
4
|
+
const require_api_sessions_sessionAPI = require("../../api-sessions/sessionAPI.cjs");
|
|
5
|
+
const require_instrumentations_InstrumentationAbstract_InstrumentationAbstract = require("../InstrumentationAbstract/InstrumentationAbstract.cjs");
|
|
7
6
|
//#region src/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.ts
|
|
8
7
|
var MXLInstrumentationBase = class extends require_instrumentations_InstrumentationAbstract_InstrumentationAbstract.InstrumentationAbstract {
|
|
9
8
|
_sessionManager;
|
|
10
9
|
_logManager;
|
|
10
|
+
_limitManager;
|
|
11
11
|
_perf;
|
|
12
|
-
constructor({ instrumentationName, instrumentationVersion, config, diag, perf }) {
|
|
12
|
+
constructor({ instrumentationName, instrumentationVersion, config, diag, perf, limitManager }) {
|
|
13
13
|
super(instrumentationName, instrumentationVersion, config);
|
|
14
14
|
if (diag) this._diag = diag;
|
|
15
15
|
this._perf = perf ?? new require_utils_PerformanceManager_OTelPerformanceManager.OTelPerformanceManager();
|
|
16
16
|
this._sessionManager = require_api_sessions_sessionAPI.session.getSpanSessionManager();
|
|
17
17
|
this._logManager = require_api_logs_logAPI.log.getLogManager();
|
|
18
|
+
this._limitManager = limitManager;
|
|
19
|
+
}
|
|
20
|
+
/** Optional cap manager for timings and similar high-volume probes. */
|
|
21
|
+
get limitManager() {
|
|
22
|
+
return this._limitManager;
|
|
18
23
|
}
|
|
19
24
|
get sessionManager() {
|
|
20
25
|
return this._sessionManager;
|
|
@@ -26,6 +31,9 @@ var MXLInstrumentationBase = class extends require_instrumentations_Instrumentat
|
|
|
26
31
|
return this._perf;
|
|
27
32
|
}
|
|
28
33
|
init() {}
|
|
34
|
+
setLimitManager(limitManager) {
|
|
35
|
+
this._limitManager = limitManager;
|
|
36
|
+
}
|
|
29
37
|
setLogManager(logManager) {
|
|
30
38
|
this._logManager = logManager;
|
|
31
39
|
}
|
|
@@ -33,7 +41,7 @@ var MXLInstrumentationBase = class extends require_instrumentations_Instrumentat
|
|
|
33
41
|
this._sessionManager = sessionManager;
|
|
34
42
|
}
|
|
35
43
|
};
|
|
36
|
-
|
|
37
44
|
//#endregion
|
|
38
45
|
exports.MXLInstrumentationBase = MXLInstrumentationBase;
|
|
46
|
+
|
|
39
47
|
//# sourceMappingURL=MXLInstrumentationBase.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MXLInstrumentationBase.cjs","names":["InstrumentationAbstract","OTelPerformanceManager","session","log"],"sources":["../../../src/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.ts"],"sourcesContent":["import type {\n Instrumentation,\n InstrumentationConfig,\n InstrumentationModuleDefinition,\n} from '@opentelemetry/instrumentation';\nimport type { LogManager } from '../../api-logs/index.ts';\nimport { log } from '../../api-logs/index.ts';\nimport type { SpanSessionManager } from '../../api-sessions/index.ts';\nimport { session } from '../../api-sessions/index.ts';\nimport type { PerformanceManager } from '../../utils/index.ts';\nimport { OTelPerformanceManager } from '../../utils/index.ts';\nimport { InstrumentationAbstract } from '../InstrumentationAbstract/index.ts';\nimport type { MXLInstrumentationBaseArgs } from './types.ts';\n\nexport abstract class MXLInstrumentationBase<\n ConfigType extends InstrumentationConfig = InstrumentationConfig,\n >\n extends InstrumentationAbstract<ConfigType>\n implements Instrumentation<ConfigType>\n{\n private _sessionManager: SpanSessionManager;\n private _logManager: LogManager;\n private readonly _perf: PerformanceManager;\n\n protected constructor({\n instrumentationName,\n instrumentationVersion,\n config,\n diag,\n perf,\n }: MXLInstrumentationBaseArgs<ConfigType>) {\n super(instrumentationName, instrumentationVersion, config);\n // optionally override the diag logger from the base class\n if (diag) {\n this._diag = diag;\n }\n this._perf = perf ?? new OTelPerformanceManager();\n this._sessionManager = session.getSpanSessionManager();\n this._logManager = log.getLogManager();\n }\n\n /* Returns session provider */\n protected get sessionManager(): SpanSessionManager {\n return this._sessionManager;\n }\n\n /* Returns log manager */\n protected get logManager(): LogManager {\n return this._logManager;\n }\n\n /* Returns the performance manager */\n protected get perf(): PerformanceManager {\n return this._perf;\n }\n\n // no-op\n // Note: OTel uses `| void` but we use `| undefined` for semantic clarity.\n // `void` in union types is confusing because it mixes \"returns nothing\" with \"returns data or nothing\".\n // `undefined` better expresses the intent: this method may or may not return a value.\n protected override init():\n | InstrumentationModuleDefinition\n | InstrumentationModuleDefinition[]\n | undefined {\n return;\n }\n\n public setLogManager(logManager: LogManager): void {\n this._logManager = logManager;\n }\n\n public setSessionManager(sessionManager: SpanSessionManager): void {\n this._sessionManager = sessionManager;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MXLInstrumentationBase.cjs","names":["InstrumentationAbstract","OTelPerformanceManager","session","log"],"sources":["../../../src/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.ts"],"sourcesContent":["import type {\n Instrumentation,\n InstrumentationConfig,\n InstrumentationModuleDefinition,\n} from '@opentelemetry/instrumentation';\nimport type { LogManager } from '../../api-logs/index.ts';\nimport { log } from '../../api-logs/index.ts';\nimport type { SpanSessionManager } from '../../api-sessions/index.ts';\nimport { session } from '../../api-sessions/index.ts';\nimport type { LimitManagerInternal } from '../../managers/MXLLimitManager/types.ts';\nimport type { PerformanceManager } from '../../utils/index.ts';\nimport { OTelPerformanceManager } from '../../utils/index.ts';\nimport { InstrumentationAbstract } from '../InstrumentationAbstract/index.ts';\nimport type { MXLInstrumentationBaseArgs } from './types.ts';\n\nexport abstract class MXLInstrumentationBase<\n ConfigType extends InstrumentationConfig = InstrumentationConfig,\n >\n extends InstrumentationAbstract<ConfigType>\n implements Instrumentation<ConfigType>\n{\n private _sessionManager: SpanSessionManager;\n private _logManager: LogManager;\n private _limitManager: LimitManagerInternal | undefined;\n private readonly _perf: PerformanceManager;\n\n protected constructor({\n instrumentationName,\n instrumentationVersion,\n config,\n diag,\n perf,\n limitManager,\n }: MXLInstrumentationBaseArgs<ConfigType>) {\n super(instrumentationName, instrumentationVersion, config);\n // optionally override the diag logger from the base class\n if (diag) {\n this._diag = diag;\n }\n this._perf = perf ?? new OTelPerformanceManager();\n this._sessionManager = session.getSpanSessionManager();\n this._logManager = log.getLogManager();\n this._limitManager = limitManager;\n }\n\n /** Optional cap manager for timings and similar high-volume probes. */\n\n protected get limitManager(): LimitManagerInternal | undefined {\n return this._limitManager;\n }\n /* Returns session provider */\n protected get sessionManager(): SpanSessionManager {\n return this._sessionManager;\n }\n\n /* Returns log manager */\n protected get logManager(): LogManager {\n return this._logManager;\n }\n\n /* Returns the performance manager */\n protected get perf(): PerformanceManager {\n return this._perf;\n }\n\n // no-op\n // Note: OTel uses `| void` but we use `| undefined` for semantic clarity.\n // `void` in union types is confusing because it mixes \"returns nothing\" with \"returns data or nothing\".\n // `undefined` better expresses the intent: this method may or may not return a value.\n protected override init():\n | InstrumentationModuleDefinition\n | InstrumentationModuleDefinition[]\n | undefined {\n return;\n }\n\n public setLimitManager(limitManager: LimitManagerInternal): void {\n this._limitManager = limitManager;\n }\n\n public setLogManager(logManager: LogManager): void {\n this._logManager = logManager;\n }\n\n public setSessionManager(sessionManager: SpanSessionManager): void {\n this._sessionManager = sessionManager;\n }\n}\n"],"mappings":";;;;;;AAeA,IAAsB,yBAAtB,cAGUA,yEAAAA,wBAEV;CACE;CACA;CACA;CACA;CAEA,YAAsB,EACpB,qBACA,wBACA,QACA,MACA,MACA,gBACyC;AACzC,QAAM,qBAAqB,wBAAwB,OAAO;AAE1D,MAAI,KACF,MAAK,QAAQ;AAEf,OAAK,QAAQ,QAAQ,IAAIC,wDAAAA,wBAAwB;AACjD,OAAK,kBAAkBC,gCAAAA,QAAQ,uBAAuB;AACtD,OAAK,cAAcC,wBAAAA,IAAI,eAAe;AACtC,OAAK,gBAAgB;;;CAKvB,IAAc,eAAiD;AAC7D,SAAO,KAAK;;CAGd,IAAc,iBAAqC;AACjD,SAAO,KAAK;;CAId,IAAc,aAAyB;AACrC,SAAO,KAAK;;CAId,IAAc,OAA2B;AACvC,SAAO,KAAK;;CAOd,OAGc;CAId,gBAAuB,cAA0C;AAC/D,OAAK,gBAAgB;;CAGvB,cAAqB,YAA8B;AACjD,OAAK,cAAc;;CAGrB,kBAAyB,gBAA0C;AACjE,OAAK,kBAAkB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LogManager } from "../../api-logs/manager/types.cjs";
|
|
2
|
+
import { LimitManagerInternal } from "../../managers/MXLLimitManager/types.cjs";
|
|
2
3
|
import { PerformanceManager } from "../../utils/PerformanceManager/types.cjs";
|
|
3
4
|
import { InstrumentationAbstract } from "../InstrumentationAbstract/InstrumentationAbstract.cjs";
|
|
4
5
|
import { MXLInstrumentationBaseArgs } from "./types.cjs";
|
|
@@ -9,18 +10,23 @@ import { Instrumentation, InstrumentationConfig, InstrumentationModuleDefinition
|
|
|
9
10
|
declare abstract class MXLInstrumentationBase<ConfigType extends InstrumentationConfig = InstrumentationConfig> extends InstrumentationAbstract<ConfigType> implements Instrumentation<ConfigType> {
|
|
10
11
|
private _sessionManager;
|
|
11
12
|
private _logManager;
|
|
13
|
+
private _limitManager;
|
|
12
14
|
private readonly _perf;
|
|
13
15
|
protected constructor({
|
|
14
16
|
instrumentationName,
|
|
15
17
|
instrumentationVersion,
|
|
16
18
|
config,
|
|
17
19
|
diag,
|
|
18
|
-
perf
|
|
20
|
+
perf,
|
|
21
|
+
limitManager
|
|
19
22
|
}: MXLInstrumentationBaseArgs<ConfigType>);
|
|
23
|
+
/** Optional cap manager for timings and similar high-volume probes. */
|
|
24
|
+
protected get limitManager(): LimitManagerInternal | undefined;
|
|
20
25
|
protected get sessionManager(): SpanSessionManager;
|
|
21
26
|
protected get logManager(): LogManager;
|
|
22
27
|
protected get perf(): PerformanceManager;
|
|
23
28
|
protected init(): InstrumentationModuleDefinition | InstrumentationModuleDefinition[] | undefined;
|
|
29
|
+
setLimitManager(limitManager: LimitManagerInternal): void;
|
|
24
30
|
setLogManager(logManager: LogManager): void;
|
|
25
31
|
setSessionManager(sessionManager: SpanSessionManager): void;
|
|
26
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MXLInstrumentationBase.d.cts","names":[],"sources":["../../../src/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MXLInstrumentationBase.d.cts","names":[],"sources":["../../../src/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.ts"],"mappings":";;;;;;;;;uBAesB,sBAAA,oBACC,qBAAA,GAAwB,qBAAA,UAErC,uBAAA,CAAwB,UAAA,aACrB,eAAA,CAAgB,UAAA;EAAA,QAEnB,eAAA;EAAA,QACA,WAAA;EAAA,QACA,aAAA;EAAA,iBACS,KAAA;EAAA,UAER,WAAA,CAAA;IACP,mBAAA;IACA,sBAAA;IACA,MAAA;IACA,IAAA;IACA,IAAA;IACA;EAAA,GACC,0BAAA,CAA2B,UAAA;EAlBV;EAAA,cAgCN,YAAA,CAAA,GAAgB,oBAAA;EAAA,cAIhB,cAAA,CAAA,GAAkB,kBAAA;EAAA,cAKlB,UAAA,CAAA,GAAc,UAAA;EAAA,cAKd,IAAA,CAAA,GAAQ,kBAAA;EAAA,UAQH,IAAA,CAAA,GACf,+BAAA,GACA,+BAAA;EAKG,eAAA,CAAgB,YAAA,EAAc,oBAAA;EAI9B,aAAA,CAAc,UAAA,EAAY,UAAA;EAI1B,iBAAA,CAAkB,cAAA,EAAgB,kBAAA;AAAA"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { LogManager } from "../../api-logs/manager/types.js";
|
|
2
|
-
import "../../
|
|
3
|
-
import "../../api-sessions/index.js";
|
|
2
|
+
import { LimitManagerInternal } from "../../managers/MXLLimitManager/types.js";
|
|
4
3
|
import { PerformanceManager } from "../../utils/PerformanceManager/types.js";
|
|
5
|
-
import "../../utils/index.js";
|
|
6
4
|
import { InstrumentationAbstract } from "../InstrumentationAbstract/InstrumentationAbstract.js";
|
|
7
|
-
import "../InstrumentationAbstract/index.js";
|
|
8
5
|
import { MXLInstrumentationBaseArgs } from "./types.js";
|
|
9
6
|
import { SpanSessionManager } from "../../api-sessions/manager/types.js";
|
|
10
7
|
import { Instrumentation, InstrumentationConfig, InstrumentationModuleDefinition } from "@opentelemetry/instrumentation";
|
|
@@ -13,18 +10,23 @@ import { Instrumentation, InstrumentationConfig, InstrumentationModuleDefinition
|
|
|
13
10
|
declare abstract class MXLInstrumentationBase<ConfigType extends InstrumentationConfig = InstrumentationConfig> extends InstrumentationAbstract<ConfigType> implements Instrumentation<ConfigType> {
|
|
14
11
|
private _sessionManager;
|
|
15
12
|
private _logManager;
|
|
13
|
+
private _limitManager;
|
|
16
14
|
private readonly _perf;
|
|
17
15
|
protected constructor({
|
|
18
16
|
instrumentationName,
|
|
19
17
|
instrumentationVersion,
|
|
20
18
|
config,
|
|
21
19
|
diag,
|
|
22
|
-
perf
|
|
20
|
+
perf,
|
|
21
|
+
limitManager
|
|
23
22
|
}: MXLInstrumentationBaseArgs<ConfigType>);
|
|
23
|
+
/** Optional cap manager for timings and similar high-volume probes. */
|
|
24
|
+
protected get limitManager(): LimitManagerInternal | undefined;
|
|
24
25
|
protected get sessionManager(): SpanSessionManager;
|
|
25
26
|
protected get logManager(): LogManager;
|
|
26
27
|
protected get perf(): PerformanceManager;
|
|
27
28
|
protected init(): InstrumentationModuleDefinition | InstrumentationModuleDefinition[] | undefined;
|
|
29
|
+
setLimitManager(limitManager: LimitManagerInternal): void;
|
|
28
30
|
setLogManager(logManager: LogManager): void;
|
|
29
31
|
setSessionManager(sessionManager: SpanSessionManager): void;
|
|
30
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MXLInstrumentationBase.d.ts","names":[],"sources":["../../../src/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MXLInstrumentationBase.d.ts","names":[],"sources":["../../../src/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.ts"],"mappings":";;;;;;;;;uBAesB,sBAAA,oBACC,qBAAA,GAAwB,qBAAA,UAErC,uBAAA,CAAwB,UAAA,aACrB,eAAA,CAAgB,UAAA;EAAA,QAEnB,eAAA;EAAA,QACA,WAAA;EAAA,QACA,aAAA;EAAA,iBACS,KAAA;EAAA,UAER,WAAA,CAAA;IACP,mBAAA;IACA,sBAAA;IACA,MAAA;IACA,IAAA;IACA,IAAA;IACA;EAAA,GACC,0BAAA,CAA2B,UAAA;EAlBV;EAAA,cAgCN,YAAA,CAAA,GAAgB,oBAAA;EAAA,cAIhB,cAAA,CAAA,GAAkB,kBAAA;EAAA,cAKlB,UAAA,CAAA,GAAc,UAAA;EAAA,cAKd,IAAA,CAAA,GAAQ,kBAAA;EAAA,UAQH,IAAA,CAAA,GACf,+BAAA,GACA,+BAAA;EAKG,eAAA,CAAgB,YAAA,EAAc,oBAAA;EAI9B,aAAA,CAAc,UAAA,EAAY,UAAA;EAI1B,iBAAA,CAAkB,cAAA,EAAgB,kBAAA;AAAA"}
|
|
@@ -2,18 +2,23 @@ import { OTelPerformanceManager } from "../../utils/PerformanceManager/OTelPerfo
|
|
|
2
2
|
import { log } from "../../api-logs/logAPI.js";
|
|
3
3
|
import { session } from "../../api-sessions/sessionAPI.js";
|
|
4
4
|
import { InstrumentationAbstract } from "../InstrumentationAbstract/InstrumentationAbstract.js";
|
|
5
|
-
|
|
6
5
|
//#region src/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.ts
|
|
7
6
|
var MXLInstrumentationBase = class extends InstrumentationAbstract {
|
|
8
7
|
_sessionManager;
|
|
9
8
|
_logManager;
|
|
9
|
+
_limitManager;
|
|
10
10
|
_perf;
|
|
11
|
-
constructor({ instrumentationName, instrumentationVersion, config, diag, perf }) {
|
|
11
|
+
constructor({ instrumentationName, instrumentationVersion, config, diag, perf, limitManager }) {
|
|
12
12
|
super(instrumentationName, instrumentationVersion, config);
|
|
13
13
|
if (diag) this._diag = diag;
|
|
14
14
|
this._perf = perf ?? new OTelPerformanceManager();
|
|
15
15
|
this._sessionManager = session.getSpanSessionManager();
|
|
16
16
|
this._logManager = log.getLogManager();
|
|
17
|
+
this._limitManager = limitManager;
|
|
18
|
+
}
|
|
19
|
+
/** Optional cap manager for timings and similar high-volume probes. */
|
|
20
|
+
get limitManager() {
|
|
21
|
+
return this._limitManager;
|
|
17
22
|
}
|
|
18
23
|
get sessionManager() {
|
|
19
24
|
return this._sessionManager;
|
|
@@ -25,6 +30,9 @@ var MXLInstrumentationBase = class extends InstrumentationAbstract {
|
|
|
25
30
|
return this._perf;
|
|
26
31
|
}
|
|
27
32
|
init() {}
|
|
33
|
+
setLimitManager(limitManager) {
|
|
34
|
+
this._limitManager = limitManager;
|
|
35
|
+
}
|
|
28
36
|
setLogManager(logManager) {
|
|
29
37
|
this._logManager = logManager;
|
|
30
38
|
}
|
|
@@ -32,7 +40,7 @@ var MXLInstrumentationBase = class extends InstrumentationAbstract {
|
|
|
32
40
|
this._sessionManager = sessionManager;
|
|
33
41
|
}
|
|
34
42
|
};
|
|
35
|
-
|
|
36
43
|
//#endregion
|
|
37
44
|
export { MXLInstrumentationBase };
|
|
45
|
+
|
|
38
46
|
//# sourceMappingURL=MXLInstrumentationBase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MXLInstrumentationBase.js","names":[],"sources":["../../../src/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.ts"],"sourcesContent":["import type {\n Instrumentation,\n InstrumentationConfig,\n InstrumentationModuleDefinition,\n} from '@opentelemetry/instrumentation';\nimport type { LogManager } from '../../api-logs/index.ts';\nimport { log } from '../../api-logs/index.ts';\nimport type { SpanSessionManager } from '../../api-sessions/index.ts';\nimport { session } from '../../api-sessions/index.ts';\nimport type { PerformanceManager } from '../../utils/index.ts';\nimport { OTelPerformanceManager } from '../../utils/index.ts';\nimport { InstrumentationAbstract } from '../InstrumentationAbstract/index.ts';\nimport type { MXLInstrumentationBaseArgs } from './types.ts';\n\nexport abstract class MXLInstrumentationBase<\n ConfigType extends InstrumentationConfig = InstrumentationConfig,\n >\n extends InstrumentationAbstract<ConfigType>\n implements Instrumentation<ConfigType>\n{\n private _sessionManager: SpanSessionManager;\n private _logManager: LogManager;\n private readonly _perf: PerformanceManager;\n\n protected constructor({\n instrumentationName,\n instrumentationVersion,\n config,\n diag,\n perf,\n }: MXLInstrumentationBaseArgs<ConfigType>) {\n super(instrumentationName, instrumentationVersion, config);\n // optionally override the diag logger from the base class\n if (diag) {\n this._diag = diag;\n }\n this._perf = perf ?? new OTelPerformanceManager();\n this._sessionManager = session.getSpanSessionManager();\n this._logManager = log.getLogManager();\n }\n\n /* Returns session provider */\n protected get sessionManager(): SpanSessionManager {\n return this._sessionManager;\n }\n\n /* Returns log manager */\n protected get logManager(): LogManager {\n return this._logManager;\n }\n\n /* Returns the performance manager */\n protected get perf(): PerformanceManager {\n return this._perf;\n }\n\n // no-op\n // Note: OTel uses `| void` but we use `| undefined` for semantic clarity.\n // `void` in union types is confusing because it mixes \"returns nothing\" with \"returns data or nothing\".\n // `undefined` better expresses the intent: this method may or may not return a value.\n protected override init():\n | InstrumentationModuleDefinition\n | InstrumentationModuleDefinition[]\n | undefined {\n return;\n }\n\n public setLogManager(logManager: LogManager): void {\n this._logManager = logManager;\n }\n\n public setSessionManager(sessionManager: SpanSessionManager): void {\n this._sessionManager = sessionManager;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MXLInstrumentationBase.js","names":[],"sources":["../../../src/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.ts"],"sourcesContent":["import type {\n Instrumentation,\n InstrumentationConfig,\n InstrumentationModuleDefinition,\n} from '@opentelemetry/instrumentation';\nimport type { LogManager } from '../../api-logs/index.ts';\nimport { log } from '../../api-logs/index.ts';\nimport type { SpanSessionManager } from '../../api-sessions/index.ts';\nimport { session } from '../../api-sessions/index.ts';\nimport type { LimitManagerInternal } from '../../managers/MXLLimitManager/types.ts';\nimport type { PerformanceManager } from '../../utils/index.ts';\nimport { OTelPerformanceManager } from '../../utils/index.ts';\nimport { InstrumentationAbstract } from '../InstrumentationAbstract/index.ts';\nimport type { MXLInstrumentationBaseArgs } from './types.ts';\n\nexport abstract class MXLInstrumentationBase<\n ConfigType extends InstrumentationConfig = InstrumentationConfig,\n >\n extends InstrumentationAbstract<ConfigType>\n implements Instrumentation<ConfigType>\n{\n private _sessionManager: SpanSessionManager;\n private _logManager: LogManager;\n private _limitManager: LimitManagerInternal | undefined;\n private readonly _perf: PerformanceManager;\n\n protected constructor({\n instrumentationName,\n instrumentationVersion,\n config,\n diag,\n perf,\n limitManager,\n }: MXLInstrumentationBaseArgs<ConfigType>) {\n super(instrumentationName, instrumentationVersion, config);\n // optionally override the diag logger from the base class\n if (diag) {\n this._diag = diag;\n }\n this._perf = perf ?? new OTelPerformanceManager();\n this._sessionManager = session.getSpanSessionManager();\n this._logManager = log.getLogManager();\n this._limitManager = limitManager;\n }\n\n /** Optional cap manager for timings and similar high-volume probes. */\n\n protected get limitManager(): LimitManagerInternal | undefined {\n return this._limitManager;\n }\n /* Returns session provider */\n protected get sessionManager(): SpanSessionManager {\n return this._sessionManager;\n }\n\n /* Returns log manager */\n protected get logManager(): LogManager {\n return this._logManager;\n }\n\n /* Returns the performance manager */\n protected get perf(): PerformanceManager {\n return this._perf;\n }\n\n // no-op\n // Note: OTel uses `| void` but we use `| undefined` for semantic clarity.\n // `void` in union types is confusing because it mixes \"returns nothing\" with \"returns data or nothing\".\n // `undefined` better expresses the intent: this method may or may not return a value.\n protected override init():\n | InstrumentationModuleDefinition\n | InstrumentationModuleDefinition[]\n | undefined {\n return;\n }\n\n public setLimitManager(limitManager: LimitManagerInternal): void {\n this._limitManager = limitManager;\n }\n\n public setLogManager(logManager: LogManager): void {\n this._logManager = logManager;\n }\n\n public setSessionManager(sessionManager: SpanSessionManager): void {\n this._sessionManager = sessionManager;\n }\n}\n"],"mappings":";;;;;AAeA,IAAsB,yBAAtB,cAGU,wBAEV;CACE;CACA;CACA;CACA;CAEA,YAAsB,EACpB,qBACA,wBACA,QACA,MACA,MACA,gBACyC;AACzC,QAAM,qBAAqB,wBAAwB,OAAO;AAE1D,MAAI,KACF,MAAK,QAAQ;AAEf,OAAK,QAAQ,QAAQ,IAAI,wBAAwB;AACjD,OAAK,kBAAkB,QAAQ,uBAAuB;AACtD,OAAK,cAAc,IAAI,eAAe;AACtC,OAAK,gBAAgB;;;CAKvB,IAAc,eAAiD;AAC7D,SAAO,KAAK;;CAGd,IAAc,iBAAqC;AACjD,SAAO,KAAK;;CAId,IAAc,aAAyB;AACrC,SAAO,KAAK;;CAId,IAAc,OAA2B;AACvC,SAAO,KAAK;;CAOd,OAGc;CAId,gBAAuB,cAA0C;AAC/D,OAAK,gBAAgB;;CAGvB,cAAqB,YAA8B;AACjD,OAAK,cAAc;;CAGrB,kBAAyB,gBAA0C;AACjE,OAAK,kBAAkB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
const require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase = require(
|
|
3
|
-
|
|
4
|
-
exports.MXLInstrumentationBase = require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase.MXLInstrumentationBase;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase = require("./MXLInstrumentationBase.cjs");
|
|
3
|
+
exports.MXLInstrumentationBase = require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase.MXLInstrumentationBase;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LimitManagerInternal } from "../../managers/MXLLimitManager/types.cjs";
|
|
1
2
|
import { PerformanceManager } from "../../utils/PerformanceManager/types.cjs";
|
|
2
3
|
import { DiagLogger } from "@opentelemetry/api";
|
|
3
4
|
import { InstrumentationConfig } from "@opentelemetry/instrumentation";
|
|
@@ -9,6 +10,8 @@ interface MXLInstrumentationBaseArgs<ConfigType extends InstrumentationConfig =
|
|
|
9
10
|
config: ConfigType;
|
|
10
11
|
diag?: DiagLogger;
|
|
11
12
|
perf?: PerformanceManager;
|
|
13
|
+
/** When set before global registration, participates in capped resource/timing emits. */
|
|
14
|
+
limitManager?: LimitManagerInternal;
|
|
12
15
|
}
|
|
13
16
|
//#endregion
|
|
14
17
|
export { MXLInstrumentationBaseArgs };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/instrumentations/MXLInstrumentationBase/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/instrumentations/MXLInstrumentationBase/types.ts"],"mappings":";;;;;;UAKiB,0BAAA,oBACI,qBAAA,GAAwB,qBAAA;EAE3C,mBAAA;EACA,sBAAA;EACA,MAAA,EAAQ,UAAA;EACR,IAAA,GAAO,UAAA;EACP,IAAA,GAAO,kBAAA;EANY;EASnB,YAAA,GAAe,oBAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { LimitManagerInternal } from "../../managers/MXLLimitManager/types.js";
|
|
1
2
|
import { PerformanceManager } from "../../utils/PerformanceManager/types.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
3
|
import { DiagLogger } from "@opentelemetry/api";
|
|
4
4
|
import { InstrumentationConfig } from "@opentelemetry/instrumentation";
|
|
5
5
|
|
|
@@ -10,6 +10,8 @@ interface MXLInstrumentationBaseArgs<ConfigType extends InstrumentationConfig =
|
|
|
10
10
|
config: ConfigType;
|
|
11
11
|
diag?: DiagLogger;
|
|
12
12
|
perf?: PerformanceManager;
|
|
13
|
+
/** When set before global registration, participates in capped resource/timing emits. */
|
|
14
|
+
limitManager?: LimitManagerInternal;
|
|
13
15
|
}
|
|
14
16
|
//#endregion
|
|
15
17
|
export { MXLInstrumentationBaseArgs };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/instrumentations/MXLInstrumentationBase/types.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/instrumentations/MXLInstrumentationBase/types.ts"],"mappings":";;;;;;UAKiB,0BAAA,oBACI,qBAAA,GAAwB,qBAAA;EAE3C,mBAAA;EACA,sBAAA;EACA,MAAA,EAAQ,UAAA;EACR,IAAA,GAAO,UAAA;EACP,IAAA,GAAO,kBAAA;EANY;EASnB,YAAA,GAAe,oBAAA;AAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
const require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase = require(
|
|
3
|
-
const require_instrumentations_clicks_ClicksInstrumentation_utils = require(
|
|
4
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase = require("../../MXLInstrumentationBase/MXLInstrumentationBase.cjs");
|
|
3
|
+
const require_instrumentations_clicks_ClicksInstrumentation_utils = require("./utils.cjs");
|
|
5
4
|
//#region src/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.ts
|
|
6
5
|
var ClicksInstrumentation = class extends require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase.MXLInstrumentationBase {
|
|
7
6
|
_onClickHandler;
|
|
@@ -38,7 +37,7 @@ var ClicksInstrumentation = class extends require_instrumentations_MXLInstrument
|
|
|
38
37
|
document.addEventListener("click", this._onClickHandler);
|
|
39
38
|
}
|
|
40
39
|
};
|
|
41
|
-
|
|
42
40
|
//#endregion
|
|
43
41
|
exports.ClicksInstrumentation = ClicksInstrumentation;
|
|
42
|
+
|
|
44
43
|
//# sourceMappingURL=ClicksInstrumentation.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClicksInstrumentation.cjs","names":["MXLInstrumentationBase","getHTMLElementFriendlyName"],"sources":["../../../../src/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.ts"],"sourcesContent":["/*\n This instrumentation is taking code from here as a starting point:\n https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts\n\n But not using that instrumentation directly because:\n\n 1) We want to record clicks as span events on the Session span\n 2) There is a bug with the instrumentation that causes a large number of spans to be created for a single click\n when zone context isn't available. To avoid the bug we take a simpler approach here and add a listener directly\n to `document` rather than trying to patch the `addEventListener` method on the prototype, this does mean we miss\n recording click events for which `stopPropagation` is called. See https://github.com/open-telemetry/opentelemetry-js-contrib/issues/1368\n */\n\nimport { MXLInstrumentationBase } from '../../MXLInstrumentationBase/index.ts';\nimport type { ClicksInstrumentationArgs } from './types.ts';\n\nimport { getHTMLElementFriendlyName } from './utils.ts';\n\nexport class ClicksInstrumentation extends MXLInstrumentationBase {\n private readonly _onClickHandler: (event: MouseEvent) => void;\n\n public constructor({\n diag,\n perf,\n shouldTrack,\n innerTextForElement,\n }: ClicksInstrumentationArgs = {}) {\n super({\n instrumentationName: 'ClicksInstrumentation',\n instrumentationVersion: '1.0.0',\n diag,\n perf,\n config: {},\n });\n\n this._onClickHandler = (event: MouseEvent) => {\n const element = event.target;\n\n if (!(element instanceof HTMLElement)) {\n return;\n }\n if (element.hasAttribute('disabled')) {\n return;\n }\n\n if (shouldTrack && !shouldTrack(element)) {\n return;\n }\n\n try {\n const currentSessionSpan = this.sessionManager.getSessionSpan();\n if (currentSessionSpan) {\n currentSessionSpan.addEvent(\n 'click',\n {\n 'mxl.type': 'ux.tap',\n 'view.name': getHTMLElementFriendlyName(\n element,\n innerTextForElement\n ? innerTextForElement(element)\n : element.innerText,\n ),\n 'tap.coords': `${event.x.toString()},${event.y.toString()}`,\n },\n this.perf.epochMillisFromOriginOffset(event.timeStamp),\n );\n }\n } catch (e) {\n this._diag.error('failed to create new user interaction span event', e);\n }\n };\n\n if (this._config.enabled) {\n this.enable();\n }\n }\n\n public disable(): void {\n document.removeEventListener('click', this._onClickHandler);\n }\n\n public enable(): void {\n document.addEventListener('click', this._onClickHandler);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClicksInstrumentation.cjs","names":["MXLInstrumentationBase","getHTMLElementFriendlyName"],"sources":["../../../../src/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.ts"],"sourcesContent":["/*\n This instrumentation is taking code from here as a starting point:\n https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts\n\n But not using that instrumentation directly because:\n\n 1) We want to record clicks as span events on the Session span\n 2) There is a bug with the instrumentation that causes a large number of spans to be created for a single click\n when zone context isn't available. To avoid the bug we take a simpler approach here and add a listener directly\n to `document` rather than trying to patch the `addEventListener` method on the prototype, this does mean we miss\n recording click events for which `stopPropagation` is called. See https://github.com/open-telemetry/opentelemetry-js-contrib/issues/1368\n */\n\nimport { MXLInstrumentationBase } from '../../MXLInstrumentationBase/index.ts';\nimport type { ClicksInstrumentationArgs } from './types.ts';\n\nimport { getHTMLElementFriendlyName } from './utils.ts';\n\nexport class ClicksInstrumentation extends MXLInstrumentationBase {\n private readonly _onClickHandler: (event: MouseEvent) => void;\n\n public constructor({\n diag,\n perf,\n shouldTrack,\n innerTextForElement,\n }: ClicksInstrumentationArgs = {}) {\n super({\n instrumentationName: 'ClicksInstrumentation',\n instrumentationVersion: '1.0.0',\n diag,\n perf,\n config: {},\n });\n\n this._onClickHandler = (event: MouseEvent) => {\n const element = event.target;\n\n if (!(element instanceof HTMLElement)) {\n return;\n }\n if (element.hasAttribute('disabled')) {\n return;\n }\n\n if (shouldTrack && !shouldTrack(element)) {\n return;\n }\n\n try {\n const currentSessionSpan = this.sessionManager.getSessionSpan();\n if (currentSessionSpan) {\n currentSessionSpan.addEvent(\n 'click',\n {\n 'mxl.type': 'ux.tap',\n 'view.name': getHTMLElementFriendlyName(\n element,\n innerTextForElement\n ? innerTextForElement(element)\n : element.innerText,\n ),\n 'tap.coords': `${event.x.toString()},${event.y.toString()}`,\n },\n this.perf.epochMillisFromOriginOffset(event.timeStamp),\n );\n }\n } catch (e) {\n this._diag.error('failed to create new user interaction span event', e);\n }\n };\n\n if (this._config.enabled) {\n this.enable();\n }\n }\n\n public disable(): void {\n document.removeEventListener('click', this._onClickHandler);\n }\n\n public enable(): void {\n document.addEventListener('click', this._onClickHandler);\n }\n}\n"],"mappings":";;;;AAkBA,IAAa,wBAAb,cAA2CA,uEAAAA,uBAAuB;CAChE;CAEA,YAAmB,EACjB,MACA,MACA,aACA,wBAC6B,EAAE,EAAE;AACjC,QAAM;GACJ,qBAAqB;GACrB,wBAAwB;GACxB;GACA;GACA,QAAQ,EAAE;GACX,CAAC;AAEF,OAAK,mBAAmB,UAAsB;GAC5C,MAAM,UAAU,MAAM;AAEtB,OAAI,EAAE,mBAAmB,aACvB;AAEF,OAAI,QAAQ,aAAa,WAAW,CAClC;AAGF,OAAI,eAAe,CAAC,YAAY,QAAQ,CACtC;AAGF,OAAI;IACF,MAAM,qBAAqB,KAAK,eAAe,gBAAgB;AAC/D,QAAI,mBACF,oBAAmB,SACjB,SACA;KACE,YAAY;KACZ,aAAaC,4DAAAA,2BACX,SACA,sBACI,oBAAoB,QAAQ,GAC5B,QAAQ,UACb;KACD,cAAc,GAAG,MAAM,EAAE,UAAU,CAAC,GAAG,MAAM,EAAE,UAAU;KAC1D,EACD,KAAK,KAAK,4BAA4B,MAAM,UAAU,CACvD;YAEI,GAAG;AACV,SAAK,MAAM,MAAM,oDAAoD,EAAE;;;AAI3E,MAAI,KAAK,QAAQ,QACf,MAAK,QAAQ;;CAIjB,UAAuB;AACrB,WAAS,oBAAoB,SAAS,KAAK,gBAAgB;;CAG7D,SAAsB;AACpB,WAAS,iBAAiB,SAAS,KAAK,gBAAgB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MXLInstrumentationBase } from "../../MXLInstrumentationBase/MXLInstrumentationBase.js";
|
|
2
|
-
import "../../MXLInstrumentationBase/index.js";
|
|
3
2
|
import { ClicksInstrumentationArgs } from "./types.js";
|
|
4
3
|
|
|
5
4
|
//#region src/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClicksInstrumentation.d.ts","names":[],"sources":["../../../../src/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClicksInstrumentation.d.ts","names":[],"sources":["../../../../src/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.ts"],"mappings":";;;;cAkBa,qBAAA,SAA8B,sBAAA;EAAA,iBACxB,eAAA;;IAGf,IAAA;IACA,IAAA;IACA,WAAA;IACA;EAAA,IACC,yBAAA;EAmDI,OAAA,CAAA;EAIA,MAAA,CAAA;AAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MXLInstrumentationBase } from "../../MXLInstrumentationBase/MXLInstrumentationBase.js";
|
|
2
2
|
import { getHTMLElementFriendlyName } from "./utils.js";
|
|
3
|
-
|
|
4
3
|
//#region src/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.ts
|
|
5
4
|
var ClicksInstrumentation = class extends MXLInstrumentationBase {
|
|
6
5
|
_onClickHandler;
|
|
@@ -37,7 +36,7 @@ var ClicksInstrumentation = class extends MXLInstrumentationBase {
|
|
|
37
36
|
document.addEventListener("click", this._onClickHandler);
|
|
38
37
|
}
|
|
39
38
|
};
|
|
40
|
-
|
|
41
39
|
//#endregion
|
|
42
40
|
export { ClicksInstrumentation };
|
|
41
|
+
|
|
43
42
|
//# sourceMappingURL=ClicksInstrumentation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClicksInstrumentation.js","names":[],"sources":["../../../../src/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.ts"],"sourcesContent":["/*\n This instrumentation is taking code from here as a starting point:\n https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts\n\n But not using that instrumentation directly because:\n\n 1) We want to record clicks as span events on the Session span\n 2) There is a bug with the instrumentation that causes a large number of spans to be created for a single click\n when zone context isn't available. To avoid the bug we take a simpler approach here and add a listener directly\n to `document` rather than trying to patch the `addEventListener` method on the prototype, this does mean we miss\n recording click events for which `stopPropagation` is called. See https://github.com/open-telemetry/opentelemetry-js-contrib/issues/1368\n */\n\nimport { MXLInstrumentationBase } from '../../MXLInstrumentationBase/index.ts';\nimport type { ClicksInstrumentationArgs } from './types.ts';\n\nimport { getHTMLElementFriendlyName } from './utils.ts';\n\nexport class ClicksInstrumentation extends MXLInstrumentationBase {\n private readonly _onClickHandler: (event: MouseEvent) => void;\n\n public constructor({\n diag,\n perf,\n shouldTrack,\n innerTextForElement,\n }: ClicksInstrumentationArgs = {}) {\n super({\n instrumentationName: 'ClicksInstrumentation',\n instrumentationVersion: '1.0.0',\n diag,\n perf,\n config: {},\n });\n\n this._onClickHandler = (event: MouseEvent) => {\n const element = event.target;\n\n if (!(element instanceof HTMLElement)) {\n return;\n }\n if (element.hasAttribute('disabled')) {\n return;\n }\n\n if (shouldTrack && !shouldTrack(element)) {\n return;\n }\n\n try {\n const currentSessionSpan = this.sessionManager.getSessionSpan();\n if (currentSessionSpan) {\n currentSessionSpan.addEvent(\n 'click',\n {\n 'mxl.type': 'ux.tap',\n 'view.name': getHTMLElementFriendlyName(\n element,\n innerTextForElement\n ? innerTextForElement(element)\n : element.innerText,\n ),\n 'tap.coords': `${event.x.toString()},${event.y.toString()}`,\n },\n this.perf.epochMillisFromOriginOffset(event.timeStamp),\n );\n }\n } catch (e) {\n this._diag.error('failed to create new user interaction span event', e);\n }\n };\n\n if (this._config.enabled) {\n this.enable();\n }\n }\n\n public disable(): void {\n document.removeEventListener('click', this._onClickHandler);\n }\n\n public enable(): void {\n document.addEventListener('click', this._onClickHandler);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClicksInstrumentation.js","names":[],"sources":["../../../../src/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.ts"],"sourcesContent":["/*\n This instrumentation is taking code from here as a starting point:\n https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/plugins/web/opentelemetry-instrumentation-user-interaction/src/instrumentation.ts\n\n But not using that instrumentation directly because:\n\n 1) We want to record clicks as span events on the Session span\n 2) There is a bug with the instrumentation that causes a large number of spans to be created for a single click\n when zone context isn't available. To avoid the bug we take a simpler approach here and add a listener directly\n to `document` rather than trying to patch the `addEventListener` method on the prototype, this does mean we miss\n recording click events for which `stopPropagation` is called. See https://github.com/open-telemetry/opentelemetry-js-contrib/issues/1368\n */\n\nimport { MXLInstrumentationBase } from '../../MXLInstrumentationBase/index.ts';\nimport type { ClicksInstrumentationArgs } from './types.ts';\n\nimport { getHTMLElementFriendlyName } from './utils.ts';\n\nexport class ClicksInstrumentation extends MXLInstrumentationBase {\n private readonly _onClickHandler: (event: MouseEvent) => void;\n\n public constructor({\n diag,\n perf,\n shouldTrack,\n innerTextForElement,\n }: ClicksInstrumentationArgs = {}) {\n super({\n instrumentationName: 'ClicksInstrumentation',\n instrumentationVersion: '1.0.0',\n diag,\n perf,\n config: {},\n });\n\n this._onClickHandler = (event: MouseEvent) => {\n const element = event.target;\n\n if (!(element instanceof HTMLElement)) {\n return;\n }\n if (element.hasAttribute('disabled')) {\n return;\n }\n\n if (shouldTrack && !shouldTrack(element)) {\n return;\n }\n\n try {\n const currentSessionSpan = this.sessionManager.getSessionSpan();\n if (currentSessionSpan) {\n currentSessionSpan.addEvent(\n 'click',\n {\n 'mxl.type': 'ux.tap',\n 'view.name': getHTMLElementFriendlyName(\n element,\n innerTextForElement\n ? innerTextForElement(element)\n : element.innerText,\n ),\n 'tap.coords': `${event.x.toString()},${event.y.toString()}`,\n },\n this.perf.epochMillisFromOriginOffset(event.timeStamp),\n );\n }\n } catch (e) {\n this._diag.error('failed to create new user interaction span event', e);\n }\n };\n\n if (this._config.enabled) {\n this.enable();\n }\n }\n\n public disable(): void {\n document.removeEventListener('click', this._onClickHandler);\n }\n\n public enable(): void {\n document.addEventListener('click', this._onClickHandler);\n }\n}\n"],"mappings":";;;AAkBA,IAAa,wBAAb,cAA2C,uBAAuB;CAChE;CAEA,YAAmB,EACjB,MACA,MACA,aACA,wBAC6B,EAAE,EAAE;AACjC,QAAM;GACJ,qBAAqB;GACrB,wBAAwB;GACxB;GACA;GACA,QAAQ,EAAE;GACX,CAAC;AAEF,OAAK,mBAAmB,UAAsB;GAC5C,MAAM,UAAU,MAAM;AAEtB,OAAI,EAAE,mBAAmB,aACvB;AAEF,OAAI,QAAQ,aAAa,WAAW,CAClC;AAGF,OAAI,eAAe,CAAC,YAAY,QAAQ,CACtC;AAGF,OAAI;IACF,MAAM,qBAAqB,KAAK,eAAe,gBAAgB;AAC/D,QAAI,mBACF,oBAAmB,SACjB,SACA;KACE,YAAY;KACZ,aAAa,2BACX,SACA,sBACI,oBAAoB,QAAQ,GAC5B,QAAQ,UACb;KACD,cAAc,GAAG,MAAM,EAAE,UAAU,CAAC,GAAG,MAAM,EAAE,UAAU;KAC1D,EACD,KAAK,KAAK,4BAA4B,MAAM,UAAU,CACvD;YAEI,GAAG;AACV,SAAK,MAAM,MAAM,oDAAoD,EAAE;;;AAI3E,MAAI,KAAK,QAAQ,QACf,MAAK,QAAQ;;CAIjB,UAAuB;AACrB,WAAS,oBAAoB,SAAS,KAAK,gBAAgB;;CAG7D,SAAsB;AACpB,WAAS,iBAAiB,SAAS,KAAK,gBAAgB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
const require_instrumentations_clicks_ClicksInstrumentation_ClicksInstrumentation = require(
|
|
3
|
-
|
|
4
|
-
exports.ClicksInstrumentation = require_instrumentations_clicks_ClicksInstrumentation_ClicksInstrumentation.ClicksInstrumentation;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_instrumentations_clicks_ClicksInstrumentation_ClicksInstrumentation = require("./ClicksInstrumentation.cjs");
|
|
3
|
+
exports.ClicksInstrumentation = require_instrumentations_clicks_ClicksInstrumentation_ClicksInstrumentation.ClicksInstrumentation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../../src/instrumentations/clicks/ClicksInstrumentation/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../../src/instrumentations/clicks/ClicksInstrumentation/types.ts"],"mappings":";;KAEY,yBAAA;EACV,WAAA,IAAe,OAAA,EAAS,WAAA;EACxB,mBAAA,IAAuB,OAAA,EAAS,WAAA;AAAA,IAC9B,IAAA,CAAK,0BAAA"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { MXLInstrumentationBaseArgs } from "../../MXLInstrumentationBase/types.js";
|
|
2
|
-
import "../../MXLInstrumentationBase/index.js";
|
|
3
|
-
|
|
4
2
|
//#region src/instrumentations/clicks/ClicksInstrumentation/types.d.ts
|
|
5
3
|
type ClicksInstrumentationArgs = {
|
|
6
4
|
shouldTrack?: (element: HTMLElement) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/instrumentations/clicks/ClicksInstrumentation/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/instrumentations/clicks/ClicksInstrumentation/types.ts"],"mappings":";;KAEY,yBAAA;EACV,WAAA,IAAe,OAAA,EAAS,WAAA;EACxB,mBAAA,IAAuB,OAAA,EAAS,WAAA;AAAA,IAC9B,IAAA,CAAK,0BAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
2
|
//#region src/instrumentations/clicks/ClicksInstrumentation/utils.ts
|
|
4
3
|
const MAX_INNER_TEXT = 30;
|
|
5
4
|
const getHTMLElementFriendlyName = (element, innerText) => {
|
|
@@ -8,7 +7,7 @@ const getHTMLElementFriendlyName = (element, innerText) => {
|
|
|
8
7
|
const ellipsis = innerText.length > MAX_INNER_TEXT ? "..." : "";
|
|
9
8
|
return `<${nodeName}${element.className ? ` class="${element.className}"` : ""}>${truncatedInnerText}${ellipsis}</${nodeName}>`;
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
11
|
exports.getHTMLElementFriendlyName = getHTMLElementFriendlyName;
|
|
12
|
+
|
|
14
13
|
//# sourceMappingURL=utils.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.cjs","names":[],"sources":["../../../../src/instrumentations/clicks/ClicksInstrumentation/utils.ts"],"sourcesContent":["const MAX_INNER_TEXT = 30;\n\nexport const getHTMLElementFriendlyName = (\n element: HTMLElement,\n innerText: string,\n) => {\n const nodeName = element.nodeName.toLowerCase();\n const truncatedInnerText = innerText.substring(0, MAX_INNER_TEXT);\n const ellipsis = innerText.length > MAX_INNER_TEXT ? '...' : '';\n const className = element.className ? ` class=\"${element.className}\"` : '';\n return `<${nodeName}${className}>${truncatedInnerText}${ellipsis}</${nodeName}>`;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.cjs","names":[],"sources":["../../../../src/instrumentations/clicks/ClicksInstrumentation/utils.ts"],"sourcesContent":["const MAX_INNER_TEXT = 30;\n\nexport const getHTMLElementFriendlyName = (\n element: HTMLElement,\n innerText: string,\n) => {\n const nodeName = element.nodeName.toLowerCase();\n const truncatedInnerText = innerText.substring(0, MAX_INNER_TEXT);\n const ellipsis = innerText.length > MAX_INNER_TEXT ? '...' : '';\n const className = element.className ? ` class=\"${element.className}\"` : '';\n return `<${nodeName}${className}>${truncatedInnerText}${ellipsis}</${nodeName}>`;\n};\n"],"mappings":";;AAAA,MAAM,iBAAiB;AAEvB,MAAa,8BACX,SACA,cACG;CACH,MAAM,WAAW,QAAQ,SAAS,aAAa;CAC/C,MAAM,qBAAqB,UAAU,UAAU,GAAG,eAAe;CACjE,MAAM,WAAW,UAAU,SAAS,iBAAiB,QAAQ;AAE7D,QAAO,IAAI,WADO,QAAQ,YAAY,WAAW,QAAQ,UAAU,KAAK,GACxC,GAAG,qBAAqB,SAAS,IAAI,SAAS"}
|
|
@@ -6,7 +6,7 @@ const getHTMLElementFriendlyName = (element, innerText) => {
|
|
|
6
6
|
const ellipsis = innerText.length > MAX_INNER_TEXT ? "..." : "";
|
|
7
7
|
return `<${nodeName}${element.className ? ` class="${element.className}"` : ""}>${truncatedInnerText}${ellipsis}</${nodeName}>`;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
9
|
//#endregion
|
|
11
10
|
export { getHTMLElementFriendlyName };
|
|
11
|
+
|
|
12
12
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
const require_instrumentations_clicks_ClicksInstrumentation_ClicksInstrumentation = require(
|
|
3
|
-
|
|
4
|
-
exports.ClicksInstrumentation = require_instrumentations_clicks_ClicksInstrumentation_ClicksInstrumentation.ClicksInstrumentation;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_instrumentations_clicks_ClicksInstrumentation_ClicksInstrumentation = require("./ClicksInstrumentation/ClicksInstrumentation.cjs");
|
|
3
|
+
exports.ClicksInstrumentation = require_instrumentations_clicks_ClicksInstrumentation_ClicksInstrumentation.ClicksInstrumentation;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ClicksInstrumentationArgs } from "./ClicksInstrumentation/types.js";
|
|
2
2
|
import { ClicksInstrumentation } from "./ClicksInstrumentation/ClicksInstrumentation.js";
|
|
3
|
-
import "./ClicksInstrumentation/index.js";
|
|
4
3
|
export { ClicksInstrumentation, type ClicksInstrumentationArgs };
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
|
|
3
|
-
const require_constants_attributes = require(
|
|
4
|
-
const require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase = require(
|
|
5
|
-
|
|
6
|
-
const require_instrumentations_document_load_DocumentLoadInstrumentation_utils = require(
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_constants_attributes = require("../../../constants/attributes.cjs");
|
|
4
|
+
const require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase = require("../../MXLInstrumentationBase/MXLInstrumentationBase.cjs");
|
|
5
|
+
require("./enums/AttributeNames.cjs");
|
|
6
|
+
const require_instrumentations_document_load_DocumentLoadInstrumentation_utils = require("./utils.cjs");
|
|
7
7
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
8
8
|
let _opentelemetry_sdk_trace_web = require("@opentelemetry/sdk-trace-web");
|
|
9
9
|
let _opentelemetry_core = require("@opentelemetry/core");
|
|
10
10
|
let _opentelemetry_instrumentation = require("@opentelemetry/instrumentation");
|
|
11
11
|
let _opentelemetry_semantic_conventions = require("@opentelemetry/semantic-conventions");
|
|
12
12
|
let _opentelemetry_semantic_conventions_incubating = require("@opentelemetry/semantic-conventions/incubating");
|
|
13
|
-
|
|
14
13
|
//#region src/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.ts
|
|
15
14
|
const ATTR_HTTP_RESPONSE_DELIVERY_TYPE = "http.response.delivery_type";
|
|
16
15
|
const ATTR_HTTP_RESPONSE_DECODED_BODY_SIZE = "http.response.decoded_body_size";
|
|
@@ -65,10 +64,10 @@ var DocumentLoadInstrumentation = class extends require_instrumentations_MXLInst
|
|
|
65
64
|
const entries = require_instrumentations_document_load_DocumentLoadInstrumentation_utils.getPerformanceNavigationEntries();
|
|
66
65
|
const traceparent = metaElement?.content || "";
|
|
67
66
|
_opentelemetry_api.context.with(_opentelemetry_api.propagation.extract(_opentelemetry_api.ROOT_CONTEXT, { traceparent }), () => {
|
|
68
|
-
const rootSpan = this._startSpan(
|
|
67
|
+
const rootSpan = this._startSpan("documentLoad", _opentelemetry_sdk_trace_web.PerformanceTimingNames.FETCH_START, entries);
|
|
69
68
|
if (!rootSpan) return;
|
|
70
69
|
_opentelemetry_api.context.with(_opentelemetry_api.trace.setSpan(_opentelemetry_api.context.active(), rootSpan), () => {
|
|
71
|
-
const fetchSpan = this._startSpan(
|
|
70
|
+
const fetchSpan = this._startSpan("documentFetch", _opentelemetry_sdk_trace_web.PerformanceTimingNames.FETCH_START, entries);
|
|
72
71
|
if (fetchSpan) {
|
|
73
72
|
fetchSpan.setAttribute(_opentelemetry_semantic_conventions_incubating.ATTR_URL_FULL, location.href);
|
|
74
73
|
_opentelemetry_api.context.with(_opentelemetry_api.trace.setSpan(_opentelemetry_api.context.active(), fetchSpan), () => {
|
|
@@ -78,7 +77,7 @@ var DocumentLoadInstrumentation = class extends require_instrumentations_MXLInst
|
|
|
78
77
|
});
|
|
79
78
|
}
|
|
80
79
|
});
|
|
81
|
-
rootSpan.setAttribute(require_constants_attributes.KEY_MXL_TYPE,
|
|
80
|
+
rootSpan.setAttribute(require_constants_attributes.KEY_MXL_TYPE, "ux.document_load");
|
|
82
81
|
rootSpan.setAttribute(_opentelemetry_semantic_conventions_incubating.ATTR_URL_FULL, location.href);
|
|
83
82
|
rootSpan.setAttribute(_opentelemetry_semantic_conventions_incubating.ATTR_USER_AGENT_ORIGINAL, navigator.userAgent);
|
|
84
83
|
this._addResourcesSpans(rootSpan);
|
|
@@ -114,9 +113,9 @@ var DocumentLoadInstrumentation = class extends require_instrumentations_MXLInst
|
|
|
114
113
|
* @param parentSpan
|
|
115
114
|
*/
|
|
116
115
|
_initResourceSpan(resource, parentSpan) {
|
|
117
|
-
const span = this._startSpan(
|
|
116
|
+
const span = this._startSpan("resourceFetch", _opentelemetry_sdk_trace_web.PerformanceTimingNames.FETCH_START, resource, parentSpan);
|
|
118
117
|
if (!span) return;
|
|
119
|
-
span.setAttribute(require_constants_attributes.KEY_MXL_TYPE,
|
|
118
|
+
span.setAttribute(require_constants_attributes.KEY_MXL_TYPE, "ux.resource_fetch");
|
|
120
119
|
span.setAttribute(_opentelemetry_semantic_conventions_incubating.ATTR_URL_FULL, resource.name);
|
|
121
120
|
(0, _opentelemetry_sdk_trace_web.addSpanNetworkEvents)(span, resource, this.getConfig().ignoreNetworkEvents);
|
|
122
121
|
if (resource.deliveryType) span.setAttribute(ATTR_HTTP_RESPONSE_DELIVERY_TYPE, resource.deliveryType);
|
|
@@ -229,7 +228,7 @@ var DocumentLoadInstrumentation = class extends require_instrumentations_MXLInst
|
|
|
229
228
|
window.removeEventListener("load", this._onDocumentLoaded);
|
|
230
229
|
}
|
|
231
230
|
};
|
|
232
|
-
|
|
233
231
|
//#endregion
|
|
234
232
|
exports.DocumentLoadInstrumentation = DocumentLoadInstrumentation;
|
|
233
|
+
|
|
235
234
|
//# sourceMappingURL=DocumentLoadInstrumentation.cjs.map
|