@elenjical-ai/browser 0.0.0-stage → 10.76.2
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/LICENSE +21 -0
- package/README.md +57 -2
- package/build/npm/cjs/dev/client.js +77 -0
- package/build/npm/cjs/dev/client.js.map +1 -0
- package/build/npm/cjs/dev/debug-build.js +6 -0
- package/build/npm/cjs/dev/debug-build.js.map +1 -0
- package/build/npm/cjs/dev/diagnose-sdk.js +34 -0
- package/build/npm/cjs/dev/diagnose-sdk.js.map +1 -0
- package/build/npm/cjs/dev/eventbuilder.js +231 -0
- package/build/npm/cjs/dev/eventbuilder.js.map +1 -0
- package/build/npm/cjs/dev/feedbackAsync.js +11 -0
- package/build/npm/cjs/dev/feedbackAsync.js.map +1 -0
- package/build/npm/cjs/dev/feedbackSync.js +11 -0
- package/build/npm/cjs/dev/feedbackSync.js.map +1 -0
- package/build/npm/cjs/dev/helpers.js +108 -0
- package/build/npm/cjs/dev/helpers.js.map +1 -0
- package/build/npm/cjs/dev/index.js +208 -0
- package/build/npm/cjs/dev/index.js.map +1 -0
- package/build/npm/cjs/dev/integrations/breadcrumbs.js +249 -0
- package/build/npm/cjs/dev/integrations/breadcrumbs.js.map +1 -0
- package/build/npm/cjs/dev/integrations/browserapierrors.js +167 -0
- package/build/npm/cjs/dev/integrations/browserapierrors.js.map +1 -0
- package/build/npm/cjs/dev/integrations/browsersession.js +50 -0
- package/build/npm/cjs/dev/integrations/browsersession.js.map +1 -0
- package/build/npm/cjs/dev/integrations/contextlines.js +53 -0
- package/build/npm/cjs/dev/integrations/contextlines.js.map +1 -0
- package/build/npm/cjs/dev/integrations/culturecontext.js +50 -0
- package/build/npm/cjs/dev/integrations/culturecontext.js.map +1 -0
- package/build/npm/cjs/dev/integrations/featureFlags/growthbook/integration.js +8 -0
- package/build/npm/cjs/dev/integrations/featureFlags/growthbook/integration.js.map +1 -0
- package/build/npm/cjs/dev/integrations/featureFlags/launchdarkly/integration.js +30 -0
- package/build/npm/cjs/dev/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
- package/build/npm/cjs/dev/integrations/featureFlags/openfeature/integration.js +32 -0
- package/build/npm/cjs/dev/integrations/featureFlags/openfeature/integration.js.map +1 -0
- package/build/npm/cjs/dev/integrations/featureFlags/statsig/integration.js +23 -0
- package/build/npm/cjs/dev/integrations/featureFlags/statsig/integration.js.map +1 -0
- package/build/npm/cjs/dev/integrations/featureFlags/unleash/integration.js +37 -0
- package/build/npm/cjs/dev/integrations/featureFlags/unleash/integration.js.map +1 -0
- package/build/npm/cjs/dev/integrations/fetchStreamPerformance.js +60 -0
- package/build/npm/cjs/dev/integrations/fetchStreamPerformance.js.map +1 -0
- package/build/npm/cjs/dev/integrations/globalhandlers.js +143 -0
- package/build/npm/cjs/dev/integrations/globalhandlers.js.map +1 -0
- package/build/npm/cjs/dev/integrations/graphqlClient.js +148 -0
- package/build/npm/cjs/dev/integrations/graphqlClient.js.map +1 -0
- package/build/npm/cjs/dev/integrations/httpclient.js +250 -0
- package/build/npm/cjs/dev/integrations/httpclient.js.map +1 -0
- package/build/npm/cjs/dev/integrations/httpcontext.js +47 -0
- package/build/npm/cjs/dev/integrations/httpcontext.js.map +1 -0
- package/build/npm/cjs/dev/integrations/linkederrors.js +31 -0
- package/build/npm/cjs/dev/integrations/linkederrors.js.map +1 -0
- package/build/npm/cjs/dev/integrations/reportingobserver.js +60 -0
- package/build/npm/cjs/dev/integrations/reportingobserver.js.map +1 -0
- package/build/npm/cjs/dev/integrations/spanstreaming.js +49 -0
- package/build/npm/cjs/dev/integrations/spanstreaming.js.map +1 -0
- package/build/npm/cjs/dev/integrations/spotlight.js +61 -0
- package/build/npm/cjs/dev/integrations/spotlight.js.map +1 -0
- package/build/npm/cjs/dev/integrations/view-hierarchy.js +74 -0
- package/build/npm/cjs/dev/integrations/view-hierarchy.js.map +1 -0
- package/build/npm/cjs/dev/integrations/webVitals.js +62 -0
- package/build/npm/cjs/dev/integrations/webVitals.js.map +1 -0
- package/build/npm/cjs/dev/integrations/webWorker.js +133 -0
- package/build/npm/cjs/dev/integrations/webWorker.js.map +1 -0
- package/build/npm/cjs/dev/normalizeStringifyValue.js +27 -0
- package/build/npm/cjs/dev/normalizeStringifyValue.js.map +1 -0
- package/build/npm/cjs/dev/profiling/UIProfiler.js +306 -0
- package/build/npm/cjs/dev/profiling/UIProfiler.js.map +1 -0
- package/build/npm/cjs/dev/profiling/index.js +38 -0
- package/build/npm/cjs/dev/profiling/index.js.map +1 -0
- package/build/npm/cjs/dev/profiling/integration.js +120 -0
- package/build/npm/cjs/dev/profiling/integration.js.map +1 -0
- package/build/npm/cjs/dev/profiling/startProfileForSpan.js +91 -0
- package/build/npm/cjs/dev/profiling/startProfileForSpan.js.map +1 -0
- package/build/npm/cjs/dev/profiling/utils.js +498 -0
- package/build/npm/cjs/dev/profiling/utils.js.map +1 -0
- package/build/npm/cjs/dev/report-dialog.js +53 -0
- package/build/npm/cjs/dev/report-dialog.js.map +1 -0
- package/build/npm/cjs/dev/sdk.js +70 -0
- package/build/npm/cjs/dev/sdk.js.map +1 -0
- package/build/npm/cjs/dev/stack-parsers.js +118 -0
- package/build/npm/cjs/dev/stack-parsers.js.map +1 -0
- package/build/npm/cjs/dev/tracing/backgroundtab.js +34 -0
- package/build/npm/cjs/dev/tracing/backgroundtab.js.map +1 -0
- package/build/npm/cjs/dev/tracing/browserTracingIntegration.js +437 -0
- package/build/npm/cjs/dev/tracing/browserTracingIntegration.js.map +1 -0
- package/build/npm/cjs/dev/tracing/linkedTraces.js +140 -0
- package/build/npm/cjs/dev/tracing/linkedTraces.js.map +1 -0
- package/build/npm/cjs/dev/tracing/reportPageLoaded.js +10 -0
- package/build/npm/cjs/dev/tracing/reportPageLoaded.js.map +1 -0
- package/build/npm/cjs/dev/tracing/request.js +236 -0
- package/build/npm/cjs/dev/tracing/request.js.map +1 -0
- package/build/npm/cjs/dev/tracing/setActiveSpan.js +21 -0
- package/build/npm/cjs/dev/tracing/setActiveSpan.js.map +1 -0
- package/build/npm/cjs/dev/tracing/utils.js +31 -0
- package/build/npm/cjs/dev/tracing/utils.js.map +1 -0
- package/build/npm/cjs/dev/transports/fetch.js +58 -0
- package/build/npm/cjs/dev/transports/fetch.js.map +1 -0
- package/build/npm/cjs/dev/transports/offline.js +111 -0
- package/build/npm/cjs/dev/transports/offline.js.map +1 -0
- package/build/npm/cjs/dev/userfeedback.js +32 -0
- package/build/npm/cjs/dev/userfeedback.js.map +1 -0
- package/build/npm/cjs/dev/utils/detectBrowserExtension.js +38 -0
- package/build/npm/cjs/dev/utils/detectBrowserExtension.js.map +1 -0
- package/build/npm/cjs/dev/utils/lazyLoadIntegration.js +92 -0
- package/build/npm/cjs/dev/utils/lazyLoadIntegration.js.map +1 -0
- package/build/npm/cjs/prod/client.js +77 -0
- package/build/npm/cjs/prod/client.js.map +1 -0
- package/build/npm/cjs/prod/debug-build.js +6 -0
- package/build/npm/cjs/prod/debug-build.js.map +1 -0
- package/build/npm/cjs/prod/diagnose-sdk.js +34 -0
- package/build/npm/cjs/prod/diagnose-sdk.js.map +1 -0
- package/build/npm/cjs/prod/eventbuilder.js +231 -0
- package/build/npm/cjs/prod/eventbuilder.js.map +1 -0
- package/build/npm/cjs/prod/feedbackAsync.js +11 -0
- package/build/npm/cjs/prod/feedbackAsync.js.map +1 -0
- package/build/npm/cjs/prod/feedbackSync.js +11 -0
- package/build/npm/cjs/prod/feedbackSync.js.map +1 -0
- package/build/npm/cjs/prod/helpers.js +108 -0
- package/build/npm/cjs/prod/helpers.js.map +1 -0
- package/build/npm/cjs/prod/index.js +208 -0
- package/build/npm/cjs/prod/index.js.map +1 -0
- package/build/npm/cjs/prod/integrations/breadcrumbs.js +249 -0
- package/build/npm/cjs/prod/integrations/breadcrumbs.js.map +1 -0
- package/build/npm/cjs/prod/integrations/browserapierrors.js +167 -0
- package/build/npm/cjs/prod/integrations/browserapierrors.js.map +1 -0
- package/build/npm/cjs/prod/integrations/browsersession.js +50 -0
- package/build/npm/cjs/prod/integrations/browsersession.js.map +1 -0
- package/build/npm/cjs/prod/integrations/contextlines.js +53 -0
- package/build/npm/cjs/prod/integrations/contextlines.js.map +1 -0
- package/build/npm/cjs/prod/integrations/culturecontext.js +50 -0
- package/build/npm/cjs/prod/integrations/culturecontext.js.map +1 -0
- package/build/npm/cjs/prod/integrations/featureFlags/growthbook/integration.js +8 -0
- package/build/npm/cjs/prod/integrations/featureFlags/growthbook/integration.js.map +1 -0
- package/build/npm/cjs/prod/integrations/featureFlags/launchdarkly/integration.js +30 -0
- package/build/npm/cjs/prod/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
- package/build/npm/cjs/prod/integrations/featureFlags/openfeature/integration.js +32 -0
- package/build/npm/cjs/prod/integrations/featureFlags/openfeature/integration.js.map +1 -0
- package/build/npm/cjs/prod/integrations/featureFlags/statsig/integration.js +23 -0
- package/build/npm/cjs/prod/integrations/featureFlags/statsig/integration.js.map +1 -0
- package/build/npm/cjs/prod/integrations/featureFlags/unleash/integration.js +37 -0
- package/build/npm/cjs/prod/integrations/featureFlags/unleash/integration.js.map +1 -0
- package/build/npm/cjs/prod/integrations/fetchStreamPerformance.js +60 -0
- package/build/npm/cjs/prod/integrations/fetchStreamPerformance.js.map +1 -0
- package/build/npm/cjs/prod/integrations/globalhandlers.js +143 -0
- package/build/npm/cjs/prod/integrations/globalhandlers.js.map +1 -0
- package/build/npm/cjs/prod/integrations/graphqlClient.js +148 -0
- package/build/npm/cjs/prod/integrations/graphqlClient.js.map +1 -0
- package/build/npm/cjs/prod/integrations/httpclient.js +250 -0
- package/build/npm/cjs/prod/integrations/httpclient.js.map +1 -0
- package/build/npm/cjs/prod/integrations/httpcontext.js +47 -0
- package/build/npm/cjs/prod/integrations/httpcontext.js.map +1 -0
- package/build/npm/cjs/prod/integrations/linkederrors.js +31 -0
- package/build/npm/cjs/prod/integrations/linkederrors.js.map +1 -0
- package/build/npm/cjs/prod/integrations/reportingobserver.js +60 -0
- package/build/npm/cjs/prod/integrations/reportingobserver.js.map +1 -0
- package/build/npm/cjs/prod/integrations/spanstreaming.js +49 -0
- package/build/npm/cjs/prod/integrations/spanstreaming.js.map +1 -0
- package/build/npm/cjs/prod/integrations/spotlight.js +61 -0
- package/build/npm/cjs/prod/integrations/spotlight.js.map +1 -0
- package/build/npm/cjs/prod/integrations/view-hierarchy.js +74 -0
- package/build/npm/cjs/prod/integrations/view-hierarchy.js.map +1 -0
- package/build/npm/cjs/prod/integrations/webVitals.js +62 -0
- package/build/npm/cjs/prod/integrations/webVitals.js.map +1 -0
- package/build/npm/cjs/prod/integrations/webWorker.js +133 -0
- package/build/npm/cjs/prod/integrations/webWorker.js.map +1 -0
- package/build/npm/cjs/prod/normalizeStringifyValue.js +27 -0
- package/build/npm/cjs/prod/normalizeStringifyValue.js.map +1 -0
- package/build/npm/cjs/prod/profiling/UIProfiler.js +306 -0
- package/build/npm/cjs/prod/profiling/UIProfiler.js.map +1 -0
- package/build/npm/cjs/prod/profiling/index.js +38 -0
- package/build/npm/cjs/prod/profiling/index.js.map +1 -0
- package/build/npm/cjs/prod/profiling/integration.js +120 -0
- package/build/npm/cjs/prod/profiling/integration.js.map +1 -0
- package/build/npm/cjs/prod/profiling/startProfileForSpan.js +91 -0
- package/build/npm/cjs/prod/profiling/startProfileForSpan.js.map +1 -0
- package/build/npm/cjs/prod/profiling/utils.js +498 -0
- package/build/npm/cjs/prod/profiling/utils.js.map +1 -0
- package/build/npm/cjs/prod/report-dialog.js +53 -0
- package/build/npm/cjs/prod/report-dialog.js.map +1 -0
- package/build/npm/cjs/prod/sdk.js +60 -0
- package/build/npm/cjs/prod/sdk.js.map +1 -0
- package/build/npm/cjs/prod/stack-parsers.js +118 -0
- package/build/npm/cjs/prod/stack-parsers.js.map +1 -0
- package/build/npm/cjs/prod/tracing/backgroundtab.js +34 -0
- package/build/npm/cjs/prod/tracing/backgroundtab.js.map +1 -0
- package/build/npm/cjs/prod/tracing/browserTracingIntegration.js +437 -0
- package/build/npm/cjs/prod/tracing/browserTracingIntegration.js.map +1 -0
- package/build/npm/cjs/prod/tracing/linkedTraces.js +139 -0
- package/build/npm/cjs/prod/tracing/linkedTraces.js.map +1 -0
- package/build/npm/cjs/prod/tracing/reportPageLoaded.js +10 -0
- package/build/npm/cjs/prod/tracing/reportPageLoaded.js.map +1 -0
- package/build/npm/cjs/prod/tracing/request.js +236 -0
- package/build/npm/cjs/prod/tracing/request.js.map +1 -0
- package/build/npm/cjs/prod/tracing/setActiveSpan.js +21 -0
- package/build/npm/cjs/prod/tracing/setActiveSpan.js.map +1 -0
- package/build/npm/cjs/prod/tracing/utils.js +31 -0
- package/build/npm/cjs/prod/tracing/utils.js.map +1 -0
- package/build/npm/cjs/prod/transports/fetch.js +58 -0
- package/build/npm/cjs/prod/transports/fetch.js.map +1 -0
- package/build/npm/cjs/prod/transports/offline.js +111 -0
- package/build/npm/cjs/prod/transports/offline.js.map +1 -0
- package/build/npm/cjs/prod/userfeedback.js +32 -0
- package/build/npm/cjs/prod/userfeedback.js.map +1 -0
- package/build/npm/cjs/prod/utils/detectBrowserExtension.js +38 -0
- package/build/npm/cjs/prod/utils/detectBrowserExtension.js.map +1 -0
- package/build/npm/cjs/prod/utils/lazyLoadIntegration.js +92 -0
- package/build/npm/cjs/prod/utils/lazyLoadIntegration.js.map +1 -0
- package/build/npm/esm/dev/client.js +74 -0
- package/build/npm/esm/dev/client.js.map +1 -0
- package/build/npm/esm/dev/debug-build.js +4 -0
- package/build/npm/esm/dev/debug-build.js.map +1 -0
- package/build/npm/esm/dev/diagnose-sdk.js +32 -0
- package/build/npm/esm/dev/diagnose-sdk.js.map +1 -0
- package/build/npm/esm/dev/eventbuilder.js +224 -0
- package/build/npm/esm/dev/eventbuilder.js.map +1 -0
- package/build/npm/esm/dev/feedbackAsync.js +9 -0
- package/build/npm/esm/dev/feedbackAsync.js.map +1 -0
- package/build/npm/esm/dev/feedbackSync.js +9 -0
- package/build/npm/esm/dev/feedbackSync.js.map +1 -0
- package/build/npm/esm/dev/helpers.js +102 -0
- package/build/npm/esm/dev/helpers.js.map +1 -0
- package/build/npm/esm/dev/index.js +48 -0
- package/build/npm/esm/dev/index.js.map +1 -0
- package/build/npm/esm/dev/integrations/breadcrumbs.js +247 -0
- package/build/npm/esm/dev/integrations/breadcrumbs.js.map +1 -0
- package/build/npm/esm/dev/integrations/browserapierrors.js +165 -0
- package/build/npm/esm/dev/integrations/browserapierrors.js.map +1 -0
- package/build/npm/esm/dev/integrations/browsersession.js +48 -0
- package/build/npm/esm/dev/integrations/browsersession.js.map +1 -0
- package/build/npm/esm/dev/integrations/contextlines.js +50 -0
- package/build/npm/esm/dev/integrations/contextlines.js.map +1 -0
- package/build/npm/esm/dev/integrations/culturecontext.js +48 -0
- package/build/npm/esm/dev/integrations/culturecontext.js.map +1 -0
- package/build/npm/esm/dev/integrations/featureFlags/growthbook/integration.js +6 -0
- package/build/npm/esm/dev/integrations/featureFlags/growthbook/integration.js.map +1 -0
- package/build/npm/esm/dev/integrations/featureFlags/launchdarkly/integration.js +27 -0
- package/build/npm/esm/dev/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
- package/build/npm/esm/dev/integrations/featureFlags/openfeature/integration.js +29 -0
- package/build/npm/esm/dev/integrations/featureFlags/openfeature/integration.js.map +1 -0
- package/build/npm/esm/dev/integrations/featureFlags/statsig/integration.js +21 -0
- package/build/npm/esm/dev/integrations/featureFlags/statsig/integration.js.map +1 -0
- package/build/npm/esm/dev/integrations/featureFlags/unleash/integration.js +35 -0
- package/build/npm/esm/dev/integrations/featureFlags/unleash/integration.js.map +1 -0
- package/build/npm/esm/dev/integrations/fetchStreamPerformance.js +58 -0
- package/build/npm/esm/dev/integrations/fetchStreamPerformance.js.map +1 -0
- package/build/npm/esm/dev/integrations/globalhandlers.js +139 -0
- package/build/npm/esm/dev/integrations/globalhandlers.js.map +1 -0
- package/build/npm/esm/dev/integrations/graphqlClient.js +142 -0
- package/build/npm/esm/dev/integrations/graphqlClient.js.map +1 -0
- package/build/npm/esm/dev/integrations/httpclient.js +248 -0
- package/build/npm/esm/dev/integrations/httpclient.js.map +1 -0
- package/build/npm/esm/dev/integrations/httpcontext.js +45 -0
- package/build/npm/esm/dev/integrations/httpcontext.js.map +1 -0
- package/build/npm/esm/dev/integrations/linkederrors.js +29 -0
- package/build/npm/esm/dev/integrations/linkederrors.js.map +1 -0
- package/build/npm/esm/dev/integrations/reportingobserver.js +58 -0
- package/build/npm/esm/dev/integrations/reportingobserver.js.map +1 -0
- package/build/npm/esm/dev/integrations/spanstreaming.js +47 -0
- package/build/npm/esm/dev/integrations/spanstreaming.js.map +1 -0
- package/build/npm/esm/dev/integrations/spotlight.js +57 -0
- package/build/npm/esm/dev/integrations/spotlight.js.map +1 -0
- package/build/npm/esm/dev/integrations/view-hierarchy.js +72 -0
- package/build/npm/esm/dev/integrations/view-hierarchy.js.map +1 -0
- package/build/npm/esm/dev/integrations/webVitals.js +59 -0
- package/build/npm/esm/dev/integrations/webVitals.js.map +1 -0
- package/build/npm/esm/dev/integrations/webWorker.js +129 -0
- package/build/npm/esm/dev/integrations/webWorker.js.map +1 -0
- package/build/npm/esm/dev/normalizeStringifyValue.js +25 -0
- package/build/npm/esm/dev/normalizeStringifyValue.js.map +1 -0
- package/build/npm/esm/dev/package.json +1 -0
- package/build/npm/esm/dev/profiling/UIProfiler.js +304 -0
- package/build/npm/esm/dev/profiling/UIProfiler.js.map +1 -0
- package/build/npm/esm/dev/profiling/index.js +36 -0
- package/build/npm/esm/dev/profiling/index.js.map +1 -0
- package/build/npm/esm/dev/profiling/integration.js +118 -0
- package/build/npm/esm/dev/profiling/integration.js.map +1 -0
- package/build/npm/esm/dev/profiling/startProfileForSpan.js +89 -0
- package/build/npm/esm/dev/profiling/startProfileForSpan.js.map +1 -0
- package/build/npm/esm/dev/profiling/utils.js +474 -0
- package/build/npm/esm/dev/profiling/utils.js.map +1 -0
- package/build/npm/esm/dev/report-dialog.js +51 -0
- package/build/npm/esm/dev/report-dialog.js.map +1 -0
- package/build/npm/esm/dev/sdk.js +65 -0
- package/build/npm/esm/dev/sdk.js.map +1 -0
- package/build/npm/esm/dev/stack-parsers.js +110 -0
- package/build/npm/esm/dev/stack-parsers.js.map +1 -0
- package/build/npm/esm/dev/tracing/backgroundtab.js +32 -0
- package/build/npm/esm/dev/tracing/backgroundtab.js.map +1 -0
- package/build/npm/esm/dev/tracing/browserTracingIntegration.js +429 -0
- package/build/npm/esm/dev/tracing/browserTracingIntegration.js.map +1 -0
- package/build/npm/esm/dev/tracing/linkedTraces.js +131 -0
- package/build/npm/esm/dev/tracing/linkedTraces.js.map +1 -0
- package/build/npm/esm/dev/tracing/reportPageLoaded.js +8 -0
- package/build/npm/esm/dev/tracing/reportPageLoaded.js.map +1 -0
- package/build/npm/esm/dev/tracing/request.js +232 -0
- package/build/npm/esm/dev/tracing/request.js.map +1 -0
- package/build/npm/esm/dev/tracing/setActiveSpan.js +19 -0
- package/build/npm/esm/dev/tracing/setActiveSpan.js.map +1 -0
- package/build/npm/esm/dev/tracing/utils.js +26 -0
- package/build/npm/esm/dev/tracing/utils.js.map +1 -0
- package/build/npm/esm/dev/transports/fetch.js +56 -0
- package/build/npm/esm/dev/transports/fetch.js.map +1 -0
- package/build/npm/esm/dev/transports/offline.js +105 -0
- package/build/npm/esm/dev/transports/offline.js.map +1 -0
- package/build/npm/esm/dev/userfeedback.js +30 -0
- package/build/npm/esm/dev/userfeedback.js.map +1 -0
- package/build/npm/esm/dev/utils/detectBrowserExtension.js +36 -0
- package/build/npm/esm/dev/utils/detectBrowserExtension.js.map +1 -0
- package/build/npm/esm/dev/utils/lazyLoadIntegration.js +89 -0
- package/build/npm/esm/dev/utils/lazyLoadIntegration.js.map +1 -0
- package/build/npm/esm/prod/client.js +74 -0
- package/build/npm/esm/prod/client.js.map +1 -0
- package/build/npm/esm/prod/debug-build.js +4 -0
- package/build/npm/esm/prod/debug-build.js.map +1 -0
- package/build/npm/esm/prod/diagnose-sdk.js +32 -0
- package/build/npm/esm/prod/diagnose-sdk.js.map +1 -0
- package/build/npm/esm/prod/eventbuilder.js +224 -0
- package/build/npm/esm/prod/eventbuilder.js.map +1 -0
- package/build/npm/esm/prod/feedbackAsync.js +9 -0
- package/build/npm/esm/prod/feedbackAsync.js.map +1 -0
- package/build/npm/esm/prod/feedbackSync.js +9 -0
- package/build/npm/esm/prod/feedbackSync.js.map +1 -0
- package/build/npm/esm/prod/helpers.js +102 -0
- package/build/npm/esm/prod/helpers.js.map +1 -0
- package/build/npm/esm/prod/index.js +48 -0
- package/build/npm/esm/prod/index.js.map +1 -0
- package/build/npm/esm/prod/integrations/breadcrumbs.js +247 -0
- package/build/npm/esm/prod/integrations/breadcrumbs.js.map +1 -0
- package/build/npm/esm/prod/integrations/browserapierrors.js +165 -0
- package/build/npm/esm/prod/integrations/browserapierrors.js.map +1 -0
- package/build/npm/esm/prod/integrations/browsersession.js +48 -0
- package/build/npm/esm/prod/integrations/browsersession.js.map +1 -0
- package/build/npm/esm/prod/integrations/contextlines.js +50 -0
- package/build/npm/esm/prod/integrations/contextlines.js.map +1 -0
- package/build/npm/esm/prod/integrations/culturecontext.js +48 -0
- package/build/npm/esm/prod/integrations/culturecontext.js.map +1 -0
- package/build/npm/esm/prod/integrations/featureFlags/growthbook/integration.js +6 -0
- package/build/npm/esm/prod/integrations/featureFlags/growthbook/integration.js.map +1 -0
- package/build/npm/esm/prod/integrations/featureFlags/launchdarkly/integration.js +27 -0
- package/build/npm/esm/prod/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
- package/build/npm/esm/prod/integrations/featureFlags/openfeature/integration.js +29 -0
- package/build/npm/esm/prod/integrations/featureFlags/openfeature/integration.js.map +1 -0
- package/build/npm/esm/prod/integrations/featureFlags/statsig/integration.js +21 -0
- package/build/npm/esm/prod/integrations/featureFlags/statsig/integration.js.map +1 -0
- package/build/npm/esm/prod/integrations/featureFlags/unleash/integration.js +35 -0
- package/build/npm/esm/prod/integrations/featureFlags/unleash/integration.js.map +1 -0
- package/build/npm/esm/prod/integrations/fetchStreamPerformance.js +58 -0
- package/build/npm/esm/prod/integrations/fetchStreamPerformance.js.map +1 -0
- package/build/npm/esm/prod/integrations/globalhandlers.js +139 -0
- package/build/npm/esm/prod/integrations/globalhandlers.js.map +1 -0
- package/build/npm/esm/prod/integrations/graphqlClient.js +142 -0
- package/build/npm/esm/prod/integrations/graphqlClient.js.map +1 -0
- package/build/npm/esm/prod/integrations/httpclient.js +248 -0
- package/build/npm/esm/prod/integrations/httpclient.js.map +1 -0
- package/build/npm/esm/prod/integrations/httpcontext.js +45 -0
- package/build/npm/esm/prod/integrations/httpcontext.js.map +1 -0
- package/build/npm/esm/prod/integrations/linkederrors.js +29 -0
- package/build/npm/esm/prod/integrations/linkederrors.js.map +1 -0
- package/build/npm/esm/prod/integrations/reportingobserver.js +58 -0
- package/build/npm/esm/prod/integrations/reportingobserver.js.map +1 -0
- package/build/npm/esm/prod/integrations/spanstreaming.js +47 -0
- package/build/npm/esm/prod/integrations/spanstreaming.js.map +1 -0
- package/build/npm/esm/prod/integrations/spotlight.js +57 -0
- package/build/npm/esm/prod/integrations/spotlight.js.map +1 -0
- package/build/npm/esm/prod/integrations/view-hierarchy.js +72 -0
- package/build/npm/esm/prod/integrations/view-hierarchy.js.map +1 -0
- package/build/npm/esm/prod/integrations/webVitals.js +59 -0
- package/build/npm/esm/prod/integrations/webVitals.js.map +1 -0
- package/build/npm/esm/prod/integrations/webWorker.js +129 -0
- package/build/npm/esm/prod/integrations/webWorker.js.map +1 -0
- package/build/npm/esm/prod/normalizeStringifyValue.js +25 -0
- package/build/npm/esm/prod/normalizeStringifyValue.js.map +1 -0
- package/build/npm/esm/prod/package.json +1 -0
- package/build/npm/esm/prod/profiling/UIProfiler.js +304 -0
- package/build/npm/esm/prod/profiling/UIProfiler.js.map +1 -0
- package/build/npm/esm/prod/profiling/index.js +36 -0
- package/build/npm/esm/prod/profiling/index.js.map +1 -0
- package/build/npm/esm/prod/profiling/integration.js +118 -0
- package/build/npm/esm/prod/profiling/integration.js.map +1 -0
- package/build/npm/esm/prod/profiling/startProfileForSpan.js +89 -0
- package/build/npm/esm/prod/profiling/startProfileForSpan.js.map +1 -0
- package/build/npm/esm/prod/profiling/utils.js +474 -0
- package/build/npm/esm/prod/profiling/utils.js.map +1 -0
- package/build/npm/esm/prod/report-dialog.js +51 -0
- package/build/npm/esm/prod/report-dialog.js.map +1 -0
- package/build/npm/esm/prod/sdk.js +55 -0
- package/build/npm/esm/prod/sdk.js.map +1 -0
- package/build/npm/esm/prod/stack-parsers.js +110 -0
- package/build/npm/esm/prod/stack-parsers.js.map +1 -0
- package/build/npm/esm/prod/tracing/backgroundtab.js +32 -0
- package/build/npm/esm/prod/tracing/backgroundtab.js.map +1 -0
- package/build/npm/esm/prod/tracing/browserTracingIntegration.js +429 -0
- package/build/npm/esm/prod/tracing/browserTracingIntegration.js.map +1 -0
- package/build/npm/esm/prod/tracing/linkedTraces.js +130 -0
- package/build/npm/esm/prod/tracing/linkedTraces.js.map +1 -0
- package/build/npm/esm/prod/tracing/reportPageLoaded.js +8 -0
- package/build/npm/esm/prod/tracing/reportPageLoaded.js.map +1 -0
- package/build/npm/esm/prod/tracing/request.js +232 -0
- package/build/npm/esm/prod/tracing/request.js.map +1 -0
- package/build/npm/esm/prod/tracing/setActiveSpan.js +19 -0
- package/build/npm/esm/prod/tracing/setActiveSpan.js.map +1 -0
- package/build/npm/esm/prod/tracing/utils.js +26 -0
- package/build/npm/esm/prod/tracing/utils.js.map +1 -0
- package/build/npm/esm/prod/transports/fetch.js +56 -0
- package/build/npm/esm/prod/transports/fetch.js.map +1 -0
- package/build/npm/esm/prod/transports/offline.js +105 -0
- package/build/npm/esm/prod/transports/offline.js.map +1 -0
- package/build/npm/esm/prod/userfeedback.js +30 -0
- package/build/npm/esm/prod/userfeedback.js.map +1 -0
- package/build/npm/esm/prod/utils/detectBrowserExtension.js +36 -0
- package/build/npm/esm/prod/utils/detectBrowserExtension.js.map +1 -0
- package/build/npm/esm/prod/utils/lazyLoadIntegration.js +89 -0
- package/build/npm/esm/prod/utils/lazyLoadIntegration.js.map +1 -0
- package/build/npm/types/client.d.ts +79 -0
- package/build/npm/types/client.d.ts.map +1 -0
- package/build/npm/types/debug-build.d.ts +7 -0
- package/build/npm/types/debug-build.d.ts.map +1 -0
- package/build/npm/types/diagnose-sdk.d.ts +11 -0
- package/build/npm/types/diagnose-sdk.d.ts.map +1 -0
- package/build/npm/types/eventbuilder.d.ts +40 -0
- package/build/npm/types/eventbuilder.d.ts.map +1 -0
- package/build/npm/types/exports.d.ts +21 -0
- package/build/npm/types/exports.d.ts.map +1 -0
- package/build/npm/types/feedbackAsync.d.ts +7 -0
- package/build/npm/types/feedbackAsync.d.ts.map +1 -0
- package/build/npm/types/feedbackSync.d.ts +4 -0
- package/build/npm/types/feedbackSync.d.ts.map +1 -0
- package/build/npm/types/helpers.d.ts +27 -0
- package/build/npm/types/helpers.d.ts.map +1 -0
- package/build/npm/types/index.bundle.base.d.ts +2 -0
- package/build/npm/types/index.bundle.base.d.ts.map +1 -0
- package/build/npm/types/index.bundle.d.ts +5 -0
- package/build/npm/types/index.bundle.d.ts.map +1 -0
- package/build/npm/types/index.bundle.feedback.d.ts +7 -0
- package/build/npm/types/index.bundle.feedback.d.ts.map +1 -0
- package/build/npm/types/index.bundle.logs.metrics.d.ts +6 -0
- package/build/npm/types/index.bundle.logs.metrics.d.ts.map +1 -0
- package/build/npm/types/index.bundle.replay.d.ts +6 -0
- package/build/npm/types/index.bundle.replay.d.ts.map +1 -0
- package/build/npm/types/index.bundle.replay.feedback.d.ts +8 -0
- package/build/npm/types/index.bundle.replay.feedback.d.ts.map +1 -0
- package/build/npm/types/index.bundle.replay.logs.metrics.d.ts +7 -0
- package/build/npm/types/index.bundle.replay.logs.metrics.d.ts.map +1 -0
- package/build/npm/types/index.bundle.tracing.d.ts +13 -0
- package/build/npm/types/index.bundle.tracing.d.ts.map +1 -0
- package/build/npm/types/index.bundle.tracing.logs.metrics.d.ts +13 -0
- package/build/npm/types/index.bundle.tracing.logs.metrics.d.ts.map +1 -0
- package/build/npm/types/index.bundle.tracing.replay.d.ts +14 -0
- package/build/npm/types/index.bundle.tracing.replay.d.ts.map +1 -0
- package/build/npm/types/index.bundle.tracing.replay.feedback.d.ts +16 -0
- package/build/npm/types/index.bundle.tracing.replay.feedback.d.ts.map +1 -0
- package/build/npm/types/index.bundle.tracing.replay.feedback.logs.metrics.d.ts +14 -0
- package/build/npm/types/index.bundle.tracing.replay.feedback.logs.metrics.d.ts.map +1 -0
- package/build/npm/types/index.bundle.tracing.replay.logs.metrics.d.ts +14 -0
- package/build/npm/types/index.bundle.tracing.replay.logs.metrics.d.ts.map +1 -0
- package/build/npm/types/index.d.ts +38 -0
- package/build/npm/types/index.d.ts.map +1 -0
- package/build/npm/types/integrations/breadcrumbs.d.ts +16 -0
- package/build/npm/types/integrations/breadcrumbs.d.ts.map +1 -0
- package/build/npm/types/integrations/browserapierrors.d.ts +23 -0
- package/build/npm/types/integrations/browserapierrors.d.ts.map +1 -0
- package/build/npm/types/integrations/browserprofiling.d.ts +2 -0
- package/build/npm/types/integrations/browserprofiling.d.ts.map +1 -0
- package/build/npm/types/integrations/browsersession.d.ts +25 -0
- package/build/npm/types/integrations/browsersession.d.ts.map +1 -0
- package/build/npm/types/integrations/contextlines.d.ts +32 -0
- package/build/npm/types/integrations/contextlines.d.ts.map +1 -0
- package/build/npm/types/integrations/culturecontext.d.ts +18 -0
- package/build/npm/types/integrations/culturecontext.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/growthbook/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/growthbook/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/growthbook/integration.d.ts +25 -0
- package/build/npm/types/integrations/featureFlags/growthbook/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/growthbook/types.d.ts +6 -0
- package/build/npm/types/integrations/featureFlags/growthbook/types.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/integration.d.ts +27 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/types.d.ts +44 -0
- package/build/npm/types/integrations/featureFlags/launchdarkly/types.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/openfeature/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/openfeature/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/openfeature/integration.d.ts +18 -0
- package/build/npm/types/integrations/featureFlags/openfeature/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts +78 -0
- package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/statsig/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/statsig/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/statsig/integration.d.ts +30 -0
- package/build/npm/types/integrations/featureFlags/statsig/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/statsig/types.d.ts +14 -0
- package/build/npm/types/integrations/featureFlags/statsig/types.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/unleash/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/unleash/index.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/unleash/integration.d.ts +31 -0
- package/build/npm/types/integrations/featureFlags/unleash/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/unleash/types.d.ts +21 -0
- package/build/npm/types/integrations/featureFlags/unleash/types.d.ts.map +1 -0
- package/build/npm/types/integrations/fetchStreamPerformance.d.ts +16 -0
- package/build/npm/types/integrations/fetchStreamPerformance.d.ts.map +1 -0
- package/build/npm/types/integrations/globalhandlers.d.ts +19 -0
- package/build/npm/types/integrations/globalhandlers.d.ts.map +1 -0
- package/build/npm/types/integrations/graphqlClient.d.ts +60 -0
- package/build/npm/types/integrations/graphqlClient.d.ts.map +1 -0
- package/build/npm/types/integrations/httpclient.d.ts +29 -0
- package/build/npm/types/integrations/httpclient.d.ts.map +1 -0
- package/build/npm/types/integrations/httpcontext.d.ts +8 -0
- package/build/npm/types/integrations/httpcontext.d.ts.map +1 -0
- package/build/npm/types/integrations/linkederrors.d.ts +12 -0
- package/build/npm/types/integrations/linkederrors.d.ts.map +1 -0
- package/build/npm/types/integrations/reportingobserver.d.ts +12 -0
- package/build/npm/types/integrations/reportingobserver.d.ts.map +1 -0
- package/build/npm/types/integrations/spanstreaming.d.ts +4 -0
- package/build/npm/types/integrations/spanstreaming.d.ts.map +1 -0
- package/build/npm/types/integrations/spotlight.d.ts +21 -0
- package/build/npm/types/integrations/spotlight.d.ts.map +1 -0
- package/build/npm/types/integrations/view-hierarchy.d.ts +51 -0
- package/build/npm/types/integrations/view-hierarchy.d.ts.map +1 -0
- package/build/npm/types/integrations/webVitals.d.ts +26 -0
- package/build/npm/types/integrations/webVitals.d.ts.map +1 -0
- package/build/npm/types/integrations/webWorker.d.ts +129 -0
- package/build/npm/types/integrations/webWorker.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.captureconsole.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.captureconsole.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.createlangchaincallbackhandler.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.createlangchaincallbackhandler.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.dedupe.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.dedupe.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.extraerrordata.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.extraerrordata.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.feedback.d.ts +5 -0
- package/build/npm/types/integrations-bundle/index.feedback.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.graphqlclient.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.graphqlclient.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.instrumentanthropicaiclient.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.instrumentanthropicaiclient.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.instrumentgooglegenaiclient.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.instrumentgooglegenaiclient.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.instrumentlangchainembeddings.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.instrumentlangchainembeddings.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.instrumentlanggraph.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.instrumentlanggraph.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.instrumentopenaiclient.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.instrumentopenaiclient.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.instrumentstategraph.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.instrumentstategraph.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.modulemetadata.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.modulemetadata.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.rewriteframes.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.rewriteframes.d.ts.map +1 -0
- package/build/npm/types/integrations-bundle/index.spotlight.d.ts +2 -0
- package/build/npm/types/integrations-bundle/index.spotlight.d.ts.map +1 -0
- package/build/npm/types/normalizeStringifyValue.d.ts +15 -0
- package/build/npm/types/normalizeStringifyValue.d.ts.map +1 -0
- package/build/npm/types/pluggable-exports-bundle/index.multiplexedtransport.d.ts +2 -0
- package/build/npm/types/pluggable-exports-bundle/index.multiplexedtransport.d.ts.map +1 -0
- package/build/npm/types/profiling/UIProfiler.d.ts +75 -0
- package/build/npm/types/profiling/UIProfiler.d.ts.map +1 -0
- package/build/npm/types/profiling/index.d.ts +8 -0
- package/build/npm/types/profiling/index.d.ts.map +1 -0
- package/build/npm/types/profiling/integration.d.ts +4 -0
- package/build/npm/types/profiling/integration.d.ts.map +1 -0
- package/build/npm/types/profiling/jsSelfProfiling.d.ts +41 -0
- package/build/npm/types/profiling/jsSelfProfiling.d.ts.map +1 -0
- package/build/npm/types/profiling/startProfileForSpan.d.ts +8 -0
- package/build/npm/types/profiling/startProfileForSpan.d.ts.map +1 -0
- package/build/npm/types/profiling/utils.d.ts +112 -0
- package/build/npm/types/profiling/utils.d.ts.map +1 -0
- package/build/npm/types/report-dialog.d.ts +8 -0
- package/build/npm/types/report-dialog.d.ts.map +1 -0
- package/build/npm/types/sdk.d.ts +62 -0
- package/build/npm/types/sdk.d.ts.map +1 -0
- package/build/npm/types/stack-parsers.d.ts +9 -0
- package/build/npm/types/stack-parsers.d.ts.map +1 -0
- package/build/npm/types/tracing/backgroundtab.d.ts +6 -0
- package/build/npm/types/tracing/backgroundtab.d.ts.map +1 -0
- package/build/npm/types/tracing/browserTracingIntegration.d.ts +271 -0
- package/build/npm/types/tracing/browserTracingIntegration.d.ts.map +1 -0
- package/build/npm/types/tracing/linkedTraces.d.ts +52 -0
- package/build/npm/types/tracing/linkedTraces.d.ts.map +1 -0
- package/build/npm/types/tracing/reportPageLoaded.d.ts +11 -0
- package/build/npm/types/tracing/reportPageLoaded.d.ts.map +1 -0
- package/build/npm/types/tracing/request.d.ts +87 -0
- package/build/npm/types/tracing/request.d.ts.map +1 -0
- package/build/npm/types/tracing/setActiveSpan.d.ts +39 -0
- package/build/npm/types/tracing/setActiveSpan.d.ts.map +1 -0
- package/build/npm/types/tracing/utils.d.ts +17 -0
- package/build/npm/types/tracing/utils.d.ts.map +1 -0
- package/build/npm/types/transports/fetch.d.ts +8 -0
- package/build/npm/types/transports/fetch.d.ts.map +1 -0
- package/build/npm/types/transports/offline.d.ts +33 -0
- package/build/npm/types/transports/offline.d.ts.map +1 -0
- package/build/npm/types/transports/types.d.ts +6 -0
- package/build/npm/types/transports/types.d.ts.map +1 -0
- package/build/npm/types/userfeedback.d.ts +10 -0
- package/build/npm/types/userfeedback.d.ts.map +1 -0
- package/build/npm/types/utils/detectBrowserExtension.d.ts +6 -0
- package/build/npm/types/utils/detectBrowserExtension.d.ts.map +1 -0
- package/build/npm/types/utils/lazyLoadIntegration.d.ts +13 -0
- package/build/npm/types/utils/lazyLoadIntegration.d.ts.map +1 -0
- package/build/npm/types-ts3.8/client.d.ts +79 -0
- package/build/npm/types-ts3.8/debug-build.d.ts +7 -0
- package/build/npm/types-ts3.8/diagnose-sdk.d.ts +11 -0
- package/build/npm/types-ts3.8/eventbuilder.d.ts +40 -0
- package/build/npm/types-ts3.8/exports.d.ts +21 -0
- package/build/npm/types-ts3.8/feedbackAsync.d.ts +7 -0
- package/build/npm/types-ts3.8/feedbackSync.d.ts +4 -0
- package/build/npm/types-ts3.8/helpers.d.ts +27 -0
- package/build/npm/types-ts3.8/index.bundle.base.d.ts +2 -0
- package/build/npm/types-ts3.8/index.bundle.d.ts +5 -0
- package/build/npm/types-ts3.8/index.bundle.feedback.d.ts +7 -0
- package/build/npm/types-ts3.8/index.bundle.logs.metrics.d.ts +6 -0
- package/build/npm/types-ts3.8/index.bundle.replay.d.ts +6 -0
- package/build/npm/types-ts3.8/index.bundle.replay.feedback.d.ts +8 -0
- package/build/npm/types-ts3.8/index.bundle.replay.logs.metrics.d.ts +7 -0
- package/build/npm/types-ts3.8/index.bundle.tracing.d.ts +13 -0
- package/build/npm/types-ts3.8/index.bundle.tracing.logs.metrics.d.ts +13 -0
- package/build/npm/types-ts3.8/index.bundle.tracing.replay.d.ts +14 -0
- package/build/npm/types-ts3.8/index.bundle.tracing.replay.feedback.d.ts +16 -0
- package/build/npm/types-ts3.8/index.bundle.tracing.replay.feedback.logs.metrics.d.ts +14 -0
- package/build/npm/types-ts3.8/index.bundle.tracing.replay.logs.metrics.d.ts +14 -0
- package/build/npm/types-ts3.8/index.d.ts +38 -0
- package/build/npm/types-ts3.8/integrations/breadcrumbs.d.ts +16 -0
- package/build/npm/types-ts3.8/integrations/browserapierrors.d.ts +23 -0
- package/build/npm/types-ts3.8/integrations/browserprofiling.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/browsersession.d.ts +25 -0
- package/build/npm/types-ts3.8/integrations/contextlines.d.ts +32 -0
- package/build/npm/types-ts3.8/integrations/culturecontext.d.ts +18 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/integration.d.ts +25 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/types.d.ts +6 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/integration.d.ts +27 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/types.d.ts +44 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/integration.d.ts +18 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/types.d.ts +78 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/statsig/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/statsig/integration.d.ts +30 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/statsig/types.d.ts +14 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/unleash/index.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/unleash/integration.d.ts +31 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/unleash/types.d.ts +21 -0
- package/build/npm/types-ts3.8/integrations/fetchStreamPerformance.d.ts +16 -0
- package/build/npm/types-ts3.8/integrations/globalhandlers.d.ts +19 -0
- package/build/npm/types-ts3.8/integrations/graphqlClient.d.ts +60 -0
- package/build/npm/types-ts3.8/integrations/httpclient.d.ts +32 -0
- package/build/npm/types-ts3.8/integrations/httpcontext.d.ts +8 -0
- package/build/npm/types-ts3.8/integrations/linkederrors.d.ts +12 -0
- package/build/npm/types-ts3.8/integrations/reportingobserver.d.ts +12 -0
- package/build/npm/types-ts3.8/integrations/spanstreaming.d.ts +4 -0
- package/build/npm/types-ts3.8/integrations/spotlight.d.ts +21 -0
- package/build/npm/types-ts3.8/integrations/view-hierarchy.d.ts +51 -0
- package/build/npm/types-ts3.8/integrations/webVitals.d.ts +26 -0
- package/build/npm/types-ts3.8/integrations/webWorker.d.ts +129 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.captureconsole.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.createlangchaincallbackhandler.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.dedupe.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.extraerrordata.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.feedback.d.ts +5 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.graphqlclient.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentanthropicaiclient.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentgooglegenaiclient.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentlangchainembeddings.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentlanggraph.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentopenaiclient.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentstategraph.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.modulemetadata.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.rewriteframes.d.ts +2 -0
- package/build/npm/types-ts3.8/integrations-bundle/index.spotlight.d.ts +2 -0
- package/build/npm/types-ts3.8/normalizeStringifyValue.d.ts +15 -0
- package/build/npm/types-ts3.8/pluggable-exports-bundle/index.multiplexedtransport.d.ts +2 -0
- package/build/npm/types-ts3.8/profiling/UIProfiler.d.ts +75 -0
- package/build/npm/types-ts3.8/profiling/index.d.ts +8 -0
- package/build/npm/types-ts3.8/profiling/integration.d.ts +4 -0
- package/build/npm/types-ts3.8/profiling/jsSelfProfiling.d.ts +41 -0
- package/build/npm/types-ts3.8/profiling/startProfileForSpan.d.ts +8 -0
- package/build/npm/types-ts3.8/profiling/utils.d.ts +112 -0
- package/build/npm/types-ts3.8/report-dialog.d.ts +8 -0
- package/build/npm/types-ts3.8/sdk.d.ts +62 -0
- package/build/npm/types-ts3.8/stack-parsers.d.ts +9 -0
- package/build/npm/types-ts3.8/tracing/backgroundtab.d.ts +6 -0
- package/build/npm/types-ts3.8/tracing/browserTracingIntegration.d.ts +271 -0
- package/build/npm/types-ts3.8/tracing/linkedTraces.d.ts +52 -0
- package/build/npm/types-ts3.8/tracing/reportPageLoaded.d.ts +11 -0
- package/build/npm/types-ts3.8/tracing/request.d.ts +87 -0
- package/build/npm/types-ts3.8/tracing/setActiveSpan.d.ts +39 -0
- package/build/npm/types-ts3.8/tracing/utils.d.ts +17 -0
- package/build/npm/types-ts3.8/transports/fetch.d.ts +8 -0
- package/build/npm/types-ts3.8/transports/offline.d.ts +33 -0
- package/build/npm/types-ts3.8/transports/types.d.ts +6 -0
- package/build/npm/types-ts3.8/userfeedback.d.ts +10 -0
- package/build/npm/types-ts3.8/utils/detectBrowserExtension.d.ts +6 -0
- package/build/npm/types-ts3.8/utils/lazyLoadIntegration.d.ts +37 -0
- package/package.json +85 -4
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { inboundFiltersIntegration, functionToStringIntegration, conversationIdIntegration, dedupeIntegration, getIntegrationsToSetup, stackParserFromStackParserOptions, setNormalizeStringifier, initAndBind } from '@elenjical/core/browser';
|
|
2
|
+
import { BrowserClient } from './client.js';
|
|
3
|
+
import { breadcrumbsIntegration } from './integrations/breadcrumbs.js';
|
|
4
|
+
import { browserApiErrorsIntegration } from './integrations/browserapierrors.js';
|
|
5
|
+
import { browserSessionIntegration } from './integrations/browsersession.js';
|
|
6
|
+
import { cultureContextIntegration } from './integrations/culturecontext.js';
|
|
7
|
+
import { globalHandlersIntegration } from './integrations/globalhandlers.js';
|
|
8
|
+
import { httpContextIntegration } from './integrations/httpcontext.js';
|
|
9
|
+
import { linkedErrorsIntegration } from './integrations/linkederrors.js';
|
|
10
|
+
import { defaultStackParser } from './stack-parsers.js';
|
|
11
|
+
import { makeFetchTransport } from './transports/fetch.js';
|
|
12
|
+
import { normalizeStringifyValue } from './normalizeStringifyValue.js';
|
|
13
|
+
import { checkAndWarnIfIsEmbeddedBrowserExtension } from './utils/detectBrowserExtension.js';
|
|
14
|
+
|
|
15
|
+
function getDefaultIntegrations(_options) {
|
|
16
|
+
return [
|
|
17
|
+
// TODO(v11): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`
|
|
18
|
+
// eslint-disable-next-line typescript/no-deprecated
|
|
19
|
+
inboundFiltersIntegration(),
|
|
20
|
+
functionToStringIntegration(),
|
|
21
|
+
conversationIdIntegration(),
|
|
22
|
+
browserApiErrorsIntegration(),
|
|
23
|
+
breadcrumbsIntegration(),
|
|
24
|
+
globalHandlersIntegration(),
|
|
25
|
+
linkedErrorsIntegration(),
|
|
26
|
+
dedupeIntegration(),
|
|
27
|
+
httpContextIntegration(),
|
|
28
|
+
cultureContextIntegration(),
|
|
29
|
+
browserSessionIntegration()
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
function init(options = {}) {
|
|
33
|
+
const shouldDisableBecauseIsBrowserExtenstion = !options.skipBrowserExtensionCheck && checkAndWarnIfIsEmbeddedBrowserExtension();
|
|
34
|
+
let defaultIntegrations = options.defaultIntegrations == null ? getDefaultIntegrations() : options.defaultIntegrations;
|
|
35
|
+
const clientOptions = {
|
|
36
|
+
...options,
|
|
37
|
+
enabled: shouldDisableBecauseIsBrowserExtenstion ? false : options.enabled,
|
|
38
|
+
stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser),
|
|
39
|
+
integrations: getIntegrationsToSetup({
|
|
40
|
+
integrations: options.integrations,
|
|
41
|
+
defaultIntegrations
|
|
42
|
+
}),
|
|
43
|
+
transport: options.transport || makeFetchTransport
|
|
44
|
+
};
|
|
45
|
+
setNormalizeStringifier(normalizeStringifyValue);
|
|
46
|
+
return initAndBind(BrowserClient, clientOptions);
|
|
47
|
+
}
|
|
48
|
+
function forceLoad() {
|
|
49
|
+
}
|
|
50
|
+
function onLoad(callback) {
|
|
51
|
+
callback();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { forceLoad, getDefaultIntegrations, init, onLoad };
|
|
55
|
+
//# sourceMappingURL=sdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../../../src/sdk.ts"],"sourcesContent":["import type { Client, Integration, Options } from '@elenjical/core/browser';\nimport {\n conversationIdIntegration,\n dedupeIntegration,\n functionToStringIntegration,\n getIntegrationsToSetup,\n inboundFiltersIntegration,\n initAndBind,\n setNormalizeStringifier,\n stackParserFromStackParserOptions,\n} from '@elenjical/core/browser';\nimport type { BrowserClientOptions, BrowserOptions } from './client';\nimport { BrowserClient } from './client';\nimport { breadcrumbsIntegration } from './integrations/breadcrumbs';\nimport { browserApiErrorsIntegration } from './integrations/browserapierrors';\nimport { browserSessionIntegration } from './integrations/browsersession';\nimport { cultureContextIntegration } from './integrations/culturecontext';\nimport { globalHandlersIntegration } from './integrations/globalhandlers';\nimport { httpContextIntegration } from './integrations/httpcontext';\nimport { linkedErrorsIntegration } from './integrations/linkederrors';\nimport { spotlightBrowserIntegration } from './integrations/spotlight';\nimport { defaultStackParser } from './stack-parsers';\nimport { makeFetchTransport } from './transports/fetch';\nimport { normalizeStringifyValue } from './normalizeStringifyValue';\nimport { checkAndWarnIfIsEmbeddedBrowserExtension } from './utils/detectBrowserExtension';\n\n/** Get the default integrations for the browser SDK. */\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n /**\n * Note: Please make sure this stays in sync with Angular SDK, which re-exports\n * `getDefaultIntegrations` but with an adjusted set of integrations.\n */\n return [\n // TODO(v11): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`\n // eslint-disable-next-line typescript/no-deprecated\n inboundFiltersIntegration(),\n functionToStringIntegration(),\n conversationIdIntegration(),\n browserApiErrorsIntegration(),\n breadcrumbsIntegration(),\n globalHandlersIntegration(),\n linkedErrorsIntegration(),\n dedupeIntegration(),\n httpContextIntegration(),\n cultureContextIntegration(),\n browserSessionIntegration(),\n ];\n}\n\n/**\n * The Elenjical Browser SDK Client.\n *\n * To use this SDK, call the {@link init} function as early as possible when\n * loading the web page. To set context information or send manual events, use\n * the provided methods.\n *\n * @example\n *\n * ```\n *\n * import { init } from '@elenjical/browser';\n *\n * init({\n * dsn: '__DSN__',\n * // ...\n * });\n * ```\n *\n * @example\n * ```\n *\n * import { addBreadcrumb } from '@elenjical/browser';\n * addBreadcrumb({\n * message: 'My Breadcrumb',\n * // ...\n * });\n * ```\n *\n * @example\n *\n * ```\n *\n * import * as Elenjical from '@elenjical/browser';\n * Elenjical.captureMessage('Hello, world!');\n * Elenjical.captureException(new Error('Good bye'));\n * Elenjical.captureEvent({\n * message: 'Manual',\n * stacktrace: [\n * // ...\n * ],\n * });\n * ```\n *\n * @see {@link BrowserOptions} for documentation on configuration options.\n */\nexport function init(options: BrowserOptions = {}): Client | undefined {\n const shouldDisableBecauseIsBrowserExtenstion =\n !options.skipBrowserExtensionCheck && checkAndWarnIfIsEmbeddedBrowserExtension();\n\n let defaultIntegrations =\n options.defaultIntegrations == null ? getDefaultIntegrations(options) : options.defaultIntegrations;\n\n /*! rollup-include-development-only */\n if (options.spotlight) {\n if (!defaultIntegrations) {\n defaultIntegrations = [];\n }\n const args = typeof options.spotlight === 'string' ? { sidecarUrl: options.spotlight } : undefined;\n defaultIntegrations.push(spotlightBrowserIntegration(args));\n }\n /*! rollup-include-development-only-end */\n\n const clientOptions: BrowserClientOptions = {\n ...options,\n enabled: shouldDisableBecauseIsBrowserExtenstion ? false : options.enabled,\n stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser),\n integrations: getIntegrationsToSetup({\n integrations: options.integrations,\n defaultIntegrations,\n }),\n transport: options.transport || makeFetchTransport,\n };\n\n setNormalizeStringifier(normalizeStringifyValue);\n\n return initAndBind(BrowserClient, clientOptions);\n}\n\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\nexport function forceLoad(): void {\n // Noop\n}\n\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\nexport function onLoad(callback: () => void): void {\n callback();\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA2BO,SAAS,uBAAuB,QAAA,EAAkC;AAKvE,EAAA,OAAO;AAAA;AAAA;AAAA,IAGL,yBAAA,EAA0B;AAAA,IAC1B,2BAAA,EAA4B;AAAA,IAC5B,yBAAA,EAA0B;AAAA,IAC1B,2BAAA,EAA4B;AAAA,IAC5B,sBAAA,EAAuB;AAAA,IACvB,yBAAA,EAA0B;AAAA,IAC1B,uBAAA,EAAwB;AAAA,IACxB,iBAAA,EAAkB;AAAA,IAClB,sBAAA,EAAuB;AAAA,IACvB,yBAAA,EAA0B;AAAA,IAC1B,yBAAA;AAA0B,GAC5B;AACF;AAgDO,SAAS,IAAA,CAAK,OAAA,GAA0B,EAAC,EAAuB;AACrE,EAAA,MAAM,uCAAA,GACJ,CAAC,OAAA,CAAQ,yBAAA,IAA6B,wCAAA,EAAyC;AAEjF,EAAA,IAAI,sBACF,OAAA,CAAQ,mBAAA,IAAuB,OAAO,sBAAA,CAA8B,IAAI,OAAA,CAAQ,mBAAA;AAElF,EAAA,MAAM,aAAA,GAAsC;AAAA,IAC1C,GAAG,OAAA;AAAA,IACH,OAAA,EAAS,uCAAA,GAA0C,KAAA,GAAQ,OAAA,CAAQ,OAAA;AAAA,IACnE,WAAA,EAAa,iCAAA,CAAkC,OAAA,CAAQ,WAAA,IAAe,kBAAkB,CAAA;AAAA,IACxF,cAAc,sBAAA,CAAuB;AAAA,MACnC,cAAc,OAAA,CAAQ,YAAA;AAAA,MACtB;AAAA,KACD,CAAA;AAAA,IACD,SAAA,EAAW,QAAQ,SAAA,IAAa;AAAA,GAClC;AAEA,EAAA,uBAAA,CAAwB,uBAAuB,CAAA;AAE/C,EAAA,OAAO,WAAA,CAAY,eAAe,aAAa,CAAA;AACjD;AAMO,SAAS,SAAA,GAAkB;AAElC;AAMO,SAAS,OAAO,QAAA,EAA4B;AACjD,EAAA,QAAA,EAAS;AACX;;;;"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { createStackParser, UNKNOWN_FUNCTION } from '@elenjical/core/browser';
|
|
2
|
+
|
|
3
|
+
const OPERA10_PRIORITY = 10;
|
|
4
|
+
const OPERA11_PRIORITY = 20;
|
|
5
|
+
const CHROME_PRIORITY = 30;
|
|
6
|
+
const WINJS_PRIORITY = 40;
|
|
7
|
+
const GECKO_PRIORITY = 50;
|
|
8
|
+
function createFrame(filename, func, lineno, colno) {
|
|
9
|
+
const frame = {
|
|
10
|
+
filename,
|
|
11
|
+
function: func === "<anonymous>" ? UNKNOWN_FUNCTION : func,
|
|
12
|
+
in_app: true
|
|
13
|
+
// All browser frames are considered in_app
|
|
14
|
+
};
|
|
15
|
+
if (lineno !== void 0) {
|
|
16
|
+
frame.lineno = lineno;
|
|
17
|
+
}
|
|
18
|
+
if (colno !== void 0) {
|
|
19
|
+
frame.colno = colno;
|
|
20
|
+
}
|
|
21
|
+
return frame;
|
|
22
|
+
}
|
|
23
|
+
const chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
|
|
24
|
+
const chromeRegex = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
|
|
25
|
+
const chromeEvalRegex = /\((\S*)(?::(\d+))(?::(\d+))\)/;
|
|
26
|
+
const chromeDataUriRegex = /at (.+?) ?\(data:(.+?),/;
|
|
27
|
+
const chromeStackParserFn = (line) => {
|
|
28
|
+
const dataUriMatch = line.match(chromeDataUriRegex);
|
|
29
|
+
if (dataUriMatch) {
|
|
30
|
+
return {
|
|
31
|
+
filename: `<data:${dataUriMatch[2]}>`,
|
|
32
|
+
function: dataUriMatch[1]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
const noFnParts = chromeRegexNoFnName.exec(line);
|
|
36
|
+
if (noFnParts) {
|
|
37
|
+
const [, filename, line2, col] = noFnParts;
|
|
38
|
+
return createFrame(filename, UNKNOWN_FUNCTION, +line2, +col);
|
|
39
|
+
}
|
|
40
|
+
const parts = chromeRegex.exec(line);
|
|
41
|
+
if (parts) {
|
|
42
|
+
const isEval = parts[2]?.indexOf("eval") === 0;
|
|
43
|
+
if (isEval) {
|
|
44
|
+
const subMatch = chromeEvalRegex.exec(parts[2]);
|
|
45
|
+
if (subMatch) {
|
|
46
|
+
parts[2] = subMatch[1];
|
|
47
|
+
parts[3] = subMatch[2];
|
|
48
|
+
parts[4] = subMatch[3];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const [func, filename] = extractSafariExtensionDetails(parts[1] || UNKNOWN_FUNCTION, parts[2]);
|
|
52
|
+
return createFrame(filename, func, parts[3] ? +parts[3] : void 0, parts[4] ? +parts[4] : void 0);
|
|
53
|
+
}
|
|
54
|
+
return;
|
|
55
|
+
};
|
|
56
|
+
const chromeStackLineParser = [CHROME_PRIORITY, chromeStackParserFn];
|
|
57
|
+
const geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
|
|
58
|
+
const geckoEvalRegex = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
|
|
59
|
+
const gecko = (line) => {
|
|
60
|
+
const parts = geckoREgex.exec(line);
|
|
61
|
+
if (parts) {
|
|
62
|
+
const isEval = parts[3] && parts[3].indexOf(" > eval") > -1;
|
|
63
|
+
if (isEval) {
|
|
64
|
+
const subMatch = geckoEvalRegex.exec(parts[3]);
|
|
65
|
+
if (subMatch) {
|
|
66
|
+
parts[1] = parts[1] || "eval";
|
|
67
|
+
parts[3] = subMatch[1];
|
|
68
|
+
parts[4] = subMatch[2];
|
|
69
|
+
parts[5] = "";
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
let filename = parts[3];
|
|
73
|
+
let func = parts[1] || UNKNOWN_FUNCTION;
|
|
74
|
+
[func, filename] = extractSafariExtensionDetails(func, filename);
|
|
75
|
+
return createFrame(filename, func, parts[4] ? +parts[4] : void 0, parts[5] ? +parts[5] : void 0);
|
|
76
|
+
}
|
|
77
|
+
return;
|
|
78
|
+
};
|
|
79
|
+
const geckoStackLineParser = [GECKO_PRIORITY, gecko];
|
|
80
|
+
const winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
81
|
+
const winjs = (line) => {
|
|
82
|
+
const parts = winjsRegex.exec(line);
|
|
83
|
+
return parts ? createFrame(parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : void 0) : void 0;
|
|
84
|
+
};
|
|
85
|
+
const winjsStackLineParser = [WINJS_PRIORITY, winjs];
|
|
86
|
+
const opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
|
|
87
|
+
const opera10 = (line) => {
|
|
88
|
+
const parts = opera10Regex.exec(line);
|
|
89
|
+
return parts ? createFrame(parts[2], parts[3] || UNKNOWN_FUNCTION, +parts[1]) : void 0;
|
|
90
|
+
};
|
|
91
|
+
const opera10StackLineParser = [OPERA10_PRIORITY, opera10];
|
|
92
|
+
const opera11Regex = / line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i;
|
|
93
|
+
const opera11 = (line) => {
|
|
94
|
+
const parts = opera11Regex.exec(line);
|
|
95
|
+
return parts ? createFrame(parts[5], parts[3] || parts[4] || UNKNOWN_FUNCTION, +parts[1], +parts[2]) : void 0;
|
|
96
|
+
};
|
|
97
|
+
const opera11StackLineParser = [OPERA11_PRIORITY, opera11];
|
|
98
|
+
const defaultStackLineParsers = [chromeStackLineParser, geckoStackLineParser];
|
|
99
|
+
const defaultStackParser = createStackParser(...defaultStackLineParsers);
|
|
100
|
+
const extractSafariExtensionDetails = (func, filename) => {
|
|
101
|
+
const isSafariExtension = func.indexOf("safari-extension") !== -1;
|
|
102
|
+
const isSafariWebExtension = func.indexOf("safari-web-extension") !== -1;
|
|
103
|
+
return isSafariExtension || isSafariWebExtension ? [
|
|
104
|
+
func.indexOf("@") !== -1 ? func.split("@")[0] : UNKNOWN_FUNCTION,
|
|
105
|
+
isSafariExtension ? `safari-extension:${filename}` : `safari-web-extension:${filename}`
|
|
106
|
+
] : [func, filename];
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export { chromeStackLineParser, defaultStackLineParsers, defaultStackParser, geckoStackLineParser, opera10StackLineParser, opera11StackLineParser, winjsStackLineParser };
|
|
110
|
+
//# sourceMappingURL=stack-parsers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack-parsers.js","sources":["../../../../src/stack-parsers.ts"],"sourcesContent":["// This was originally forked from https://github.com/csnover/TraceKit, and was largely\n// re - written as part of raven - js.\n//\n// This code was later copied to the JavaScript mono - repo and further modified and\n// refactored over the years.\n\n// Copyright (c) 2013 Onur Can Cakmak onur.cakmak@gmail.com and all TraceKit contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this\n// software and associated documentation files(the 'Software'), to deal in the Software\n// without restriction, including without limitation the rights to use, copy, modify,\n// merge, publish, distribute, sublicense, and / or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to the following\n// conditions:\n//\n// The above copyright notice and this permission notice shall be included in all copies\n// or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n// PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF\n// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE\n// OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nimport type { StackFrame, StackLineParser, StackLineParserFn } from '@elenjical/core/browser';\nimport { createStackParser, UNKNOWN_FUNCTION } from '@elenjical/core/browser';\n\nconst OPERA10_PRIORITY = 10;\nconst OPERA11_PRIORITY = 20;\nconst CHROME_PRIORITY = 30;\nconst WINJS_PRIORITY = 40;\nconst GECKO_PRIORITY = 50;\n\nfunction createFrame(filename: string, func: string, lineno?: number, colno?: number): StackFrame {\n const frame: StackFrame = {\n filename,\n function: func === '<anonymous>' ? UNKNOWN_FUNCTION : func,\n in_app: true, // All browser frames are considered in_app\n };\n\n if (lineno !== undefined) {\n frame.lineno = lineno;\n }\n\n if (colno !== undefined) {\n frame.colno = colno;\n }\n\n return frame;\n}\n\n// This regex matches frames that have no function name (ie. are at the top level of a module).\n// For example \"at http://localhost:5000//script.js:1:126\"\n// Frames _with_ function names usually look as follows: \"at commitLayoutEffects (react-dom.development.js:23426:1)\"\nconst chromeRegexNoFnName = /^\\s*at (\\S+?)(?::(\\d+))(?::(\\d+))\\s*$/i;\n\n// This regex matches all the frames that have a function name.\nconst chromeRegex =\n /^\\s*at (?:(.+?\\)(?: \\[.+\\])?|.*?) ?\\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\\/)?.*?)(?::(\\d+))?(?::(\\d+))?\\)?\\s*$/i;\n\nconst chromeEvalRegex = /\\((\\S*)(?::(\\d+))(?::(\\d+))\\)/;\n\n// Matches stack frames with data URIs instead of filename so we can still get the function name\n// Example: \"at dynamicFn (data:application/javascript,export function dynamicFn() {...\"\nconst chromeDataUriRegex = /at (.+?) ?\\(data:(.+?),/;\n\n// Chromium based browsers: Chrome, Brave, new Opera, new Edge\n// We cannot call this variable `chrome` because it can conflict with global `chrome` variable in certain environments\n// See: https://github.com/getsentry/sentry-javascript/issues/6880\nconst chromeStackParserFn: StackLineParserFn = line => {\n const dataUriMatch = line.match(chromeDataUriRegex);\n if (dataUriMatch) {\n return {\n filename: `<data:${dataUriMatch[2]}>`,\n function: dataUriMatch[1],\n };\n }\n\n // If the stack line has no function name, we need to parse it differently\n const noFnParts = chromeRegexNoFnName.exec(line) as null | [string, string, string, string];\n\n if (noFnParts) {\n const [, filename, line, col] = noFnParts;\n return createFrame(filename, UNKNOWN_FUNCTION, +line, +col);\n }\n\n const parts = chromeRegex.exec(line) as null | [string, string, string, string, string];\n\n if (parts) {\n const isEval = parts[2]?.indexOf('eval') === 0; // start of line\n\n if (isEval) {\n const subMatch = chromeEvalRegex.exec(parts[2]) as null | [string, string, string, string];\n\n if (subMatch) {\n // throw out eval line/column and use top-most line/column number\n parts[2] = subMatch[1]; // url\n parts[3] = subMatch[2]; // line\n parts[4] = subMatch[3]; // column\n }\n }\n\n // Kamil: One more hack won't hurt us right? Understanding and adding more rules on top of these regexps right now\n // would be way too time consuming. (TODO: Rewrite whole RegExp to be more readable)\n const [func, filename] = extractSafariExtensionDetails(parts[1] || UNKNOWN_FUNCTION, parts[2]);\n\n return createFrame(filename, func, parts[3] ? +parts[3] : undefined, parts[4] ? +parts[4] : undefined);\n }\n\n return;\n};\n\nexport const chromeStackLineParser: StackLineParser = [CHROME_PRIORITY, chromeStackParserFn];\n\n// gecko regex: `(?:bundle|\\d+\\.js)`: `bundle` is for react native, `\\d+\\.js` also but specifically for ram bundles because it\n// generates filenames without a prefix like `file://` the filenames in the stacktrace are just 42.js\n// We need this specific case for now because we want no other regex to match.\nconst geckoREgex =\n /^\\s*(.*?)(?:\\((.*?)\\))?(?:^|@)?((?:[-a-z]+)?:\\/.*?|\\[native code\\]|[^@]*(?:bundle|\\d+\\.js)|\\/[\\w\\-. /=]+)(?::(\\d+))?(?::(\\d+))?\\s*$/i;\nconst geckoEvalRegex = /(\\S+) line (\\d+)(?: > eval line \\d+)* > eval/i;\n\nconst gecko: StackLineParserFn = line => {\n const parts = geckoREgex.exec(line) as null | [string, string, string, string, string, string];\n\n if (parts) {\n const isEval = parts[3] && parts[3].indexOf(' > eval') > -1;\n if (isEval) {\n const subMatch = geckoEvalRegex.exec(parts[3]) as null | [string, string, string];\n\n if (subMatch) {\n // throw out eval line/column and use top-most line number\n parts[1] = parts[1] || 'eval';\n parts[3] = subMatch[1];\n parts[4] = subMatch[2];\n parts[5] = ''; // no column when eval\n }\n }\n\n let filename = parts[3];\n let func = parts[1] || UNKNOWN_FUNCTION;\n [func, filename] = extractSafariExtensionDetails(func, filename);\n\n return createFrame(filename, func, parts[4] ? +parts[4] : undefined, parts[5] ? +parts[5] : undefined);\n }\n\n return;\n};\n\nexport const geckoStackLineParser: StackLineParser = [GECKO_PRIORITY, gecko];\n\nconst winjsRegex = /^\\s*at (?:((?:\\[object object\\])?.+) )?\\(?((?:[-a-z]+):.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\n\nconst winjs: StackLineParserFn = line => {\n const parts = winjsRegex.exec(line) as null | [string, string, string, string, string];\n\n return parts\n ? createFrame(parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : undefined)\n : undefined;\n};\n\nexport const winjsStackLineParser: StackLineParser = [WINJS_PRIORITY, winjs];\n\nconst opera10Regex = / line (\\d+).*script (?:in )?(\\S+)(?:: in function (\\S+))?$/i;\n\nconst opera10: StackLineParserFn = line => {\n const parts = opera10Regex.exec(line) as null | [string, string, string, string];\n return parts ? createFrame(parts[2], parts[3] || UNKNOWN_FUNCTION, +parts[1]) : undefined;\n};\n\nexport const opera10StackLineParser: StackLineParser = [OPERA10_PRIORITY, opera10];\n\nconst opera11Regex =\n / line (\\d+), column (\\d+)\\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\\(.*\\))? in (.*):\\s*$/i;\n\nconst opera11: StackLineParserFn = line => {\n const parts = opera11Regex.exec(line) as null | [string, string, string, string, string, string];\n return parts ? createFrame(parts[5], parts[3] || parts[4] || UNKNOWN_FUNCTION, +parts[1], +parts[2]) : undefined;\n};\n\nexport const opera11StackLineParser: StackLineParser = [OPERA11_PRIORITY, opera11];\n\nexport const defaultStackLineParsers = [chromeStackLineParser, geckoStackLineParser];\n\nexport const defaultStackParser = createStackParser(...defaultStackLineParsers);\n\n/**\n * Safari web extensions, starting version unknown, can produce \"frames-only\" stacktraces.\n * What it means, is that instead of format like:\n *\n * Error: wat\n * at function@url:row:col\n * at function@url:row:col\n * at function@url:row:col\n *\n * it produces something like:\n *\n * function@url:row:col\n * function@url:row:col\n * function@url:row:col\n *\n * Because of that, it won't be captured by `chrome` RegExp and will fall into `Gecko` branch.\n * This function is extracted so that we can use it in both places without duplicating the logic.\n * Unfortunately \"just\" changing RegExp is too complicated now and making it pass all tests\n * and fix this case seems like an impossible, or at least way too time-consuming task.\n */\nconst extractSafariExtensionDetails = (func: string, filename: string): [string, string] => {\n const isSafariExtension = func.indexOf('safari-extension') !== -1;\n const isSafariWebExtension = func.indexOf('safari-web-extension') !== -1;\n\n return isSafariExtension || isSafariWebExtension\n ? [\n func.indexOf('@') !== -1 ? (func.split('@')[0] as string) : UNKNOWN_FUNCTION,\n isSafariExtension ? `safari-extension:${filename}` : `safari-web-extension:${filename}`,\n ]\n : [func, filename];\n};\n"],"names":["line"],"mappings":"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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { getActiveSpan, getRootSpan, spanToJSON, debug, SPAN_STATUS_ERROR } from '@elenjical/core/browser';
|
|
2
|
+
import { DEBUG_BUILD } from '../debug-build.js';
|
|
3
|
+
import { WINDOW } from '../helpers.js';
|
|
4
|
+
|
|
5
|
+
function registerBackgroundTabDetection() {
|
|
6
|
+
if (WINDOW.document) {
|
|
7
|
+
WINDOW.document.addEventListener("visibilitychange", () => {
|
|
8
|
+
const activeSpan = getActiveSpan();
|
|
9
|
+
if (!activeSpan) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const rootSpan = getRootSpan(activeSpan);
|
|
13
|
+
if (WINDOW.document.hidden && rootSpan) {
|
|
14
|
+
const cancelledStatus = "cancelled";
|
|
15
|
+
const { op, status } = spanToJSON(rootSpan);
|
|
16
|
+
if (DEBUG_BUILD) {
|
|
17
|
+
debug.log(`[Tracing] Transaction: ${cancelledStatus} -> since tab moved to the background, op: ${op}`);
|
|
18
|
+
}
|
|
19
|
+
if (!status) {
|
|
20
|
+
rootSpan.setStatus({ code: SPAN_STATUS_ERROR, message: cancelledStatus });
|
|
21
|
+
}
|
|
22
|
+
rootSpan.setAttribute("sentry.cancellation_reason", "document.hidden");
|
|
23
|
+
rootSpan.end();
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
} else {
|
|
27
|
+
DEBUG_BUILD && debug.warn("[Tracing] Could not set up background tab detection due to lack of global document");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { registerBackgroundTabDetection };
|
|
32
|
+
//# sourceMappingURL=backgroundtab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backgroundtab.js","sources":["../../../../../src/tracing/backgroundtab.ts"],"sourcesContent":["import { debug, getActiveSpan, getRootSpan, SPAN_STATUS_ERROR, spanToJSON } from '@elenjical/core/browser';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\n\n/**\n * Add a listener that cancels and finishes a transaction when the global\n * document is hidden.\n */\nexport function registerBackgroundTabDetection(): void {\n if (WINDOW.document) {\n WINDOW.document.addEventListener('visibilitychange', () => {\n const activeSpan = getActiveSpan();\n if (!activeSpan) {\n return;\n }\n\n const rootSpan = getRootSpan(activeSpan);\n\n if (WINDOW.document.hidden && rootSpan) {\n const cancelledStatus = 'cancelled';\n\n const { op, status } = spanToJSON(rootSpan);\n\n if (DEBUG_BUILD) {\n debug.log(`[Tracing] Transaction: ${cancelledStatus} -> since tab moved to the background, op: ${op}`);\n }\n\n // We should not set status if it is already set, this prevent important statuses like\n // error or data loss from being overwritten on transaction.\n if (!status) {\n rootSpan.setStatus({ code: SPAN_STATUS_ERROR, message: cancelledStatus });\n }\n\n rootSpan.setAttribute('sentry.cancellation_reason', 'document.hidden');\n rootSpan.end();\n }\n });\n } else {\n DEBUG_BUILD && debug.warn('[Tracing] Could not set up background tab detection due to lack of global document');\n }\n}\n"],"names":[],"mappings":";;;;AAQO,SAAS,8BAAA,GAAuC;AACrD,EAAA,IAAI,OAAO,QAAA,EAAU;AACnB,IAAA,MAAA,CAAO,QAAA,CAAS,gBAAA,CAAiB,kBAAA,EAAoB,MAAM;AACzD,MAAA,MAAM,aAAa,aAAA,EAAc;AACjC,MAAA,IAAI,CAAC,UAAA,EAAY;AACf,QAAA;AAAA,MACF;AAEA,MAAA,MAAM,QAAA,GAAW,YAAY,UAAU,CAAA;AAEvC,MAAA,IAAI,MAAA,CAAO,QAAA,CAAS,MAAA,IAAU,QAAA,EAAU;AACtC,QAAA,MAAM,eAAA,GAAkB,WAAA;AAExB,QAAA,MAAM,EAAE,EAAA,EAAI,MAAA,EAAO,GAAI,WAAW,QAAQ,CAAA;AAE1C,QAAA,IAAI,WAAA,EAAa;AACf,UAAA,KAAA,CAAM,GAAA,CAAI,CAAA,uBAAA,EAA0B,eAAe,CAAA,2CAAA,EAA8C,EAAE,CAAA,CAAE,CAAA;AAAA,QACvG;AAIA,QAAA,IAAI,CAAC,MAAA,EAAQ;AACX,UAAA,QAAA,CAAS,UAAU,EAAE,IAAA,EAAM,iBAAA,EAAmB,OAAA,EAAS,iBAAiB,CAAA;AAAA,QAC1E;AAEA,QAAA,QAAA,CAAS,YAAA,CAAa,8BAA8B,iBAAiB,CAAA;AACrE,QAAA,QAAA,CAAS,GAAA,EAAI;AAAA,MACf;AAAA,IACF,CAAC,CAAA;AAAA,EACH,CAAA,MAAO;AACL,IAAA,WAAA,IAAe,KAAA,CAAM,KAAK,oFAAoF,CAAA;AAAA,EAChH;AACF;;;;"}
|