@sentry/browser 10.70.0 → 11.0.0-alpha.1
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/build/npm/cjs/dev/client.js +1 -0
- package/build/npm/cjs/dev/client.js.map +1 -1
- package/build/npm/cjs/dev/eventbuilder.js +8 -8
- package/build/npm/cjs/dev/eventbuilder.js.map +1 -1
- package/build/npm/cjs/dev/index.js +3 -9
- package/build/npm/cjs/dev/index.js.map +1 -1
- package/build/npm/cjs/dev/integrations/browsersession.js +1 -1
- package/build/npm/cjs/dev/integrations/browsersession.js.map +1 -1
- package/build/npm/cjs/dev/integrations/fetchStreamPerformance.js +2 -1
- package/build/npm/cjs/dev/integrations/fetchStreamPerformance.js.map +1 -1
- package/build/npm/cjs/dev/integrations/graphqlClient.js +4 -4
- package/build/npm/cjs/dev/integrations/graphqlClient.js.map +1 -1
- package/build/npm/cjs/dev/integrations/httpclient.js +1 -6
- package/build/npm/cjs/dev/integrations/httpclient.js.map +1 -1
- package/build/npm/cjs/dev/integrations/httpcontext.js +18 -10
- package/build/npm/cjs/dev/integrations/httpcontext.js.map +1 -1
- package/build/npm/cjs/dev/integrations/spanstreaming.js +4 -19
- package/build/npm/cjs/dev/integrations/spanstreaming.js.map +1 -1
- package/build/npm/cjs/dev/integrations/spotlight.js.map +1 -1
- package/build/npm/cjs/dev/integrations/view-hierarchy.js +1 -0
- package/build/npm/cjs/dev/integrations/view-hierarchy.js.map +1 -1
- package/build/npm/cjs/dev/integrations/webVitals.js +9 -14
- package/build/npm/cjs/dev/integrations/webVitals.js.map +1 -1
- package/build/npm/cjs/dev/profiling/index.js.map +1 -1
- package/build/npm/cjs/dev/profiling/integration.js +21 -91
- package/build/npm/cjs/dev/profiling/integration.js.map +1 -1
- package/build/npm/cjs/dev/profiling/utils.js +1 -284
- package/build/npm/cjs/dev/profiling/utils.js.map +1 -1
- package/build/npm/cjs/dev/sdk.js +10 -7
- package/build/npm/cjs/dev/sdk.js.map +1 -1
- package/build/npm/cjs/dev/tracing/backgroundtab.js +6 -2
- package/build/npm/cjs/dev/tracing/backgroundtab.js.map +1 -1
- package/build/npm/cjs/dev/tracing/browserTracingIntegration.js +30 -42
- package/build/npm/cjs/dev/tracing/browserTracingIntegration.js.map +1 -1
- package/build/npm/cjs/dev/tracing/linkedTraces.js +4 -2
- package/build/npm/cjs/dev/tracing/linkedTraces.js.map +1 -1
- package/build/npm/cjs/dev/tracing/request.js +10 -17
- package/build/npm/cjs/dev/tracing/request.js.map +1 -1
- package/build/npm/cjs/dev/transports/fetch.js.map +1 -1
- package/build/npm/cjs/dev/utils/lazyLoadIntegration.js +2 -8
- package/build/npm/cjs/dev/utils/lazyLoadIntegration.js.map +1 -1
- package/build/npm/cjs/prod/client.js +1 -0
- package/build/npm/cjs/prod/client.js.map +1 -1
- package/build/npm/cjs/prod/eventbuilder.js +8 -8
- package/build/npm/cjs/prod/eventbuilder.js.map +1 -1
- package/build/npm/cjs/prod/index.js +3 -9
- package/build/npm/cjs/prod/index.js.map +1 -1
- package/build/npm/cjs/prod/integrations/browsersession.js +1 -1
- package/build/npm/cjs/prod/integrations/browsersession.js.map +1 -1
- package/build/npm/cjs/prod/integrations/fetchStreamPerformance.js +2 -1
- package/build/npm/cjs/prod/integrations/fetchStreamPerformance.js.map +1 -1
- package/build/npm/cjs/prod/integrations/graphqlClient.js +4 -4
- package/build/npm/cjs/prod/integrations/graphqlClient.js.map +1 -1
- package/build/npm/cjs/prod/integrations/httpclient.js +1 -6
- package/build/npm/cjs/prod/integrations/httpclient.js.map +1 -1
- package/build/npm/cjs/prod/integrations/httpcontext.js +18 -10
- package/build/npm/cjs/prod/integrations/httpcontext.js.map +1 -1
- package/build/npm/cjs/prod/integrations/spanstreaming.js +4 -19
- package/build/npm/cjs/prod/integrations/spanstreaming.js.map +1 -1
- package/build/npm/cjs/prod/integrations/spotlight.js.map +1 -1
- package/build/npm/cjs/prod/integrations/view-hierarchy.js +1 -0
- package/build/npm/cjs/prod/integrations/view-hierarchy.js.map +1 -1
- package/build/npm/cjs/prod/integrations/webVitals.js +9 -14
- package/build/npm/cjs/prod/integrations/webVitals.js.map +1 -1
- package/build/npm/cjs/prod/profiling/index.js.map +1 -1
- package/build/npm/cjs/prod/profiling/integration.js +21 -91
- package/build/npm/cjs/prod/profiling/integration.js.map +1 -1
- package/build/npm/cjs/prod/profiling/utils.js +1 -284
- package/build/npm/cjs/prod/profiling/utils.js.map +1 -1
- package/build/npm/cjs/prod/sdk.js +10 -7
- package/build/npm/cjs/prod/sdk.js.map +1 -1
- package/build/npm/cjs/prod/tracing/backgroundtab.js +6 -2
- package/build/npm/cjs/prod/tracing/backgroundtab.js.map +1 -1
- package/build/npm/cjs/prod/tracing/browserTracingIntegration.js +30 -42
- package/build/npm/cjs/prod/tracing/browserTracingIntegration.js.map +1 -1
- package/build/npm/cjs/prod/tracing/linkedTraces.js +4 -2
- package/build/npm/cjs/prod/tracing/linkedTraces.js.map +1 -1
- package/build/npm/cjs/prod/tracing/request.js +10 -17
- package/build/npm/cjs/prod/tracing/request.js.map +1 -1
- package/build/npm/cjs/prod/transports/fetch.js.map +1 -1
- package/build/npm/cjs/prod/utils/lazyLoadIntegration.js +2 -8
- package/build/npm/cjs/prod/utils/lazyLoadIntegration.js.map +1 -1
- package/build/npm/esm/dev/client.js +1 -0
- package/build/npm/esm/dev/client.js.map +1 -1
- package/build/npm/esm/dev/eventbuilder.js +8 -8
- package/build/npm/esm/dev/eventbuilder.js.map +1 -1
- package/build/npm/esm/dev/index.js +2 -2
- package/build/npm/esm/dev/integrations/browsersession.js +1 -1
- package/build/npm/esm/dev/integrations/browsersession.js.map +1 -1
- package/build/npm/esm/dev/integrations/fetchStreamPerformance.js +3 -2
- package/build/npm/esm/dev/integrations/fetchStreamPerformance.js.map +1 -1
- package/build/npm/esm/dev/integrations/graphqlClient.js +6 -6
- package/build/npm/esm/dev/integrations/graphqlClient.js.map +1 -1
- package/build/npm/esm/dev/integrations/httpclient.js +1 -6
- package/build/npm/esm/dev/integrations/httpclient.js.map +1 -1
- package/build/npm/esm/dev/integrations/httpcontext.js +19 -11
- package/build/npm/esm/dev/integrations/httpcontext.js.map +1 -1
- package/build/npm/esm/dev/integrations/spanstreaming.js +5 -21
- package/build/npm/esm/dev/integrations/spanstreaming.js.map +1 -1
- package/build/npm/esm/dev/integrations/spotlight.js.map +1 -1
- package/build/npm/esm/dev/integrations/view-hierarchy.js +1 -0
- package/build/npm/esm/dev/integrations/view-hierarchy.js.map +1 -1
- package/build/npm/esm/dev/integrations/webVitals.js +10 -15
- package/build/npm/esm/dev/integrations/webVitals.js.map +1 -1
- package/build/npm/esm/dev/package.json +1 -1
- package/build/npm/esm/dev/profiling/index.js.map +1 -1
- package/build/npm/esm/dev/profiling/integration.js +22 -92
- package/build/npm/esm/dev/profiling/integration.js.map +1 -1
- package/build/npm/esm/dev/profiling/utils.js +3 -273
- package/build/npm/esm/dev/profiling/utils.js.map +1 -1
- package/build/npm/esm/dev/sdk.js +11 -8
- package/build/npm/esm/dev/sdk.js.map +1 -1
- package/build/npm/esm/dev/tracing/backgroundtab.js +6 -2
- package/build/npm/esm/dev/tracing/backgroundtab.js.map +1 -1
- package/build/npm/esm/dev/tracing/browserTracingIntegration.js +32 -44
- package/build/npm/esm/dev/tracing/browserTracingIntegration.js.map +1 -1
- package/build/npm/esm/dev/tracing/linkedTraces.js +4 -2
- package/build/npm/esm/dev/tracing/linkedTraces.js.map +1 -1
- package/build/npm/esm/dev/tracing/request.js +12 -19
- package/build/npm/esm/dev/tracing/request.js.map +1 -1
- package/build/npm/esm/dev/transports/fetch.js.map +1 -1
- package/build/npm/esm/dev/utils/lazyLoadIntegration.js +2 -8
- package/build/npm/esm/dev/utils/lazyLoadIntegration.js.map +1 -1
- package/build/npm/esm/prod/client.js +1 -0
- package/build/npm/esm/prod/client.js.map +1 -1
- package/build/npm/esm/prod/eventbuilder.js +8 -8
- package/build/npm/esm/prod/eventbuilder.js.map +1 -1
- package/build/npm/esm/prod/index.js +2 -2
- package/build/npm/esm/prod/integrations/browsersession.js +1 -1
- package/build/npm/esm/prod/integrations/browsersession.js.map +1 -1
- package/build/npm/esm/prod/integrations/fetchStreamPerformance.js +3 -2
- package/build/npm/esm/prod/integrations/fetchStreamPerformance.js.map +1 -1
- package/build/npm/esm/prod/integrations/graphqlClient.js +6 -6
- package/build/npm/esm/prod/integrations/graphqlClient.js.map +1 -1
- package/build/npm/esm/prod/integrations/httpclient.js +1 -6
- package/build/npm/esm/prod/integrations/httpclient.js.map +1 -1
- package/build/npm/esm/prod/integrations/httpcontext.js +19 -11
- package/build/npm/esm/prod/integrations/httpcontext.js.map +1 -1
- package/build/npm/esm/prod/integrations/spanstreaming.js +5 -21
- package/build/npm/esm/prod/integrations/spanstreaming.js.map +1 -1
- package/build/npm/esm/prod/integrations/spotlight.js.map +1 -1
- package/build/npm/esm/prod/integrations/view-hierarchy.js +1 -0
- package/build/npm/esm/prod/integrations/view-hierarchy.js.map +1 -1
- package/build/npm/esm/prod/integrations/webVitals.js +10 -15
- package/build/npm/esm/prod/integrations/webVitals.js.map +1 -1
- package/build/npm/esm/prod/package.json +1 -1
- package/build/npm/esm/prod/profiling/index.js.map +1 -1
- package/build/npm/esm/prod/profiling/integration.js +22 -92
- package/build/npm/esm/prod/profiling/integration.js.map +1 -1
- package/build/npm/esm/prod/profiling/utils.js +3 -273
- package/build/npm/esm/prod/profiling/utils.js.map +1 -1
- package/build/npm/esm/prod/sdk.js +11 -8
- package/build/npm/esm/prod/sdk.js.map +1 -1
- package/build/npm/esm/prod/tracing/backgroundtab.js +6 -2
- package/build/npm/esm/prod/tracing/backgroundtab.js.map +1 -1
- package/build/npm/esm/prod/tracing/browserTracingIntegration.js +32 -44
- package/build/npm/esm/prod/tracing/browserTracingIntegration.js.map +1 -1
- package/build/npm/esm/prod/tracing/linkedTraces.js +4 -2
- package/build/npm/esm/prod/tracing/linkedTraces.js.map +1 -1
- package/build/npm/esm/prod/tracing/request.js +12 -19
- package/build/npm/esm/prod/tracing/request.js.map +1 -1
- package/build/npm/esm/prod/transports/fetch.js.map +1 -1
- package/build/npm/esm/prod/utils/lazyLoadIntegration.js +2 -8
- package/build/npm/esm/prod/utils/lazyLoadIntegration.js.map +1 -1
- package/build/npm/types/client.d.ts.map +1 -1
- package/build/npm/types/eventbuilder.d.ts.map +1 -1
- package/build/npm/types/exports.d.ts +1 -1
- package/build/npm/types/exports.d.ts.map +1 -1
- package/build/npm/types/index.bundle.d.ts +2 -2
- package/build/npm/types/index.bundle.d.ts.map +1 -1
- package/build/npm/types/index.bundle.feedback.d.ts +2 -2
- package/build/npm/types/index.bundle.feedback.d.ts.map +1 -1
- package/build/npm/types/index.bundle.logs.metrics.d.ts +1 -1
- package/build/npm/types/index.bundle.logs.metrics.d.ts.map +1 -1
- package/build/npm/types/index.bundle.replay.d.ts +2 -2
- package/build/npm/types/index.bundle.replay.d.ts.map +1 -1
- package/build/npm/types/index.bundle.replay.feedback.d.ts +2 -2
- package/build/npm/types/index.bundle.replay.feedback.d.ts.map +1 -1
- package/build/npm/types/index.bundle.replay.logs.metrics.d.ts +1 -1
- package/build/npm/types/index.bundle.replay.logs.metrics.d.ts.map +1 -1
- package/build/npm/types/index.bundle.tracing.d.ts +2 -2
- package/build/npm/types/index.bundle.tracing.d.ts.map +1 -1
- package/build/npm/types/index.bundle.tracing.logs.metrics.d.ts +1 -1
- package/build/npm/types/index.bundle.tracing.logs.metrics.d.ts.map +1 -1
- package/build/npm/types/index.bundle.tracing.replay.d.ts +2 -2
- package/build/npm/types/index.bundle.tracing.replay.d.ts.map +1 -1
- package/build/npm/types/index.bundle.tracing.replay.feedback.d.ts +2 -2
- package/build/npm/types/index.bundle.tracing.replay.feedback.d.ts.map +1 -1
- package/build/npm/types/index.bundle.tracing.replay.feedback.logs.metrics.d.ts +1 -1
- package/build/npm/types/index.bundle.tracing.replay.feedback.logs.metrics.d.ts.map +1 -1
- package/build/npm/types/index.bundle.tracing.replay.logs.metrics.d.ts +1 -1
- package/build/npm/types/index.bundle.tracing.replay.logs.metrics.d.ts.map +1 -1
- package/build/npm/types/index.d.ts +2 -2
- package/build/npm/types/index.d.ts.map +1 -1
- package/build/npm/types/integrations/browsersession.d.ts +3 -5
- package/build/npm/types/integrations/browsersession.d.ts.map +1 -1
- package/build/npm/types/integrations/featureFlags/openfeature/integration.d.ts.map +1 -1
- package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts +9 -9
- package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts.map +1 -1
- package/build/npm/types/integrations/fetchStreamPerformance.d.ts.map +1 -1
- package/build/npm/types/integrations/graphqlClient.d.ts.map +1 -1
- package/build/npm/types/integrations/httpcontext.d.ts.map +1 -1
- package/build/npm/types/integrations/spanstreaming.d.ts +1 -0
- package/build/npm/types/integrations/spanstreaming.d.ts.map +1 -1
- package/build/npm/types/integrations/spotlight.d.ts +1 -1
- package/build/npm/types/integrations/usertiming.d.ts +2 -0
- package/build/npm/types/integrations/usertiming.d.ts.map +1 -0
- package/build/npm/types/integrations/view-hierarchy.d.ts.map +1 -1
- package/build/npm/types/integrations/webVitals.d.ts +1 -8
- package/build/npm/types/integrations/webVitals.d.ts.map +1 -1
- package/build/npm/types/integrations/webWorker.d.ts +1 -1
- package/build/npm/types/profiling/UIProfiler.d.ts.map +1 -1
- package/build/npm/types/profiling/index.d.ts.map +1 -1
- package/build/npm/types/profiling/integration.d.ts.map +1 -1
- package/build/npm/types/profiling/utils.d.ts +1 -74
- package/build/npm/types/profiling/utils.d.ts.map +1 -1
- package/build/npm/types/sdk.d.ts.map +1 -1
- package/build/npm/types/tracing/backgroundtab.d.ts.map +1 -1
- package/build/npm/types/tracing/browserTracingIntegration.d.ts +1 -47
- package/build/npm/types/tracing/browserTracingIntegration.d.ts.map +1 -1
- package/build/npm/types/tracing/linkedTraces.d.ts.map +1 -1
- package/build/npm/types/tracing/request.d.ts +0 -13
- package/build/npm/types/tracing/request.d.ts.map +1 -1
- package/build/npm/types/utils/lazyLoadIntegration.d.ts +1 -1
- package/build/npm/types/utils/lazyLoadIntegration.d.ts.map +1 -1
- package/package.json +12 -21
- package/build/npm/cjs/dev/profiling/startProfileForSpan.js +0 -91
- package/build/npm/cjs/dev/profiling/startProfileForSpan.js.map +0 -1
- package/build/npm/cjs/prod/profiling/startProfileForSpan.js +0 -91
- package/build/npm/cjs/prod/profiling/startProfileForSpan.js.map +0 -1
- package/build/npm/esm/dev/profiling/startProfileForSpan.js +0 -89
- package/build/npm/esm/dev/profiling/startProfileForSpan.js.map +0 -1
- package/build/npm/esm/prod/profiling/startProfileForSpan.js +0 -89
- package/build/npm/esm/prod/profiling/startProfileForSpan.js.map +0 -1
- package/build/npm/types/integrations-bundle/index.createlangchaincallbackhandler.d.ts +0 -2
- package/build/npm/types/integrations-bundle/index.createlangchaincallbackhandler.d.ts.map +0 -1
- package/build/npm/types/integrations-bundle/index.instrumentanthropicaiclient.d.ts +0 -2
- package/build/npm/types/integrations-bundle/index.instrumentanthropicaiclient.d.ts.map +0 -1
- package/build/npm/types/integrations-bundle/index.instrumentgooglegenaiclient.d.ts +0 -2
- package/build/npm/types/integrations-bundle/index.instrumentgooglegenaiclient.d.ts.map +0 -1
- package/build/npm/types/integrations-bundle/index.instrumentlangchainembeddings.d.ts +0 -2
- package/build/npm/types/integrations-bundle/index.instrumentlangchainembeddings.d.ts.map +0 -1
- package/build/npm/types/integrations-bundle/index.instrumentlanggraph.d.ts +0 -2
- package/build/npm/types/integrations-bundle/index.instrumentlanggraph.d.ts.map +0 -1
- package/build/npm/types/integrations-bundle/index.instrumentopenaiclient.d.ts +0 -2
- package/build/npm/types/integrations-bundle/index.instrumentopenaiclient.d.ts.map +0 -1
- package/build/npm/types/integrations-bundle/index.instrumentstategraph.d.ts +0 -2
- package/build/npm/types/integrations-bundle/index.instrumentstategraph.d.ts.map +0 -1
- package/build/npm/types/profiling/startProfileForSpan.d.ts +0 -8
- package/build/npm/types/profiling/startProfileForSpan.d.ts.map +0 -1
- package/build/npm/types-ts3.8/client.d.ts +0 -76
- package/build/npm/types-ts3.8/debug-build.d.ts +0 -7
- package/build/npm/types-ts3.8/diagnose-sdk.d.ts +0 -11
- package/build/npm/types-ts3.8/eventbuilder.d.ts +0 -40
- package/build/npm/types-ts3.8/exports.d.ts +0 -21
- package/build/npm/types-ts3.8/feedbackAsync.d.ts +0 -7
- package/build/npm/types-ts3.8/feedbackSync.d.ts +0 -4
- package/build/npm/types-ts3.8/helpers.d.ts +0 -27
- package/build/npm/types-ts3.8/index.bundle.base.d.ts +0 -2
- package/build/npm/types-ts3.8/index.bundle.d.ts +0 -5
- package/build/npm/types-ts3.8/index.bundle.feedback.d.ts +0 -7
- package/build/npm/types-ts3.8/index.bundle.logs.metrics.d.ts +0 -6
- package/build/npm/types-ts3.8/index.bundle.replay.d.ts +0 -6
- package/build/npm/types-ts3.8/index.bundle.replay.feedback.d.ts +0 -8
- package/build/npm/types-ts3.8/index.bundle.replay.logs.metrics.d.ts +0 -7
- package/build/npm/types-ts3.8/index.bundle.tracing.d.ts +0 -13
- package/build/npm/types-ts3.8/index.bundle.tracing.logs.metrics.d.ts +0 -13
- package/build/npm/types-ts3.8/index.bundle.tracing.replay.d.ts +0 -14
- package/build/npm/types-ts3.8/index.bundle.tracing.replay.feedback.d.ts +0 -16
- package/build/npm/types-ts3.8/index.bundle.tracing.replay.feedback.logs.metrics.d.ts +0 -14
- package/build/npm/types-ts3.8/index.bundle.tracing.replay.logs.metrics.d.ts +0 -14
- package/build/npm/types-ts3.8/index.d.ts +0 -38
- package/build/npm/types-ts3.8/integrations/breadcrumbs.d.ts +0 -16
- package/build/npm/types-ts3.8/integrations/browserapierrors.d.ts +0 -23
- package/build/npm/types-ts3.8/integrations/browserprofiling.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations/browsersession.d.ts +0 -25
- package/build/npm/types-ts3.8/integrations/contextlines.d.ts +0 -32
- package/build/npm/types-ts3.8/integrations/culturecontext.d.ts +0 -18
- package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/index.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/integration.d.ts +0 -25
- package/build/npm/types-ts3.8/integrations/featureFlags/growthbook/types.d.ts +0 -6
- package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/index.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/integration.d.ts +0 -27
- package/build/npm/types-ts3.8/integrations/featureFlags/launchdarkly/types.d.ts +0 -44
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/index.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/integration.d.ts +0 -18
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/types.d.ts +0 -78
- package/build/npm/types-ts3.8/integrations/featureFlags/statsig/index.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations/featureFlags/statsig/integration.d.ts +0 -30
- package/build/npm/types-ts3.8/integrations/featureFlags/statsig/types.d.ts +0 -14
- package/build/npm/types-ts3.8/integrations/featureFlags/unleash/index.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations/featureFlags/unleash/integration.d.ts +0 -31
- package/build/npm/types-ts3.8/integrations/featureFlags/unleash/types.d.ts +0 -21
- package/build/npm/types-ts3.8/integrations/fetchStreamPerformance.d.ts +0 -16
- package/build/npm/types-ts3.8/integrations/globalhandlers.d.ts +0 -19
- package/build/npm/types-ts3.8/integrations/graphqlClient.d.ts +0 -60
- package/build/npm/types-ts3.8/integrations/httpclient.d.ts +0 -32
- package/build/npm/types-ts3.8/integrations/httpcontext.d.ts +0 -8
- package/build/npm/types-ts3.8/integrations/linkederrors.d.ts +0 -12
- package/build/npm/types-ts3.8/integrations/reportingobserver.d.ts +0 -12
- package/build/npm/types-ts3.8/integrations/spanstreaming.d.ts +0 -4
- package/build/npm/types-ts3.8/integrations/spotlight.d.ts +0 -21
- package/build/npm/types-ts3.8/integrations/view-hierarchy.d.ts +0 -51
- package/build/npm/types-ts3.8/integrations/webVitals.d.ts +0 -26
- package/build/npm/types-ts3.8/integrations/webWorker.d.ts +0 -129
- package/build/npm/types-ts3.8/integrations-bundle/index.captureconsole.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.createlangchaincallbackhandler.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.dedupe.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.extraerrordata.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.feedback.d.ts +0 -5
- package/build/npm/types-ts3.8/integrations-bundle/index.graphqlclient.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentanthropicaiclient.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentgooglegenaiclient.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentlangchainembeddings.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentlanggraph.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentopenaiclient.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.instrumentstategraph.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.modulemetadata.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.rewriteframes.d.ts +0 -2
- package/build/npm/types-ts3.8/integrations-bundle/index.spotlight.d.ts +0 -2
- package/build/npm/types-ts3.8/normalizeStringifyValue.d.ts +0 -15
- package/build/npm/types-ts3.8/pluggable-exports-bundle/index.multiplexedtransport.d.ts +0 -2
- package/build/npm/types-ts3.8/profiling/UIProfiler.d.ts +0 -75
- package/build/npm/types-ts3.8/profiling/index.d.ts +0 -8
- package/build/npm/types-ts3.8/profiling/integration.d.ts +0 -4
- package/build/npm/types-ts3.8/profiling/jsSelfProfiling.d.ts +0 -41
- package/build/npm/types-ts3.8/profiling/startProfileForSpan.d.ts +0 -8
- package/build/npm/types-ts3.8/profiling/utils.d.ts +0 -112
- package/build/npm/types-ts3.8/report-dialog.d.ts +0 -8
- package/build/npm/types-ts3.8/sdk.d.ts +0 -62
- package/build/npm/types-ts3.8/stack-parsers.d.ts +0 -9
- package/build/npm/types-ts3.8/tracing/backgroundtab.d.ts +0 -6
- package/build/npm/types-ts3.8/tracing/browserTracingIntegration.d.ts +0 -271
- package/build/npm/types-ts3.8/tracing/linkedTraces.d.ts +0 -52
- package/build/npm/types-ts3.8/tracing/reportPageLoaded.d.ts +0 -11
- package/build/npm/types-ts3.8/tracing/request.d.ts +0 -87
- package/build/npm/types-ts3.8/tracing/setActiveSpan.d.ts +0 -39
- package/build/npm/types-ts3.8/tracing/utils.d.ts +0 -17
- package/build/npm/types-ts3.8/transports/fetch.d.ts +0 -8
- package/build/npm/types-ts3.8/transports/offline.d.ts +0 -33
- package/build/npm/types-ts3.8/transports/types.d.ts +0 -6
- package/build/npm/types-ts3.8/userfeedback.d.ts +0 -10
- package/build/npm/types-ts3.8/utils/detectBrowserExtension.d.ts +0 -6
- package/build/npm/types-ts3.8/utils/lazyLoadIntegration.d.ts +0 -35
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { Client, DebugImage, Envelope, Event, EventEnvelope, Profile, ProfileChunk, Span, ThreadCpuProfile } from '@sentry/core/browser';
|
|
2
|
-
import { BrowserOptions } from '../client';
|
|
3
|
-
import { JSSelfProfile, JSSelfProfiler } from './jsSelfProfiling';
|
|
4
|
-
export declare const PROFILER_THREAD_ID_STRING: string;
|
|
5
|
-
export declare const PROFILER_THREAD_NAME: string;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
export declare function enrichWithThreadInformation(profile: ThreadCpuProfile | JSSelfProfile): ThreadCpuProfile;
|
|
10
|
-
export interface ProfiledEvent extends Event {
|
|
11
|
-
sdkProcessingMetadata: {
|
|
12
|
-
profile?: JSSelfProfile;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Creates a profiling event envelope from a Sentry event. If profile does not pass
|
|
17
|
-
* validation, returns null.
|
|
18
|
-
* @param event
|
|
19
|
-
* @param dsn
|
|
20
|
-
* @param metadata
|
|
21
|
-
* @param tunnel
|
|
22
|
-
* @returns {EventEnvelope | null}
|
|
23
|
-
*/
|
|
24
|
-
/**
|
|
25
|
-
* Creates a profiling event envelope from a Sentry event.
|
|
26
|
-
*/
|
|
27
|
-
export declare function createProfilePayload(profile_id: string, start_timestamp: number | undefined, processed_profile: JSSelfProfile, event: ProfiledEvent): Profile;
|
|
28
|
-
/**
|
|
29
|
-
* Create a profile chunk envelope item
|
|
30
|
-
*/
|
|
31
|
-
export declare function createProfileChunkPayload(jsSelfProfile: JSSelfProfile, client: Client, profilerId?: string): ProfileChunk;
|
|
32
|
-
/**
|
|
33
|
-
* Validate a profile chunk against the Sample Format V2 requirements.
|
|
34
|
-
* https://develop.sentry.dev/sdk/telemetry/profiles/sample-format-v2/
|
|
35
|
-
* - Presence of samples, stacks, frames
|
|
36
|
-
* - Required metadata fields
|
|
37
|
-
*/
|
|
38
|
-
export declare function validateProfileChunk(chunk: ProfileChunk): {
|
|
39
|
-
valid: true;
|
|
40
|
-
} | {
|
|
41
|
-
reason: string;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export declare function isProfiledTransactionEvent(event: Event): event is ProfiledEvent;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export declare function isAutomatedPageLoadSpan(span: Span): boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Converts a JSSelfProfile to a our sampled format.
|
|
53
|
-
* Does not currently perform stack indexing.
|
|
54
|
-
*/
|
|
55
|
-
export declare function convertJSSelfProfileToSampledFormat(input: JSSelfProfile): Profile['profile'];
|
|
56
|
-
/**
|
|
57
|
-
* Adds items to envelope if they are not already present - mutates the envelope.
|
|
58
|
-
* @param envelope
|
|
59
|
-
*/
|
|
60
|
-
export declare function addProfilesToEnvelope(envelope: EventEnvelope, profiles: Profile[]): Envelope;
|
|
61
|
-
/**
|
|
62
|
-
* Finds transactions with profile_id context in the envelope
|
|
63
|
-
* @param envelope
|
|
64
|
-
* @returns
|
|
65
|
-
*/
|
|
66
|
-
export declare function findProfiledTransactionsFromEnvelope(envelope: Envelope): Event[];
|
|
67
|
-
/**
|
|
68
|
-
* Applies debug meta data to an event from a list of paths to resources (sourcemaps)
|
|
69
|
-
*/
|
|
70
|
-
export declare function applyDebugMetadata(resource_paths: ReadonlyArray<string>): DebugImage[];
|
|
71
|
-
/**
|
|
72
|
-
* Checks the given sample rate to make sure it is valid type and value (a boolean, or a number between 0 and 1).
|
|
73
|
-
*/
|
|
74
|
-
export declare function isValidSampleRate(rate: unknown): boolean;
|
|
75
|
-
export declare const MAX_PROFILE_DURATION_MS = 30000;
|
|
76
|
-
/**
|
|
77
|
-
* Starts the profiler and returns the profiler instance.
|
|
78
|
-
*/
|
|
79
|
-
export declare function startJSSelfProfile(): JSSelfProfiler | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* Determine if a profile should be profiled.
|
|
82
|
-
*/
|
|
83
|
-
export declare function shouldProfileSpanLegacy(span: Span): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Determine if a profile should be created for the current session.
|
|
86
|
-
*/
|
|
87
|
-
export declare function shouldProfileSession(options: BrowserOptions): boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Checks if legacy profiling is configured.
|
|
90
|
-
*/
|
|
91
|
-
export declare function hasLegacyProfiling(options: BrowserOptions): boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Creates a profiling envelope item, if the profile does not pass validation, returns null.
|
|
94
|
-
* @param event
|
|
95
|
-
* @returns {Profile | null}
|
|
96
|
-
*/
|
|
97
|
-
export declare function createProfilingEvent(profile_id: string, start_timestamp: number | undefined, profile: JSSelfProfile, event: ProfiledEvent): Profile | null;
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
*/
|
|
101
|
-
export declare function getActiveProfilesCount(): number;
|
|
102
|
-
/**
|
|
103
|
-
* Retrieves profile from global cache and removes it.
|
|
104
|
-
*/
|
|
105
|
-
export declare function takeProfileFromGlobalCache(profile_id: string): JSSelfProfile | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* Adds profile to global cache and evicts the oldest profile if the cache is full.
|
|
108
|
-
*/
|
|
109
|
-
export declare function addProfileToGlobalCache(profile_id: string, profile: JSSelfProfile): void;
|
|
110
|
-
export declare const PROFILED_ROOT_SPANS: WeakSet<Span>;
|
|
111
|
-
export declare function setThreadAttributes(span: Span): void;
|
|
112
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReportDialogOptions } from '@sentry/core/browser';
|
|
2
|
-
/**
|
|
3
|
-
* Present the user with a report dialog.
|
|
4
|
-
*
|
|
5
|
-
* @param options Everything is optional, we try to fetch all info need from the current scope.
|
|
6
|
-
*/
|
|
7
|
-
export declare function showReportDialog(options?: ReportDialogOptions): void;
|
|
8
|
-
//# sourceMappingURL=report-dialog.d.ts.map
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Client, Integration, Options } from '@sentry/core/browser';
|
|
2
|
-
import { BrowserOptions } from './client';
|
|
3
|
-
/** Get the default integrations for the browser SDK. */
|
|
4
|
-
export declare function getDefaultIntegrations(_options: Options): Integration[];
|
|
5
|
-
/**
|
|
6
|
-
* The Sentry Browser SDK Client.
|
|
7
|
-
*
|
|
8
|
-
* To use this SDK, call the {@link init} function as early as possible when
|
|
9
|
-
* loading the web page. To set context information or send manual events, use
|
|
10
|
-
* the provided methods.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
*
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* import { init } from '@sentry/browser';
|
|
17
|
-
*
|
|
18
|
-
* init({
|
|
19
|
-
* dsn: '__DSN__',
|
|
20
|
-
* // ...
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* import { addBreadcrumb } from '@sentry/browser';
|
|
28
|
-
* addBreadcrumb({
|
|
29
|
-
* message: 'My Breadcrumb',
|
|
30
|
-
* // ...
|
|
31
|
-
* });
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
*
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* import * as Sentry from '@sentry/browser';
|
|
39
|
-
* Sentry.captureMessage('Hello, world!');
|
|
40
|
-
* Sentry.captureException(new Error('Good bye'));
|
|
41
|
-
* Sentry.captureEvent({
|
|
42
|
-
* message: 'Manual',
|
|
43
|
-
* stacktrace: [
|
|
44
|
-
* // ...
|
|
45
|
-
* ],
|
|
46
|
-
* });
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @see {@link BrowserOptions} for documentation on configuration options.
|
|
50
|
-
*/
|
|
51
|
-
export declare function init(options?: BrowserOptions): Client | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* This function is here to be API compatible with the loader.
|
|
54
|
-
* @hidden
|
|
55
|
-
*/
|
|
56
|
-
export declare function forceLoad(): void;
|
|
57
|
-
/**
|
|
58
|
-
* This function is here to be API compatible with the loader.
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
export declare function onLoad(callback: () => void): void;
|
|
62
|
-
//# sourceMappingURL=sdk.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { StackLineParser } from '@sentry/core/browser';
|
|
2
|
-
export declare const chromeStackLineParser: StackLineParser;
|
|
3
|
-
export declare const geckoStackLineParser: StackLineParser;
|
|
4
|
-
export declare const winjsStackLineParser: StackLineParser;
|
|
5
|
-
export declare const opera10StackLineParser: StackLineParser;
|
|
6
|
-
export declare const opera11StackLineParser: StackLineParser;
|
|
7
|
-
export declare const defaultStackLineParsers: StackLineParser[];
|
|
8
|
-
export declare const defaultStackParser: import("@sentry/core").StackParser;
|
|
9
|
-
//# sourceMappingURL=stack-parsers.d.ts.map
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
import { Client, RequestHookInfo, ResponseHookInfo, Span, StartSpanOptions } from '@sentry/core/browser';
|
|
2
|
-
export declare const BROWSER_TRACING_INTEGRATION_ID = "BrowserTracing";
|
|
3
|
-
export declare function isBotUserAgent(): boolean;
|
|
4
|
-
/** Options for Browser Tracing integration */
|
|
5
|
-
export interface BrowserTracingOptions {
|
|
6
|
-
/**
|
|
7
|
-
* The time that has to pass without any span being created.
|
|
8
|
-
* If this time is exceeded, the idle span will finish.
|
|
9
|
-
*
|
|
10
|
-
* Default: 1000 (ms)
|
|
11
|
-
*/
|
|
12
|
-
idleTimeout: number;
|
|
13
|
-
/**
|
|
14
|
-
* The max. time an idle span may run.
|
|
15
|
-
* If this time is exceeded, the idle span will finish no matter what.
|
|
16
|
-
*
|
|
17
|
-
* Default: 30000 (ms)
|
|
18
|
-
*/
|
|
19
|
-
finalTimeout: number;
|
|
20
|
-
/**
|
|
21
|
-
The max. time an idle span may run.
|
|
22
|
-
* If this time is exceeded, the idle span will finish no matter what.
|
|
23
|
-
*
|
|
24
|
-
* Default: 15000 (ms)
|
|
25
|
-
*/
|
|
26
|
-
childSpanTimeout: number;
|
|
27
|
-
/**
|
|
28
|
-
* If a span should be created on page load.
|
|
29
|
-
* If this is set to `false`, this integration will not start the default page load span.
|
|
30
|
-
* Default: true
|
|
31
|
-
*/
|
|
32
|
-
instrumentPageLoad: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* If a span should be created on navigation (history change).
|
|
35
|
-
* If this is set to `false`, this integration will not start the default navigation spans.
|
|
36
|
-
* Default: true
|
|
37
|
-
*/
|
|
38
|
-
instrumentNavigation: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Flag spans where tabs moved to background with "cancelled". Browser background tab timing is
|
|
41
|
-
* not suited towards doing precise measurements of operations. By default, we recommend that this option
|
|
42
|
-
* be enabled as background transactions can mess up your statistics in nondeterministic ways.
|
|
43
|
-
*
|
|
44
|
-
* Default: true
|
|
45
|
-
*/
|
|
46
|
-
markBackgroundSpan: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* If true, Sentry will capture long tasks and add them to the corresponding transaction.
|
|
49
|
-
*
|
|
50
|
-
* Default: true
|
|
51
|
-
*/
|
|
52
|
-
enableLongTask: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* If true, Sentry will capture long animation frames and add them to the corresponding transaction.
|
|
55
|
-
*
|
|
56
|
-
* Default: false
|
|
57
|
-
*/
|
|
58
|
-
enableLongAnimationFrame: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* If true, Sentry will capture first input delay and add it to the corresponding transaction.
|
|
61
|
-
*
|
|
62
|
-
* Default: true
|
|
63
|
-
*/
|
|
64
|
-
enableInp: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* @deprecated This option is no longer used. Element timing is now tracked via the standalone
|
|
67
|
-
* `elementTimingIntegration`. Add it to your `integrations` array to collect element timing metrics.
|
|
68
|
-
*/
|
|
69
|
-
enableElementTiming?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Flag to disable patching all together for fetch requests.
|
|
72
|
-
*
|
|
73
|
-
* Default: true
|
|
74
|
-
*/
|
|
75
|
-
traceFetch: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Flag to disable patching all together for xhr requests.
|
|
78
|
-
*
|
|
79
|
-
* Default: true
|
|
80
|
-
*/
|
|
81
|
-
traceXHR: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Flag to disable tracking of long-lived streams, like server-sent events (SSE) via fetch.
|
|
84
|
-
* Do not enable this in case you have live streams or very long running streams.
|
|
85
|
-
*
|
|
86
|
-
* Default: false
|
|
87
|
-
*
|
|
88
|
-
* @deprecated Use `fetchStreamPerformanceIntegration()` instead. Add it to your `integrations` array
|
|
89
|
-
* to track the duration of streamed fetch response bodies.
|
|
90
|
-
*/
|
|
91
|
-
trackFetchStreamPerformance: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* If true, Sentry will capture http timings and add them to the corresponding http spans.
|
|
94
|
-
*
|
|
95
|
-
* Default: true
|
|
96
|
-
*/
|
|
97
|
-
enableHTTPTimings: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Resource spans with `op`s matching strings in the array will not be emitted.
|
|
100
|
-
*
|
|
101
|
-
* Default: []
|
|
102
|
-
*/
|
|
103
|
-
ignoreResourceSpans: Array<'resouce.script' | 'resource.css' | 'resource.img' | 'resource.other' | string>;
|
|
104
|
-
/**
|
|
105
|
-
* Spans created from the following browser Performance APIs,
|
|
106
|
-
*
|
|
107
|
-
* - [`performance.mark(...)`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark)
|
|
108
|
-
* - [`performance.measure(...)`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)
|
|
109
|
-
*
|
|
110
|
-
* will not be emitted if their names match strings in this array.
|
|
111
|
-
*
|
|
112
|
-
* This is useful, if you come across `mark` or `measure` spans in your Sentry traces
|
|
113
|
-
* that you want to ignore. For example, sometimes, browser extensions or libraries
|
|
114
|
-
* emit these entries on their own, which might not be relevant to your application.
|
|
115
|
-
*
|
|
116
|
-
* * @example
|
|
117
|
-
* ```ts
|
|
118
|
-
* Sentry.init({
|
|
119
|
-
* integrations: [
|
|
120
|
-
* Sentry.browserTracingIntegration({
|
|
121
|
-
* ignorePerformanceApiSpans: ['myMeasurement', /myMark/],
|
|
122
|
-
* }),
|
|
123
|
-
* ],
|
|
124
|
-
* });
|
|
125
|
-
*
|
|
126
|
-
* // no spans will be created for these:
|
|
127
|
-
* performance.mark('myMark');
|
|
128
|
-
* performance.measure('myMeasurement');
|
|
129
|
-
*
|
|
130
|
-
* // spans will be created for these:
|
|
131
|
-
* performance.mark('authenticated');
|
|
132
|
-
* performance.measure('input-duration', ...);
|
|
133
|
-
* ```
|
|
134
|
-
*
|
|
135
|
-
* Default: [] - By default, all `mark` and `measure` entries are sent as spans.
|
|
136
|
-
*/
|
|
137
|
-
ignorePerformanceApiSpans: Array<string | RegExp>;
|
|
138
|
-
/**
|
|
139
|
-
* By default, the SDK will try to detect redirects and avoid creating separate spans for them.
|
|
140
|
-
* If you want to opt-out of this behavior, you can set this option to `false`.
|
|
141
|
-
*
|
|
142
|
-
* Default: true
|
|
143
|
-
*/
|
|
144
|
-
detectRedirects: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Link the currently started trace to a previous trace (e.g. a prior pageload, navigation or
|
|
147
|
-
* manually started span). When enabled, this option will allow you to navigate between traces
|
|
148
|
-
* in the Sentry UI.
|
|
149
|
-
*
|
|
150
|
-
* You can set this option to the following values:
|
|
151
|
-
*
|
|
152
|
-
* - `'in-memory'`: The previous trace data will be stored in memory.
|
|
153
|
-
* This is useful for single-page applications and enabled by default.
|
|
154
|
-
*
|
|
155
|
-
* - `'session-storage'`: The previous trace data will be stored in the `sessionStorage`.
|
|
156
|
-
* This is useful for multi-page applications or static sites but it means that the
|
|
157
|
-
* Sentry SDK writes to the browser's `sessionStorage`.
|
|
158
|
-
*
|
|
159
|
-
* - `'off'`: The previous trace data will not be stored or linked.
|
|
160
|
-
*
|
|
161
|
-
* You can also use {@link BrowserTracingOptions.consistentTraceSampling} to get
|
|
162
|
-
* consistent trace sampling of subsequent traces. Otherwise, by default, your
|
|
163
|
-
* `tracesSampleRate` or `tracesSampler` config significantly influences how often
|
|
164
|
-
* traces will be linked.
|
|
165
|
-
*
|
|
166
|
-
* @default 'in-memory' - see explanation above
|
|
167
|
-
*/
|
|
168
|
-
linkPreviousTrace: 'in-memory' | 'session-storage' | 'off';
|
|
169
|
-
/**
|
|
170
|
-
* If true, Sentry will consistently sample subsequent traces based on the
|
|
171
|
-
* sampling decision of the initial trace. For example, if the initial page
|
|
172
|
-
* load trace was sampled positively, all subsequent traces (e.g. navigations)
|
|
173
|
-
* are also sampled positively. In case the initial trace was sampled negatively,
|
|
174
|
-
* all subsequent traces are also sampled negatively.
|
|
175
|
-
*
|
|
176
|
-
* This option allows you to get consistent, linked traces within a user journey
|
|
177
|
-
* while maintaining an overall quota based on your trace sampling settings.
|
|
178
|
-
*
|
|
179
|
-
* This option is only effective if {@link BrowserTracingOptions.linkPreviousTrace}
|
|
180
|
-
* is enabled (i.e. not set to `'off'`).
|
|
181
|
-
*
|
|
182
|
-
* @default `false` - this is an opt-in feature.
|
|
183
|
-
*/
|
|
184
|
-
consistentTraceSampling: boolean;
|
|
185
|
-
/**
|
|
186
|
-
* If set to `true`, the pageload span will not end itself automatically, unless it
|
|
187
|
-
* runs until the {@link BrowserTracingOptions.finalTimeout} (30 seconds by default) is reached.
|
|
188
|
-
*
|
|
189
|
-
* Set this option to `true`, if you want full control over the pageload span duration.
|
|
190
|
-
* You can use `Sentry.reportPageLoaded()` to manually end the pageload span whenever convenient.
|
|
191
|
-
* Be aware that you have to ensure that this is always called, regardless of the chosen route
|
|
192
|
-
* or path in the application.
|
|
193
|
-
*
|
|
194
|
-
* @default `false`. By default, the pageload span will end itself automatically, based on
|
|
195
|
-
* the {@link BrowserTracingOptions.finalTimeout}, {@link BrowserTracingOptions.idleTimeout}
|
|
196
|
-
* and {@link BrowserTracingOptions.childSpanTimeout}. This is more convenient to use but means
|
|
197
|
-
* that the pageload duration can be arbitrary and might not be fully representative of a perceived
|
|
198
|
-
* page load time.
|
|
199
|
-
*/
|
|
200
|
-
enableReportPageLoaded: boolean;
|
|
201
|
-
/**
|
|
202
|
-
* _experiments allows the user to send options to define how this integration works.
|
|
203
|
-
*
|
|
204
|
-
* Default: undefined
|
|
205
|
-
*/
|
|
206
|
-
_experiments: Partial<{
|
|
207
|
-
enableInteractions: boolean;
|
|
208
|
-
enableStandaloneClsSpans: boolean;
|
|
209
|
-
enableStandaloneLcpSpans: boolean;
|
|
210
|
-
}>;
|
|
211
|
-
/**
|
|
212
|
-
* A callback which is called before a span for a pageload or navigation is started.
|
|
213
|
-
* It receives the options passed to `startSpan`, and expects to return an updated options object.
|
|
214
|
-
*/
|
|
215
|
-
beforeStartSpan?: (options: StartSpanOptions) => StartSpanOptions;
|
|
216
|
-
/**
|
|
217
|
-
* This function will be called before creating a span for a request with the given url.
|
|
218
|
-
* Return false if you don't want a span for the given url.
|
|
219
|
-
*
|
|
220
|
-
* Default: (url: string) => true
|
|
221
|
-
*/
|
|
222
|
-
shouldCreateSpanForRequest?(this: void, url: string): boolean;
|
|
223
|
-
/**
|
|
224
|
-
* This callback is invoked directly after a span is started for an outgoing fetch or XHR request.
|
|
225
|
-
* You can use it to annotate the span with additional data or attributes, for example by setting
|
|
226
|
-
* attributes based on the passed request headers.
|
|
227
|
-
*/
|
|
228
|
-
onRequestSpanStart?(span: Span, requestInformation: RequestHookInfo): void;
|
|
229
|
-
/**
|
|
230
|
-
* Is called when spans end for outgoing requests, providing access to response headers.
|
|
231
|
-
*/
|
|
232
|
-
onRequestSpanEnd?(span: Span, responseInformation: ResponseHookInfo): void;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* The Browser Tracing integration automatically instruments browser pageload/navigation
|
|
236
|
-
* actions as transactions, and captures requests, metrics and errors as spans.
|
|
237
|
-
*
|
|
238
|
-
* The integration can be configured with a variety of options, and can be extended to use
|
|
239
|
-
* any routing library.
|
|
240
|
-
*
|
|
241
|
-
* We explicitly export the proper type here, as this has to be extended in some cases.
|
|
242
|
-
*/
|
|
243
|
-
export declare const browserTracingIntegration: (options?: Partial<BrowserTracingOptions>) => {
|
|
244
|
-
name: string;
|
|
245
|
-
setup(client: Client<import("@sentry/core").ClientOptions<import("@sentry/core").BaseTransportOptions>>): void;
|
|
246
|
-
afterAllSetup(client: Client<import("@sentry/core").ClientOptions<import("@sentry/core").BaseTransportOptions>>): void;
|
|
247
|
-
};
|
|
248
|
-
/**
|
|
249
|
-
* Manually start a page load span.
|
|
250
|
-
* This will only do something if a browser tracing integration integration has been setup.
|
|
251
|
-
*
|
|
252
|
-
* If you provide a custom `traceOptions` object, it will be used to continue the trace
|
|
253
|
-
* instead of the default behavior, which is to look it up on the <meta> tags.
|
|
254
|
-
*/
|
|
255
|
-
export declare function startBrowserTracingPageLoadSpan(client: Client, spanOptions: StartSpanOptions, traceOptions?: {
|
|
256
|
-
sentryTrace?: string | undefined;
|
|
257
|
-
baggage?: string | undefined;
|
|
258
|
-
}): Span | undefined;
|
|
259
|
-
/**
|
|
260
|
-
* Manually start a navigation span.
|
|
261
|
-
* This will only do something if a browser tracing integration has been setup.
|
|
262
|
-
*/
|
|
263
|
-
export declare function startBrowserTracingNavigationSpan(client: Client, spanOptions: StartSpanOptions, options?: {
|
|
264
|
-
url?: string;
|
|
265
|
-
isRedirect?: boolean;
|
|
266
|
-
}): Span | undefined;
|
|
267
|
-
/** Returns the value of a meta tag */
|
|
268
|
-
export declare function getMetaContent(metaName: string): string | undefined;
|
|
269
|
-
/** Returns the description of a server timing entry */
|
|
270
|
-
export declare function getServerTiming(name: string): string | undefined;
|
|
271
|
-
//# sourceMappingURL=browserTracingIntegration.d.ts.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Client, PropagationContext, Span, SpanContextData } from '@sentry/core/browser';
|
|
2
|
-
export interface PreviousTraceInfo {
|
|
3
|
-
/**
|
|
4
|
-
* Span context of the previous trace's local root span
|
|
5
|
-
*/
|
|
6
|
-
spanContext: SpanContextData;
|
|
7
|
-
/**
|
|
8
|
-
* Timestamp in seconds when the previous trace was started
|
|
9
|
-
*/
|
|
10
|
-
startTimestamp: number;
|
|
11
|
-
/**
|
|
12
|
-
* sample rate of the previous trace
|
|
13
|
-
*/
|
|
14
|
-
sampleRate: number;
|
|
15
|
-
/**
|
|
16
|
-
* The sample rand of the previous trace
|
|
17
|
-
*/
|
|
18
|
-
sampleRand: number;
|
|
19
|
-
}
|
|
20
|
-
export declare const PREVIOUS_TRACE_MAX_DURATION = 3600;
|
|
21
|
-
export declare const PREVIOUS_TRACE_KEY = "sentry_previous_trace";
|
|
22
|
-
export declare const PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE = "sentry.previous_trace";
|
|
23
|
-
/**
|
|
24
|
-
* Takes care of linking traces and applying the (consistent) sampling behavoiour based on the passed options
|
|
25
|
-
* @param options - options for linking traces and consistent trace sampling (@see BrowserTracingOptions)
|
|
26
|
-
* @param client - Sentry client
|
|
27
|
-
*/
|
|
28
|
-
export declare function linkTraces(client: Client, { linkPreviousTrace, consistentTraceSampling, }: {
|
|
29
|
-
linkPreviousTrace: 'session-storage' | 'in-memory';
|
|
30
|
-
consistentTraceSampling: boolean;
|
|
31
|
-
}): void;
|
|
32
|
-
/**
|
|
33
|
-
* Adds a previous_trace span link to the passed span if the passed
|
|
34
|
-
* previousTraceInfo is still valid.
|
|
35
|
-
*
|
|
36
|
-
* @returns the updated previous trace info (based on the current span/trace) to
|
|
37
|
-
* be used on the next call
|
|
38
|
-
*/
|
|
39
|
-
export declare function addPreviousTraceSpanLink(previousTraceInfo: PreviousTraceInfo | undefined, span: Span, oldPropagationContext: PropagationContext): PreviousTraceInfo;
|
|
40
|
-
/**
|
|
41
|
-
* Stores @param previousTraceInfo in sessionStorage.
|
|
42
|
-
*/
|
|
43
|
-
export declare function storePreviousTraceInSessionStorage(previousTraceInfo: PreviousTraceInfo): void;
|
|
44
|
-
/**
|
|
45
|
-
* Retrieves the previous trace from sessionStorage if available.
|
|
46
|
-
*/
|
|
47
|
-
export declare function getPreviousTraceFromSessionStorage(): PreviousTraceInfo | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* see {@link import('@sentry/core/browser').spanIsSampled}
|
|
50
|
-
*/
|
|
51
|
-
export declare function spanContextSampled(ctx: SpanContextData): boolean;
|
|
52
|
-
//# sourceMappingURL=linkedTraces.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Client } from '@sentry/core/browser';
|
|
2
|
-
/**
|
|
3
|
-
* Manually report the end of the page load, resulting in the SDK ending the pageload span.
|
|
4
|
-
* This only works if {@link BrowserTracingOptions.enableReportPageLoaded} is set to `true`.
|
|
5
|
-
* Otherwise, the pageload span will end itself based on the {@link BrowserTracingOptions.finalTimeout},
|
|
6
|
-
* {@link BrowserTracingOptions.idleTimeout} and {@link BrowserTracingOptions.childSpanTimeout}.
|
|
7
|
-
*
|
|
8
|
-
* @param client - The client to use. If not provided, the global client will be used.
|
|
9
|
-
*/
|
|
10
|
-
export declare function reportPageLoaded(client?: Client | undefined): void;
|
|
11
|
-
//# sourceMappingURL=reportPageLoaded.d.ts.map
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { Client, RequestHookInfo, ResponseHookInfo, Span } from '@sentry/core/browser';
|
|
2
|
-
/** Options for Request Instrumentation */
|
|
3
|
-
export interface RequestInstrumentationOptions {
|
|
4
|
-
/**
|
|
5
|
-
* List of strings and/or Regular Expressions used to determine which outgoing requests will have `sentry-trace` and `baggage`
|
|
6
|
-
* headers attached.
|
|
7
|
-
*
|
|
8
|
-
* **Default:** If this option is not provided, tracing headers will be attached to all outgoing requests.
|
|
9
|
-
* If you are using a browser SDK, by default, tracing headers will only be attached to outgoing requests to the same origin.
|
|
10
|
-
*
|
|
11
|
-
* **Disclaimer:** Carelessly setting this option in browser environments may result into CORS errors!
|
|
12
|
-
* Only attach tracing headers to requests to the same origin, or to requests to services you can control CORS headers of.
|
|
13
|
-
* Cross-origin requests, meaning requests to a different domain, for example a request to `https://api.example.com/` while you're on `https://example.com/`, take special care.
|
|
14
|
-
* If you are attaching headers to cross-origin requests, make sure the backend handling the request returns a `"Access-Control-Allow-Headers: sentry-trace, baggage"` header to ensure your requests aren't blocked.
|
|
15
|
-
*
|
|
16
|
-
* If you provide a `tracePropagationTargets` array, the entries you provide will be matched against the entire URL of the outgoing request.
|
|
17
|
-
* If you are using a browser SDK, the entries will also be matched against the pathname of the outgoing requests.
|
|
18
|
-
* This is so you can have matchers for relative requests, for example, `/^\/api/` if you want to trace requests to your `/api` routes on the same domain.
|
|
19
|
-
*
|
|
20
|
-
* If any of the two match any of the provided values, tracing headers will be attached to the outgoing request.
|
|
21
|
-
* Both, the string values, and the RegExes you provide in the array will match if they partially match the URL or pathname.
|
|
22
|
-
*
|
|
23
|
-
* Examples:
|
|
24
|
-
* - `tracePropagationTargets: [/^\/api/]` and request to `https://same-origin.com/api/posts`:
|
|
25
|
-
* - Tracing headers will be attached because the request is sent to the same origin and the regex matches the pathname "/api/posts".
|
|
26
|
-
* - `tracePropagationTargets: [/^\/api/]` and request to `https://different-origin.com/api/posts`:
|
|
27
|
-
* - Tracing headers will not be attached because the pathname will only be compared when the request target lives on the same origin.
|
|
28
|
-
* - `tracePropagationTargets: [/^\/api/, 'https://external-api.com']` and request to `https://external-api.com/v1/data`:
|
|
29
|
-
* - Tracing headers will be attached because the request URL matches the string `'https://external-api.com'`.
|
|
30
|
-
*/
|
|
31
|
-
tracePropagationTargets?: Array<string | RegExp>;
|
|
32
|
-
/**
|
|
33
|
-
* Flag to disable patching all together for fetch requests.
|
|
34
|
-
*
|
|
35
|
-
* Default: true
|
|
36
|
-
*/
|
|
37
|
-
traceFetch: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Flag to disable patching all together for xhr requests.
|
|
40
|
-
*
|
|
41
|
-
* Default: true
|
|
42
|
-
*/
|
|
43
|
-
traceXHR: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Flag to disable tracking of long-lived streams, like server-sent events (SSE) via fetch.
|
|
46
|
-
* Do not enable this in case you have live streams or very long running streams.
|
|
47
|
-
*
|
|
48
|
-
* Disabled by default since it can lead to issues with streams using the `cancel()` api
|
|
49
|
-
* (https://github.com/getsentry/sentry-javascript/issues/13950)
|
|
50
|
-
*
|
|
51
|
-
* Default: false
|
|
52
|
-
*
|
|
53
|
-
* @deprecated Use `fetchStreamPerformanceIntegration()` instead. Add it to your `integrations` array
|
|
54
|
-
* to track the duration of streamed fetch response bodies.
|
|
55
|
-
*/
|
|
56
|
-
trackFetchStreamPerformance: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* If true, Sentry will capture http timings and add them to the corresponding http spans.
|
|
59
|
-
*
|
|
60
|
-
* Default: true
|
|
61
|
-
*/
|
|
62
|
-
enableHTTPTimings: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* This function will be called before creating a span for a request with the given url.
|
|
65
|
-
* Return false if you don't want a span for the given url.
|
|
66
|
-
*
|
|
67
|
-
* Default: (url: string) => true
|
|
68
|
-
*/
|
|
69
|
-
shouldCreateSpanForRequest?(this: void, url: string): boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Is called when spans are started for outgoing requests.
|
|
72
|
-
*/
|
|
73
|
-
onRequestSpanStart?(span: Span, requestInformation: RequestHookInfo): void;
|
|
74
|
-
/**
|
|
75
|
-
* Is called when spans end for outgoing requests, providing access to response headers.
|
|
76
|
-
*/
|
|
77
|
-
onRequestSpanEnd?(span: Span, responseInformation: ResponseHookInfo): void;
|
|
78
|
-
}
|
|
79
|
-
export declare const defaultRequestInstrumentationOptions: RequestInstrumentationOptions;
|
|
80
|
-
/** Registers span creators for xhr and fetch requests */
|
|
81
|
-
export declare function instrumentOutgoingRequests(client: Client, _options?: Partial<RequestInstrumentationOptions>): void;
|
|
82
|
-
/**
|
|
83
|
-
* A function that determines whether to attach tracing headers to a request.
|
|
84
|
-
* We only export this function for testing purposes.
|
|
85
|
-
*/
|
|
86
|
-
export declare function shouldAttachHeaders(targetUrl: string, tracePropagationTargets: (string | RegExp)[] | undefined): boolean;
|
|
87
|
-
//# sourceMappingURL=request.d.ts.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Span } from '@sentry/core/browser';
|
|
2
|
-
/**
|
|
3
|
-
* Sets an inactive span active on the current scope.
|
|
4
|
-
*
|
|
5
|
-
* This is useful in browser applications, if you want to create a span that cannot be finished
|
|
6
|
-
* within its callback. Any spans started while the given span is active, will be children of the span.
|
|
7
|
-
*
|
|
8
|
-
* If there already was an active span on the scope prior to calling this function, it is replaced
|
|
9
|
-
* with the given span and restored after the span ended. Otherwise, the span will simply be
|
|
10
|
-
* removed, resulting in no active span on the scope.
|
|
11
|
-
*
|
|
12
|
-
* IMPORTANT: This function can ONLY be used in the browser! Calling this function in a server
|
|
13
|
-
* environment (for example in a server-side rendered component) will result in undefined behaviour
|
|
14
|
-
* and is not supported.
|
|
15
|
-
* You MUST call `span.end()` manually, otherwise the span will never be finished.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```js
|
|
19
|
-
* let checkoutSpan;
|
|
20
|
-
*
|
|
21
|
-
* on('checkoutStarted', () => {
|
|
22
|
-
* checkoutSpan = Sentry.startInactiveSpan({ name: 'checkout-flow' });
|
|
23
|
-
* Sentry.setActiveSpanInBrowser(checkoutSpan);
|
|
24
|
-
* })
|
|
25
|
-
*
|
|
26
|
-
* // during this time, any spans started will be children of `checkoutSpan`:
|
|
27
|
-
* Sentry.startSpan({ name: 'checkout-step-1' }, () => {
|
|
28
|
-
* // ... `
|
|
29
|
-
* })
|
|
30
|
-
*
|
|
31
|
-
* on('checkoutCompleted', () => {
|
|
32
|
-
* checkoutSpan?.end();
|
|
33
|
-
* })
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @param span - the span to set active
|
|
37
|
-
*/
|
|
38
|
-
export declare function setActiveSpanInBrowser(span: Span): void;
|
|
39
|
-
//# sourceMappingURL=setActiveSpan.d.ts.map
|