@sentry/browser 8.41.0 → 8.43.0
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/client.js +1 -1
- package/build/npm/cjs/client.js.map +1 -1
- package/build/npm/cjs/eventbuilder.js.map +1 -1
- package/build/npm/cjs/helpers.js +25 -21
- package/build/npm/cjs/helpers.js.map +1 -1
- package/build/npm/cjs/index.js +10 -0
- package/build/npm/cjs/index.js.map +1 -1
- package/build/npm/cjs/integrations/breadcrumbs.js +3 -0
- package/build/npm/cjs/integrations/breadcrumbs.js.map +1 -1
- package/build/npm/cjs/integrations/browserapierrors.js +41 -63
- package/build/npm/cjs/integrations/browserapierrors.js.map +1 -1
- package/build/npm/cjs/integrations/browsersession.js +44 -0
- package/build/npm/cjs/integrations/browsersession.js.map +1 -0
- package/build/npm/cjs/integrations/contextlines.js.map +1 -1
- package/build/npm/cjs/integrations/featureFlags/featureFlagsIntegration.js +46 -0
- package/build/npm/cjs/integrations/featureFlags/featureFlagsIntegration.js.map +1 -0
- package/build/npm/cjs/integrations/featureFlags/launchdarkly/integration.js +55 -0
- package/build/npm/cjs/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
- package/build/npm/cjs/integrations/featureFlags/openfeature/integration.js +37 -0
- package/build/npm/cjs/integrations/featureFlags/openfeature/integration.js.map +1 -0
- package/build/npm/cjs/integrations/globalhandlers.js +8 -4
- package/build/npm/cjs/integrations/globalhandlers.js.map +1 -1
- package/build/npm/cjs/integrations/httpclient.js.map +1 -1
- package/build/npm/cjs/integrations/linkederrors.js.map +1 -1
- package/build/npm/cjs/integrations/reportingobserver.js +7 -6
- package/build/npm/cjs/integrations/reportingobserver.js.map +1 -1
- package/build/npm/cjs/integrations/spotlight.js.map +1 -1
- package/build/npm/cjs/metrics.js.map +1 -1
- package/build/npm/cjs/profiling/integration.js.map +1 -1
- package/build/npm/cjs/profiling/startProfileForSpan.js.map +1 -1
- package/build/npm/cjs/profiling/utils.js +0 -3
- package/build/npm/cjs/profiling/utils.js.map +1 -1
- package/build/npm/cjs/sdk.js +11 -37
- package/build/npm/cjs/sdk.js.map +1 -1
- package/build/npm/cjs/stack-parsers.js.map +1 -1
- package/build/npm/cjs/tracing/backgroundtab.js.map +1 -1
- package/build/npm/cjs/tracing/browserTracingIntegration.js +2 -2
- package/build/npm/cjs/tracing/browserTracingIntegration.js.map +1 -1
- package/build/npm/cjs/tracing/request.js +0 -2
- package/build/npm/cjs/tracing/request.js.map +1 -1
- package/build/npm/cjs/transports/fetch.js.map +1 -1
- package/build/npm/cjs/transports/offline.js.map +1 -1
- package/build/npm/cjs/userfeedback.js.map +1 -1
- package/build/npm/cjs/utils/featureFlags.js +96 -0
- package/build/npm/cjs/utils/featureFlags.js.map +1 -0
- package/build/npm/cjs/utils/lazyLoadIntegration.js.map +1 -1
- package/build/npm/esm/client.js +1 -1
- package/build/npm/esm/client.js.map +1 -1
- package/build/npm/esm/eventbuilder.js.map +1 -1
- package/build/npm/esm/helpers.js +25 -21
- package/build/npm/esm/helpers.js.map +1 -1
- package/build/npm/esm/index.js +4 -0
- package/build/npm/esm/index.js.map +1 -1
- package/build/npm/esm/integrations/breadcrumbs.js +3 -0
- package/build/npm/esm/integrations/breadcrumbs.js.map +1 -1
- package/build/npm/esm/integrations/browserapierrors.js +41 -63
- package/build/npm/esm/integrations/browserapierrors.js.map +1 -1
- package/build/npm/esm/integrations/browsersession.js +42 -0
- package/build/npm/esm/integrations/browsersession.js.map +1 -0
- package/build/npm/esm/integrations/contextlines.js.map +1 -1
- package/build/npm/esm/integrations/featureFlags/featureFlagsIntegration.js +44 -0
- package/build/npm/esm/integrations/featureFlags/featureFlagsIntegration.js.map +1 -0
- package/build/npm/esm/integrations/featureFlags/launchdarkly/integration.js +52 -0
- package/build/npm/esm/integrations/featureFlags/launchdarkly/integration.js.map +1 -0
- package/build/npm/esm/integrations/featureFlags/openfeature/integration.js +34 -0
- package/build/npm/esm/integrations/featureFlags/openfeature/integration.js.map +1 -0
- package/build/npm/esm/integrations/globalhandlers.js +8 -4
- package/build/npm/esm/integrations/globalhandlers.js.map +1 -1
- package/build/npm/esm/integrations/httpclient.js.map +1 -1
- package/build/npm/esm/integrations/linkederrors.js.map +1 -1
- package/build/npm/esm/integrations/reportingobserver.js +7 -6
- package/build/npm/esm/integrations/reportingobserver.js.map +1 -1
- package/build/npm/esm/integrations/spotlight.js.map +1 -1
- package/build/npm/esm/metrics.js.map +1 -1
- package/build/npm/esm/package.json +1 -1
- package/build/npm/esm/profiling/integration.js.map +1 -1
- package/build/npm/esm/profiling/startProfileForSpan.js.map +1 -1
- package/build/npm/esm/profiling/utils.js +0 -3
- package/build/npm/esm/profiling/utils.js.map +1 -1
- package/build/npm/esm/sdk.js +12 -38
- package/build/npm/esm/sdk.js.map +1 -1
- package/build/npm/esm/stack-parsers.js.map +1 -1
- package/build/npm/esm/tracing/backgroundtab.js.map +1 -1
- package/build/npm/esm/tracing/browserTracingIntegration.js +3 -3
- package/build/npm/esm/tracing/browserTracingIntegration.js.map +1 -1
- package/build/npm/esm/tracing/request.js +0 -2
- package/build/npm/esm/tracing/request.js.map +1 -1
- package/build/npm/esm/transports/fetch.js.map +1 -1
- package/build/npm/esm/transports/offline.js.map +1 -1
- package/build/npm/esm/userfeedback.js.map +1 -1
- package/build/npm/esm/utils/featureFlags.js +91 -0
- package/build/npm/esm/utils/featureFlags.js.map +1 -0
- package/build/npm/esm/utils/lazyLoadIntegration.js.map +1 -1
- package/build/npm/types/client.d.ts +2 -3
- package/build/npm/types/client.d.ts.map +1 -1
- package/build/npm/types/eventbuilder.d.ts +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/feedbackAsync.d.ts +1 -1
- package/build/npm/types/feedbackSync.d.ts +1 -1
- package/build/npm/types/helpers.d.ts +8 -12
- package/build/npm/types/helpers.d.ts.map +1 -1
- package/build/npm/types/index.d.ts +8 -4
- package/build/npm/types/index.d.ts.map +1 -1
- package/build/npm/types/integrations/breadcrumbs.d.ts +1 -1
- package/build/npm/types/integrations/breadcrumbs.d.ts.map +1 -1
- package/build/npm/types/integrations/browserapierrors.d.ts +1 -1
- package/build/npm/types/integrations/browserapierrors.d.ts.map +1 -1
- package/build/npm/types/integrations/browsersession.d.ts +8 -0
- package/build/npm/types/integrations/browsersession.d.ts.map +1 -0
- package/build/npm/types/integrations/contextlines.d.ts +2 -2
- package/build/npm/types/integrations/contextlines.d.ts.map +1 -1
- package/build/npm/types/integrations/featureFlags/featureFlagsIntegration.d.ts +31 -0
- package/build/npm/types/integrations/featureFlags/featureFlagsIntegration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/index.d.ts +2 -0
- package/build/npm/types/integrations/featureFlags/index.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 +25 -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 +16 -0
- package/build/npm/types/integrations/featureFlags/openfeature/integration.d.ts.map +1 -0
- package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts +86 -0
- package/build/npm/types/integrations/featureFlags/openfeature/types.d.ts.map +1 -0
- package/build/npm/types/integrations/globalhandlers.d.ts +1 -1
- package/build/npm/types/integrations/globalhandlers.d.ts.map +1 -1
- package/build/npm/types/integrations/httpclient.d.ts +1 -1
- package/build/npm/types/integrations/httpclient.d.ts.map +1 -1
- package/build/npm/types/integrations/httpcontext.d.ts +1 -1
- package/build/npm/types/integrations/httpcontext.d.ts.map +1 -1
- package/build/npm/types/integrations/linkederrors.d.ts +1 -1
- package/build/npm/types/integrations/linkederrors.d.ts.map +1 -1
- package/build/npm/types/integrations/reportingobserver.d.ts +1 -1
- package/build/npm/types/integrations/reportingobserver.d.ts.map +1 -1
- package/build/npm/types/integrations/spotlight.d.ts +2 -2
- package/build/npm/types/integrations/spotlight.d.ts.map +1 -1
- package/build/npm/types/metrics.d.ts +1 -1
- package/build/npm/types/metrics.d.ts.map +1 -1
- package/build/npm/types/profiling/integration.d.ts +1 -1
- package/build/npm/types/profiling/integration.d.ts.map +1 -1
- package/build/npm/types/profiling/startProfileForSpan.d.ts +1 -1
- package/build/npm/types/profiling/startProfileForSpan.d.ts.map +1 -1
- package/build/npm/types/profiling/utils.d.ts +1 -1
- package/build/npm/types/profiling/utils.d.ts.map +1 -1
- package/build/npm/types/sdk.d.ts +2 -2
- package/build/npm/types/sdk.d.ts.map +1 -1
- package/build/npm/types/stack-parsers.d.ts +2 -2
- package/build/npm/types/stack-parsers.d.ts.map +1 -1
- package/build/npm/types/tracing/backgroundtab.d.ts.map +1 -1
- package/build/npm/types/tracing/browserTracingIntegration.d.ts +2 -3
- package/build/npm/types/tracing/browserTracingIntegration.d.ts.map +1 -1
- package/build/npm/types/tracing/request.d.ts +1 -1
- package/build/npm/types/tracing/request.d.ts.map +1 -1
- package/build/npm/types/transports/fetch.d.ts +1 -1
- package/build/npm/types/transports/fetch.d.ts.map +1 -1
- package/build/npm/types/transports/offline.d.ts +1 -2
- package/build/npm/types/transports/offline.d.ts.map +1 -1
- package/build/npm/types/transports/types.d.ts +1 -1
- package/build/npm/types/transports/types.d.ts.map +1 -1
- package/build/npm/types/userfeedback.d.ts +1 -1
- package/build/npm/types/userfeedback.d.ts.map +1 -1
- package/build/npm/types/utils/featureFlags.d.ts +34 -0
- package/build/npm/types/utils/featureFlags.d.ts.map +1 -0
- package/build/npm/types/utils/lazyLoadIntegration.d.ts +1 -1
- package/build/npm/types/utils/lazyLoadIntegration.d.ts.map +1 -1
- package/build/npm/types-ts3.8/client.d.ts +2 -3
- package/build/npm/types-ts3.8/eventbuilder.d.ts +1 -1
- package/build/npm/types-ts3.8/exports.d.ts +1 -1
- package/build/npm/types-ts3.8/feedbackAsync.d.ts +1 -1
- package/build/npm/types-ts3.8/feedbackSync.d.ts +1 -1
- package/build/npm/types-ts3.8/helpers.d.ts +8 -12
- package/build/npm/types-ts3.8/index.d.ts +8 -4
- package/build/npm/types-ts3.8/integrations/breadcrumbs.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/browserapierrors.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/browsersession.d.ts +8 -0
- package/build/npm/types-ts3.8/integrations/contextlines.d.ts +2 -2
- package/build/npm/types-ts3.8/integrations/featureFlags/featureFlagsIntegration.d.ts +31 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/index.d.ts +2 -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 +25 -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 +16 -0
- package/build/npm/types-ts3.8/integrations/featureFlags/openfeature/types.d.ts +86 -0
- package/build/npm/types-ts3.8/integrations/globalhandlers.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/httpclient.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/httpcontext.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/linkederrors.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/reportingobserver.d.ts +1 -1
- package/build/npm/types-ts3.8/integrations/spotlight.d.ts +2 -2
- package/build/npm/types-ts3.8/metrics.d.ts +1 -1
- package/build/npm/types-ts3.8/profiling/integration.d.ts +1 -1
- package/build/npm/types-ts3.8/profiling/startProfileForSpan.d.ts +1 -1
- package/build/npm/types-ts3.8/profiling/utils.d.ts +1 -1
- package/build/npm/types-ts3.8/sdk.d.ts +2 -2
- package/build/npm/types-ts3.8/stack-parsers.d.ts +2 -2
- package/build/npm/types-ts3.8/tracing/browserTracingIntegration.d.ts +2 -3
- package/build/npm/types-ts3.8/tracing/request.d.ts +1 -1
- package/build/npm/types-ts3.8/transports/fetch.d.ts +1 -1
- package/build/npm/types-ts3.8/transports/offline.d.ts +1 -2
- package/build/npm/types-ts3.8/transports/types.d.ts +1 -1
- package/build/npm/types-ts3.8/userfeedback.d.ts +1 -1
- package/build/npm/types-ts3.8/utils/featureFlags.d.ts +34 -0
- package/build/npm/types-ts3.8/utils/lazyLoadIntegration.d.ts +1 -1
- package/package.json +7 -8
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Client, StartSpanOptions } from '@sentry/
|
|
2
|
-
import type { Span } from '@sentry/types';
|
|
1
|
+
import type { Client, Span, StartSpanOptions } from '@sentry/core';
|
|
3
2
|
export declare const BROWSER_TRACING_INTEGRATION_ID = "BrowserTracing";
|
|
4
3
|
/** Options for Browser Tracing integration */
|
|
5
4
|
export interface BrowserTracingOptions {
|
|
@@ -120,7 +119,7 @@ export interface BrowserTracingOptions {
|
|
|
120
119
|
*/
|
|
121
120
|
export declare const browserTracingIntegration: (_options?: Partial<BrowserTracingOptions>) => {
|
|
122
121
|
name: string;
|
|
123
|
-
afterAllSetup(client: Client<import("@sentry/
|
|
122
|
+
afterAllSetup(client: Client<import("@sentry/core").ClientOptions<import("@sentry/core").BaseTransportOptions>>): void;
|
|
124
123
|
};
|
|
125
124
|
/**
|
|
126
125
|
* Manually start a page load span.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserTracingIntegration.d.ts","sourceRoot":"","sources":["../../../../src/tracing/browserTracingIntegration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"browserTracingIntegration.d.ts","sourceRoot":"","sources":["../../../../src/tracing/browserTracingIntegration.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,MAAM,EAAiB,IAAI,EAAE,gBAAgB,EAAqB,MAAM,cAAc,CAAC;AA4BrG,eAAO,MAAM,8BAA8B,mBAAmB,CAAC;AAO/D,8CAA8C;AAC9C,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAE5B;;;;OAIG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAE9B;;;;;;OAMG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAE5B;;;;OAIG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,wBAAwB,EAAE,OAAO,CAAC;IAElC;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,2BAA2B,EAAE,OAAO,CAAC;IAErC;;;;OAIG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACH,YAAY,EAAE,OAAO,CAAC;QACpB,kBAAkB,EAAE,OAAO,CAAC;QAC5B,wBAAwB,EAAE,OAAO,CAAC;KACnC,CAAC,CAAC;IAEH;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,gBAAgB,CAAC;IAElE;;;;;OAKG;IACH,0BAA0B,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/D;AAcD;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,cAAe,QAAQ,qBAAqB,CAAC;;;CAuOzD,CAAC;AAE3B;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,gBAAgB,EAC7B,YAAY,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAChF,IAAI,GAAG,SAAS,CAQlB;AAED;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAWjH;AAED,sCAAsC;AACtC,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAOnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/tracing/request.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/tracing/request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAA+B,IAAI,EAAE,MAAM,cAAc,CAAC;AAoB9F,0CAA0C;AAC1C,MAAM,WAAW,6BAA6B;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,uBAAuB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAEjD;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;;;OAQG;IACH,2BAA2B,EAAE,OAAO,CAAC;IAErC;;;;OAIG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;;;;OAKG;IACH,0BAA0B,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/D;AAKD,eAAO,MAAM,oCAAoC,EAAE,6BAKlD,CAAC;AAEF,0DAA0D;AAC1D,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,CAAC,6BAA6B,CAAC,GAAG,IAAI,CAoFlH;AAqCD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAuBjG;AA+BD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,EACjB,uBAAuB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,SAAS,GACvD,OAAO,CAqCT;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,WAAW,EAAE,cAAc,EAC3B,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,EAC1C,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,EAC7C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAC1B,IAAI,GAAG,SAAS,CA6DlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/transports/fetch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/transports/fetch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAkD,MAAM,cAAc,CAAC;AAE9F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,uBAAuB,EAChC,WAAW,GAAE,OAAO,MAAM,CAAC,KAAK,GAAG,SAA4C,GAC9E,SAAS,CAwDX"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { OfflineTransportOptions } from '@sentry/core';
|
|
2
|
-
import type { BaseTransportOptions, Transport } from '@sentry/types';
|
|
1
|
+
import type { BaseTransportOptions, OfflineTransportOptions, Transport } from '@sentry/core';
|
|
3
2
|
type Store = <T>(callback: (store: IDBObjectStore) => T | PromiseLike<T>) => Promise<T>;
|
|
4
3
|
/** Create or open an IndexedDb store */
|
|
5
4
|
export declare function createStore(dbName: string, storeName: string): Store;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offline.d.ts","sourceRoot":"","sources":["../../../../src/transports/offline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"offline.d.ts","sourceRoot":"","sources":["../../../../src/transports/offline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAA0B,uBAAuB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAwBrH,KAAK,KAAK,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAWxF,wCAAwC;AACxC,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,CAMpE;AAMD,uCAAuC;AACvC,wBAAgB,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYlG;AAED,yCAAyC;AACzC,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYrG;AAED,0CAA0C;AAC1C,wBAAgB,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC,CAc5E;AAED,MAAM,WAAW,8BAA+B,SAAQ,IAAI,CAAC,uBAAuB,EAAE,aAAa,CAAC;IAClG;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAoDD;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,oBAAoB,EACxE,eAAe,GAAE,CAAC,OAAO,EAAE,CAAC,KAAK,SAA8B,GAC9D,CAAC,OAAO,EAAE,CAAC,GAAG,8BAA8B,KAAK,SAAS,CAE5D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseTransportOptions } from '@sentry/
|
|
1
|
+
import type { BaseTransportOptions } from '@sentry/core';
|
|
2
2
|
export interface BrowserTransportOptions extends BaseTransportOptions {
|
|
3
3
|
/** Fetch API init parameters. Used by the FetchTransport */
|
|
4
4
|
fetchOptions?: RequestInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/transports/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/transports/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,uBAAwB,SAAQ,oBAAoB;IACnE,4DAA4D;IAC5D,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,oFAAoF;IACpF,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userfeedback.d.ts","sourceRoot":"","sources":["../../../src/userfeedback.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAoB,MAAM,
|
|
1
|
+
{"version":3,"file":"userfeedback.d.ts","sourceRoot":"","sources":["../../../src/userfeedback.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAoB,MAAM,cAAc,CAAC;AAE9G;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,YAAY,EACtB,EACE,QAAQ,EACR,MAAM,EACN,GAAG,GACJ,EAAE;IACD,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAC;IAClC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,GAAG,EAAE,aAAa,GAAG,SAAS,CAAC;CAChC,GACA,aAAa,CAgBf"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Event, FeatureFlag } from '@sentry/core';
|
|
2
|
+
/**
|
|
3
|
+
* Ordered LRU cache for storing feature flags in the scope context. The name
|
|
4
|
+
* of each flag in the buffer is unique, and the output of getAll() is ordered
|
|
5
|
+
* from oldest to newest.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Max size of the LRU flag buffer stored in Sentry scope and event contexts.
|
|
9
|
+
*/
|
|
10
|
+
export declare const FLAG_BUFFER_SIZE = 100;
|
|
11
|
+
/**
|
|
12
|
+
* Copies feature flags that are in current scope context to the event context
|
|
13
|
+
*/
|
|
14
|
+
export declare function copyFlagsFromScopeToEvent(event: Event): Event;
|
|
15
|
+
/**
|
|
16
|
+
* Creates a feature flags values array in current context if it does not exist
|
|
17
|
+
* and inserts the flag into a FeatureFlag array while maintaining ordered LRU
|
|
18
|
+
* properties. Not thread-safe. After inserting:
|
|
19
|
+
* - `flags` is sorted in order of recency, with the newest flag at the end.
|
|
20
|
+
* - No other flags with the same name exist in `flags`.
|
|
21
|
+
* - The length of `flags` does not exceed `maxSize`. The oldest flag is evicted
|
|
22
|
+
* as needed.
|
|
23
|
+
*
|
|
24
|
+
* @param name Name of the feature flag to insert.
|
|
25
|
+
* @param value Value of the feature flag.
|
|
26
|
+
* @param maxSize Max number of flags the buffer should store. It's recommended
|
|
27
|
+
* to keep this consistent across insertions. Default is FLAG_BUFFER_SIZE
|
|
28
|
+
*/
|
|
29
|
+
export declare function insertFlagToScope(name: string, value: unknown, maxSize?: number): void;
|
|
30
|
+
/**
|
|
31
|
+
* Exported for tests. Currently only accepts boolean values (otherwise no-op).
|
|
32
|
+
*/
|
|
33
|
+
export declare function insertToFlagBuffer(flags: FeatureFlag[], name: string, value: unknown, maxSize: number): void;
|
|
34
|
+
//# sourceMappingURL=featureFlags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featureFlags.d.ts","sourceRoot":"","sources":["../../../../src/utils/featureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAKvD;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAc7D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAE,MAAyB,GAAG,IAAI,CAOxG;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CA4B5G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazyLoadIntegration.d.ts","sourceRoot":"","sources":["../../../../src/utils/lazyLoadIntegration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"lazyLoadIntegration.d.ts","sourceRoot":"","sources":["../../../../src/utils/lazyLoadIntegration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAKlD,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;CAkBpB,CAAC;AAMX;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,OAAO,wBAAwB,EAC3C,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,aAAa,CAAC,CAwDxB"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Scope } from '@sentry/core';
|
|
1
|
+
import { BrowserClientProfilingOptions, BrowserClientReplayOptions, ClientOptions, Event, EventHint, Options, ParameterizedString, Scope, SeverityLevel, UserFeedback } from '@sentry/core';
|
|
2
2
|
import { BaseClient } from '@sentry/core';
|
|
3
|
-
import { BrowserClientProfilingOptions, BrowserClientReplayOptions, ClientOptions, Event, EventHint, Options, ParameterizedString, SeverityLevel, UserFeedback } from '@sentry/types';
|
|
4
3
|
import { BrowserTransportOptions } from './transports/types';
|
|
5
4
|
/**
|
|
6
5
|
* Configuration options for the Sentry Browser SDK.
|
|
7
|
-
* @see @sentry/
|
|
6
|
+
* @see @sentry/core Options for more information.
|
|
8
7
|
*/
|
|
9
8
|
export type BrowserOptions = Options<BrowserTransportOptions> & BrowserClientReplayOptions & BrowserClientProfilingOptions & {
|
|
10
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Event, EventHint, Exception, ParameterizedString, SeverityLevel, StackParser } from '@sentry/
|
|
1
|
+
import { Event, EventHint, Exception, ParameterizedString, SeverityLevel, StackParser } from '@sentry/core';
|
|
2
2
|
/**
|
|
3
3
|
* This function creates an exception from a JavaScript Error
|
|
4
4
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Breadcrumb, BreadcrumbHint, Request, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, SeverityLevel, StackFrame, Stacktrace, Thread, User, Session, } from '@sentry/
|
|
1
|
+
export { Breadcrumb, BreadcrumbHint, Request, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, SeverityLevel, StackFrame, Stacktrace, Thread, User, Session, } from '@sentry/core';
|
|
2
2
|
export { BrowserOptions } from './client';
|
|
3
3
|
export { ReportDialogOptions } from './sdk';
|
|
4
4
|
export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, createTransport, lastEventId, flush, getCurrentHub, getClient, isInitialized, getCurrentScope, getIsolationScope, getGlobalScope, setCurrentClient, Scope, continueTrace, suppressTracing, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, withScope, withIsolationScope, functionToStringIntegration, inboundFiltersIntegration, dedupeIntegration, parameterize, startSession, captureSession, endSession, spanToJSON, spanToTraceHeader, spanToBaggageHeader, } from '@sentry/core';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* An integration to add user feedback to your application,
|
|
3
3
|
* while loading most of the code lazily only when it's needed.
|
|
4
4
|
*/
|
|
5
|
-
export declare const feedbackAsyncIntegration: import("@sentry/
|
|
5
|
+
export declare const feedbackAsyncIntegration: import("@sentry/core").IntegrationFn<import("@sentry/core").Integration & {
|
|
6
6
|
attachTo(el: string | Element, optionOverrides?: import("@sentry-internal/feedback/build/npm/types/core/types").OverrideFeedbackConfiguration | undefined): () => void;
|
|
7
7
|
createForm(optionOverrides?: import("@sentry-internal/feedback/build/npm/types/core/types").OverrideFeedbackConfiguration | undefined): Promise<{
|
|
8
8
|
el: unknown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Add a widget to capture user feedback to your application. */
|
|
2
|
-
export declare const feedbackSyncIntegration: import("@sentry/
|
|
2
|
+
export declare const feedbackSyncIntegration: import("@sentry/core").IntegrationFn<import("@sentry/core").Integration & {
|
|
3
3
|
attachTo(el: string | Element, optionOverrides?: import("@sentry-internal/feedback/build/npm/types/core/types").OverrideFeedbackConfiguration | undefined): () => void;
|
|
4
4
|
createForm(optionOverrides?: import("@sentry-internal/feedback/build/npm/types/core/types").OverrideFeedbackConfiguration | undefined): Promise<{
|
|
5
5
|
el: unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mechanism, WrappedFunction } from '@sentry/
|
|
1
|
+
import { Mechanism, WrappedFunction } from '@sentry/core';
|
|
2
2
|
export declare const WINDOW: import("@sentry/core").InternalGlobal & Window;
|
|
3
3
|
/**
|
|
4
4
|
* @hidden
|
|
@@ -8,16 +8,12 @@ export declare function shouldIgnoreOnError(): boolean;
|
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
export declare function ignoreNextOnError(): void;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* has a correct `this` context.
|
|
17
|
-
* @returns The wrapped function.
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export declare function wrap(fn: WrappedFunction, options?: {
|
|
11
|
+
type WrappableFunction = Function;
|
|
12
|
+
export declare function wrap<T extends WrappableFunction>(fn: T, options?: {
|
|
13
|
+
mechanism?: Mechanism;
|
|
14
|
+
}): WrappedFunction<T>;
|
|
15
|
+
export declare function wrap<NonFunction>(fn: NonFunction, options?: {
|
|
21
16
|
mechanism?: Mechanism;
|
|
22
|
-
}
|
|
17
|
+
}): NonFunction;
|
|
18
|
+
export {};
|
|
23
19
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -3,20 +3,24 @@ export { reportingObserverIntegration } from './integrations/reportingobserver';
|
|
|
3
3
|
export { httpClientIntegration } from './integrations/httpclient';
|
|
4
4
|
export { contextLinesIntegration } from './integrations/contextlines';
|
|
5
5
|
export { captureConsoleIntegration, debugIntegration, extraErrorDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, captureFeedback, } from '@sentry/core';
|
|
6
|
-
export { replayIntegration, getReplay
|
|
6
|
+
export { replayIntegration, getReplay } from '@sentry-internal/replay';
|
|
7
7
|
export { ReplayEventType, ReplayEventWithTime, ReplayBreadcrumbFrame, ReplayBreadcrumbFrameEvent, ReplayOptionFrameEvent, ReplayFrame, ReplayFrameEvent, ReplaySpanFrame, ReplaySpanFrameEvent, } from '@sentry-internal/replay';
|
|
8
8
|
export { replayCanvasIntegration } from '@sentry-internal/replay-canvas';
|
|
9
9
|
import { feedbackAsyncIntegration } from './feedbackAsync';
|
|
10
10
|
import { feedbackSyncIntegration } from './feedbackSync';
|
|
11
11
|
export { feedbackAsyncIntegration, feedbackSyncIntegration, feedbackSyncIntegration as feedbackIntegration };
|
|
12
|
-
export { getFeedback, sendFeedback
|
|
12
|
+
export { getFeedback, sendFeedback } from '@sentry-internal/feedback';
|
|
13
13
|
export * from './metrics';
|
|
14
|
-
export { defaultRequestInstrumentationOptions, instrumentOutgoingRequests
|
|
14
|
+
export { defaultRequestInstrumentationOptions, instrumentOutgoingRequests } from './tracing/request';
|
|
15
15
|
export { browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, } from './tracing/browserTracingIntegration';
|
|
16
16
|
export { RequestInstrumentationOptions } from './tracing/request';
|
|
17
17
|
export { addTracingExtensions, registerSpanErrorInstrumentation, getActiveSpan, getRootSpan, startSpan, startInactiveSpan, startSpanManual, withActiveSpan, startNewTrace, getSpanDescendants, setMeasurement, getSpanStatusFromHttpCode, setHttpStatus, makeMultiplexedTransport, moduleMetadataIntegration, zodErrorsIntegration, thirdPartyErrorFilterIntegration, } from '@sentry/core';
|
|
18
|
-
export { Span } from '@sentry/
|
|
18
|
+
export { Span } from '@sentry/core';
|
|
19
19
|
export { makeBrowserOfflineTransport } from './transports/offline';
|
|
20
20
|
export { browserProfilingIntegration } from './profiling/integration';
|
|
21
21
|
export { spotlightBrowserIntegration } from './integrations/spotlight';
|
|
22
|
+
export { browserSessionIntegration } from './integrations/browsersession';
|
|
23
|
+
export { featureFlagsIntegration, FeatureFlagsIntegration } from './integrations/featureFlags';
|
|
24
|
+
export { launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler } from './integrations/featureFlags/launchdarkly';
|
|
25
|
+
export { openFeatureIntegration, OpenFeatureIntegrationHook } from './integrations/featureFlags/openfeature';
|
|
22
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -9,6 +9,6 @@ interface BreadcrumbsOptions {
|
|
|
9
9
|
sentry: boolean;
|
|
10
10
|
xhr: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const breadcrumbsIntegration: (options?: Partial<BreadcrumbsOptions> | undefined) => import("@sentry/
|
|
12
|
+
export declare const breadcrumbsIntegration: (options?: Partial<BreadcrumbsOptions> | undefined) => import("@sentry/core").Integration;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=breadcrumbs.d.ts.map
|
|
@@ -8,6 +8,6 @@ interface BrowserApiErrorsOptions {
|
|
|
8
8
|
/**
|
|
9
9
|
* Wrap timer functions and event targets to catch errors and provide better meta data.
|
|
10
10
|
*/
|
|
11
|
-
export declare const browserApiErrorsIntegration: (options?: Partial<BrowserApiErrorsOptions> | undefined) => import("@sentry/
|
|
11
|
+
export declare const browserApiErrorsIntegration: (options?: Partial<BrowserApiErrorsOptions> | undefined) => import("@sentry/core").Integration;
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=browserapierrors.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When added, automatically creates sessions which allow you to track adoption and crashes (crash free rate) in your Releases in Sentry.
|
|
3
|
+
* More information: https://docs.sentry.io/product/releases/health/
|
|
4
|
+
*
|
|
5
|
+
* Note: In order for session tracking to work, you need to set up Releases: https://docs.sentry.io/product/releases/
|
|
6
|
+
*/
|
|
7
|
+
export declare const browserSessionIntegration: () => import("@sentry/core").Integration;
|
|
8
|
+
//# sourceMappingURL=browsersession.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StackFrame } from '@sentry/
|
|
1
|
+
import { StackFrame } from '@sentry/core';
|
|
2
2
|
interface ContextLinesOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Sets the number of context lines for each frame when loading a file.
|
|
@@ -19,7 +19,7 @@ interface ContextLinesOptions {
|
|
|
19
19
|
* Use this integration if you have inline JS code in HTML pages that can't be accessed
|
|
20
20
|
* by our backend (e.g. due to a login-protected page).
|
|
21
21
|
*/
|
|
22
|
-
export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/
|
|
22
|
+
export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/core").Integration;
|
|
23
23
|
/**
|
|
24
24
|
* Only exported for testing
|
|
25
25
|
*/
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Integration, IntegrationFn } from '@sentry/core';
|
|
2
|
+
export interface FeatureFlagsIntegration extends Integration {
|
|
3
|
+
addFeatureFlag: (name: string, value: unknown) => void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Sentry integration for buffering feature flags manually with an API, and
|
|
7
|
+
* capturing them on error events. We recommend you do this on each flag
|
|
8
|
+
* evaluation. Flags are buffered per Sentry scope and limited to 100 per event.
|
|
9
|
+
*
|
|
10
|
+
* See the [feature flag documentation](https://develop.sentry.dev/sdk/expected-features/#feature-flags) for more information.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```
|
|
14
|
+
* import * as Sentry from '@sentry/browser';
|
|
15
|
+
* import { type FeatureFlagsIntegration } from '@sentry/browser';
|
|
16
|
+
*
|
|
17
|
+
* // Setup
|
|
18
|
+
* Sentry.init(..., integrations: [Sentry.featureFlagsIntegration()])
|
|
19
|
+
*
|
|
20
|
+
* // Verify
|
|
21
|
+
* const flagsIntegration = Sentry.getClient()?.getIntegrationByName<FeatureFlagsIntegration>('FeatureFlags');
|
|
22
|
+
* if (flagsIntegration) {
|
|
23
|
+
* flagsIntegration.addFeatureFlag('my-flag', true);
|
|
24
|
+
* } else {
|
|
25
|
+
* // check your setup
|
|
26
|
+
* }
|
|
27
|
+
* Sentry.captureException(Exception('broke')); // 'my-flag' should be captured to this Sentry event.
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare const featureFlagsIntegration: IntegrationFn<FeatureFlagsIntegration>;
|
|
31
|
+
//# sourceMappingURL=featureFlagsIntegration.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LDInspectionFlagUsedHandler } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Sentry integration for capturing feature flags from LaunchDarkly.
|
|
4
|
+
*
|
|
5
|
+
* See the [feature flag documentation](https://develop.sentry.dev/sdk/expected-features/#feature-flags) for more information.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```
|
|
9
|
+
* import * as Sentry from '@sentry/browser';
|
|
10
|
+
* import {launchDarklyIntegration, buildLaunchDarklyFlagUsedInspector} from '@sentry/browser';
|
|
11
|
+
* import * as LaunchDarkly from 'launchdarkly-js-client-sdk';
|
|
12
|
+
*
|
|
13
|
+
* Sentry.init(..., integrations: [launchDarklyIntegration()])
|
|
14
|
+
* const ldClient = LaunchDarkly.initialize(..., {inspectors: [buildLaunchDarklyFlagUsedHandler()]});
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const launchDarklyIntegration: () => import("@sentry/core").Integration;
|
|
18
|
+
/**
|
|
19
|
+
* LaunchDarkly hook that listens for flag evaluations and updates the `flags`
|
|
20
|
+
* context in our Sentry scope. This needs to be registered as an
|
|
21
|
+
* 'inspector' in LaunchDarkly initialize() options, separately from
|
|
22
|
+
* `launchDarklyIntegration`. Both are needed to collect feature flags on error.
|
|
23
|
+
*/
|
|
24
|
+
export declare function buildLaunchDarklyFlagUsedHandler(): LDInspectionFlagUsedHandler;
|
|
25
|
+
//# sourceMappingURL=integration.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inline definitions of LaunchDarkly types so we don't have to include their
|
|
3
|
+
* SDK in devDependencies. These are only for type-checking and can be extended
|
|
4
|
+
* as needed - for exact definitions, reference `launchdarkly-js-client-sdk`.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Currently, the Sentry integration does not read from values of this type.
|
|
8
|
+
*/
|
|
9
|
+
export type LDContext = object;
|
|
10
|
+
/**
|
|
11
|
+
* An object that combines the result of a feature flag evaluation with information about
|
|
12
|
+
* how it was calculated.
|
|
13
|
+
*/
|
|
14
|
+
export interface LDEvaluationDetail {
|
|
15
|
+
value: unknown;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Callback interface for collecting information about the SDK at runtime.
|
|
19
|
+
*
|
|
20
|
+
* This interface is used to collect information about flag usage.
|
|
21
|
+
*
|
|
22
|
+
* This interface should not be used by the application to access flags for the purpose of controlling application
|
|
23
|
+
* flow. It is intended for monitoring, analytics, or debugging purposes.
|
|
24
|
+
*/
|
|
25
|
+
export interface LDInspectionFlagUsedHandler {
|
|
26
|
+
type: 'flag-used';
|
|
27
|
+
/**
|
|
28
|
+
* Name of the inspector. Will be used for logging issues with the inspector.
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* If `true`, then the inspector will be ran synchronously with evaluation.
|
|
33
|
+
* Synchronous inspectors execute inline with evaluation and care should be taken to ensure
|
|
34
|
+
* they have minimal performance overhead.
|
|
35
|
+
*/
|
|
36
|
+
synchronous?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* This method is called when a flag is accessed via a variation method, or it can be called based on actions in
|
|
39
|
+
* wrapper SDKs which have different methods of tracking when a flag was accessed. It is not called when a call is made
|
|
40
|
+
* to allFlags.
|
|
41
|
+
*/
|
|
42
|
+
method: (flagKey: string, flagDetail: LDEvaluationDetail, context: LDContext) => void;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EvaluationDetails, HookContext, HookHints, JsonValue, OpenFeatureHook } from './types';
|
|
2
|
+
export declare const openFeatureIntegration: () => import("@sentry/core").Integration;
|
|
3
|
+
/**
|
|
4
|
+
* OpenFeature Hook class implementation.
|
|
5
|
+
*/
|
|
6
|
+
export declare class OpenFeatureIntegrationHook implements OpenFeatureHook {
|
|
7
|
+
/**
|
|
8
|
+
* Successful evaluation result.
|
|
9
|
+
*/
|
|
10
|
+
after(_hookContext: Readonly<HookContext<JsonValue>>, evaluationDetails: EvaluationDetails<JsonValue>): void;
|
|
11
|
+
/**
|
|
12
|
+
* On error evaluation result.
|
|
13
|
+
*/
|
|
14
|
+
error(hookContext: Readonly<HookContext<JsonValue>>, _error: unknown, _hookHints?: HookHints): void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=integration.d.ts.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export type FlagValue = boolean | string | number | JsonValue;
|
|
2
|
+
export type FlagValueType = 'boolean' | 'string' | 'number' | 'object';
|
|
3
|
+
export type JsonArray = JsonValue[];
|
|
4
|
+
export type JsonObject = {
|
|
5
|
+
[key: string]: JsonValue;
|
|
6
|
+
};
|
|
7
|
+
export type JsonValue = PrimitiveValue | JsonObject | JsonArray;
|
|
8
|
+
export type Metadata = Record<string, string>;
|
|
9
|
+
export type PrimitiveValue = null | boolean | string | number;
|
|
10
|
+
export type FlagMetadata = Record<string, string | number | boolean>;
|
|
11
|
+
export declare const StandardResolutionReasons: {
|
|
12
|
+
readonly STATIC: "STATIC";
|
|
13
|
+
readonly DEFAULT: "DEFAULT";
|
|
14
|
+
readonly TARGETING_MATCH: "TARGETING_MATCH";
|
|
15
|
+
readonly SPLIT: "SPLIT";
|
|
16
|
+
readonly CACHED: "CACHED";
|
|
17
|
+
readonly DISABLED: "DISABLED";
|
|
18
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
19
|
+
readonly STALE: "STALE";
|
|
20
|
+
readonly ERROR: "ERROR";
|
|
21
|
+
};
|
|
22
|
+
export declare enum ErrorCode {
|
|
23
|
+
PROVIDER_NOT_READY = "PROVIDER_NOT_READY",
|
|
24
|
+
PROVIDER_FATAL = "PROVIDER_FATAL",
|
|
25
|
+
FLAG_NOT_FOUND = "FLAG_NOT_FOUND",
|
|
26
|
+
PARSE_ERROR = "PARSE_ERROR",
|
|
27
|
+
TYPE_MISMATCH = "TYPE_MISMATCH",
|
|
28
|
+
TARGETING_KEY_MISSING = "TARGETING_KEY_MISSING",
|
|
29
|
+
INVALID_CONTEXT = "INVALID_CONTEXT",
|
|
30
|
+
GENERAL = "GENERAL"
|
|
31
|
+
}
|
|
32
|
+
export interface Logger {
|
|
33
|
+
error(...args: unknown[]): void;
|
|
34
|
+
warn(...args: unknown[]): void;
|
|
35
|
+
info(...args: unknown[]): void;
|
|
36
|
+
debug(...args: unknown[]): void;
|
|
37
|
+
}
|
|
38
|
+
export type ResolutionReason = keyof typeof StandardResolutionReasons | (string & Record<never, never>);
|
|
39
|
+
export type EvaluationContextValue = PrimitiveValue | Date | {
|
|
40
|
+
[key: string]: EvaluationContextValue;
|
|
41
|
+
} | EvaluationContextValue[];
|
|
42
|
+
export type EvaluationContext = {
|
|
43
|
+
targetingKey?: string;
|
|
44
|
+
} & Record<string, EvaluationContextValue>;
|
|
45
|
+
export interface ProviderMetadata extends Readonly<Metadata> {
|
|
46
|
+
readonly name: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ClientMetadata {
|
|
49
|
+
readonly name?: string;
|
|
50
|
+
readonly domain?: string;
|
|
51
|
+
readonly version?: string;
|
|
52
|
+
readonly providerMetadata: ProviderMetadata;
|
|
53
|
+
}
|
|
54
|
+
export type HookHints = Readonly<Record<string, unknown>>;
|
|
55
|
+
export interface HookContext<T extends FlagValue = FlagValue> {
|
|
56
|
+
readonly flagKey: string;
|
|
57
|
+
readonly defaultValue: T;
|
|
58
|
+
readonly flagValueType: FlagValueType;
|
|
59
|
+
readonly context: Readonly<EvaluationContext>;
|
|
60
|
+
readonly clientMetadata: ClientMetadata;
|
|
61
|
+
readonly providerMetadata: ProviderMetadata;
|
|
62
|
+
readonly logger: Logger;
|
|
63
|
+
}
|
|
64
|
+
export interface BeforeHookContext extends HookContext {
|
|
65
|
+
context: EvaluationContext;
|
|
66
|
+
}
|
|
67
|
+
export type ResolutionDetails<U> = {
|
|
68
|
+
value: U;
|
|
69
|
+
variant?: string;
|
|
70
|
+
flagMetadata?: FlagMetadata;
|
|
71
|
+
reason?: ResolutionReason;
|
|
72
|
+
errorCode?: ErrorCode;
|
|
73
|
+
errorMessage?: string;
|
|
74
|
+
};
|
|
75
|
+
export type EvaluationDetails<T extends FlagValue> = {
|
|
76
|
+
flagKey: string;
|
|
77
|
+
flagMetadata: Readonly<FlagMetadata>;
|
|
78
|
+
} & ResolutionDetails<T>;
|
|
79
|
+
export interface BaseHook<T extends FlagValue = FlagValue, BeforeHookReturn = unknown, HooksReturn = unknown> {
|
|
80
|
+
before?(hookContext: BeforeHookContext, hookHints?: HookHints): BeforeHookReturn;
|
|
81
|
+
after?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: HookHints): HooksReturn;
|
|
82
|
+
error?(hookContext: Readonly<HookContext<T>>, error: unknown, hookHints?: HookHints): HooksReturn;
|
|
83
|
+
finally?(hookContext: Readonly<HookContext<T>>, hookHints?: HookHints): HooksReturn;
|
|
84
|
+
}
|
|
85
|
+
export type OpenFeatureHook = BaseHook<FlagValue, void, void>;
|
|
86
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type GlobalHandlersIntegrationsOptionKeys = 'onerror' | 'onunhandledrejection';
|
|
2
2
|
type GlobalHandlersIntegrations = Record<GlobalHandlersIntegrationsOptionKeys, boolean>;
|
|
3
|
-
export declare const globalHandlersIntegration: (options?: Partial<GlobalHandlersIntegrations> | undefined) => import("@sentry/
|
|
3
|
+
export declare const globalHandlersIntegration: (options?: Partial<GlobalHandlersIntegrations> | undefined) => import("@sentry/core").Integration;
|
|
4
4
|
export {};
|
|
5
5
|
//# sourceMappingURL=globalhandlers.d.ts.map
|
|
@@ -25,6 +25,6 @@ interface HttpClientOptions {
|
|
|
25
25
|
/**
|
|
26
26
|
* Create events for failed client side HTTP requests.
|
|
27
27
|
*/
|
|
28
|
-
export declare const httpClientIntegration: (options?: Partial<HttpClientOptions> | undefined) => import("@sentry/
|
|
28
|
+
export declare const httpClientIntegration: (options?: Partial<HttpClientOptions> | undefined) => import("@sentry/core").Integration;
|
|
29
29
|
export {};
|
|
30
30
|
//# sourceMappingURL=httpclient.d.ts.map
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Collects information about HTTP request headers and
|
|
3
3
|
* attaches them to the event.
|
|
4
4
|
*/
|
|
5
|
-
export declare const httpContextIntegration: () => import("@sentry/
|
|
5
|
+
export declare const httpContextIntegration: () => import("@sentry/core").Integration;
|
|
6
6
|
//# sourceMappingURL=httpcontext.d.ts.map
|
|
@@ -5,6 +5,6 @@ interface LinkedErrorsOptions {
|
|
|
5
5
|
/**
|
|
6
6
|
* Aggregrate linked errors in an event.
|
|
7
7
|
*/
|
|
8
|
-
export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("@sentry/
|
|
8
|
+
export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("@sentry/core").Integration;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=linkederrors.d.ts.map
|
|
@@ -5,6 +5,6 @@ interface ReportingObserverOptions {
|
|
|
5
5
|
/**
|
|
6
6
|
* Reporting API integration - https://w3c.github.io/reporting/
|
|
7
7
|
*/
|
|
8
|
-
export declare const reportingObserverIntegration: (options?: ReportingObserverOptions | undefined) => import("@sentry/
|
|
8
|
+
export declare const reportingObserverIntegration: (options?: ReportingObserverOptions | undefined) => import("@sentry/core").Integration;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=reportingobserver.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Event } from '@sentry/
|
|
1
|
+
import { Event } from '@sentry/core';
|
|
2
2
|
export type SpotlightConnectionOptions = {
|
|
3
3
|
/**
|
|
4
4
|
* Set this if the Spotlight Sidecar is not running on localhost:8969
|
|
@@ -12,7 +12,7 @@ export declare const INTEGRATION_NAME = "SpotlightBrowser";
|
|
|
12
12
|
*
|
|
13
13
|
* Learn more about spotlight at https://spotlightjs.com
|
|
14
14
|
*/
|
|
15
|
-
export declare const spotlightBrowserIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/
|
|
15
|
+
export declare const spotlightBrowserIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/core").Integration;
|
|
16
16
|
/**
|
|
17
17
|
* Flags if the event is a transaction created from an interaction with the spotlight UI.
|
|
18
18
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const browserProfilingIntegration: () => import("@sentry/
|
|
1
|
+
export declare const browserProfilingIntegration: () => import("@sentry/core").Integration;
|
|
2
2
|
//# sourceMappingURL=integration.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DebugImage, Envelope, Event, EventEnvelope, Profile, Span, ThreadCpuProfile } from '@sentry/
|
|
1
|
+
import { DebugImage, Envelope, Event, EventEnvelope, Profile, Span, ThreadCpuProfile } from '@sentry/core';
|
|
2
2
|
import { JSSelfProfile, JSSelfProfiler } from './jsSelfProfiling';
|
|
3
3
|
/**
|
|
4
4
|
*
|