index.js 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { Integrations } from '@sentry/core';
  2. export { FunctionToString, Hub, InboundFilters, ModuleMetadata, SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, Scope, addBreadcrumb, addEventProcessor, addGlobalEventProcessor, addIntegration, addTracingExtensions, captureEvent, captureException, captureMessage, captureSession, close, configureScope, continueTrace, createTransport, endSession, extractTraceparentData, flush, functionToStringIntegration, getActiveSpan, getActiveTransaction, getClient, getCurrentHub, getCurrentScope, getHubFromCarrier, getSpanStatusFromHttpCode, inboundFiltersIntegration, isInitialized, lastEventId, makeMain, makeMultiplexedTransport, metrics, moduleMetadataIntegration, parameterize, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, spanStatusfromHttpCode, startInactiveSpan, startSession, startSpan, startSpanManual, startTransaction, trace, withIsolationScope, withScope } from '@sentry/core';
  3. import { WINDOW } from './helpers.js';
  4. export { WINDOW } from './helpers.js';
  5. export { BrowserClient } from './client.js';
  6. export { makeFetchTransport } from './transports/fetch.js';
  7. export { makeXHRTransport } from './transports/xhr.js';
  8. export { chromeStackLineParser, defaultStackLineParsers, defaultStackParser, geckoStackLineParser, opera10StackLineParser, opera11StackLineParser, winjsStackLineParser } from './stack-parsers.js';
  9. export { eventFromException, eventFromMessage, exceptionFromError } from './eventbuilder.js';
  10. export { createUserFeedbackEnvelope } from './userfeedback.js';
  11. export { captureUserFeedback, defaultIntegrations, forceLoad, getDefaultIntegrations, init, onLoad, showReportDialog, wrap } from './sdk.js';
  12. export { Breadcrumbs, breadcrumbsIntegration } from './integrations/breadcrumbs.js';
  13. export { Dedupe, dedupeIntegration } from './integrations/dedupe.js';
  14. export { GlobalHandlers, globalHandlersIntegration } from './integrations/globalhandlers.js';
  15. export { HttpContext, httpContextIntegration } from './integrations/httpcontext.js';
  16. export { LinkedErrors, linkedErrorsIntegration } from './integrations/linkederrors.js';
  17. export { TryCatch, browserApiErrorsIntegration } from './integrations/trycatch.js';
  18. import * as index from './integrations/index.js';
  19. export { Replay, getReplay, replayIntegration } from '@sentry/replay';
  20. export { ReplayCanvas, replayCanvasIntegration } from '@sentry-internal/replay-canvas';
  21. export { Feedback, feedbackIntegration, sendFeedback } from '@sentry-internal/feedback';
  22. export { BrowserTracing, browserTracingIntegration, defaultRequestInstrumentationOptions, instrumentOutgoingRequests, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan } from '@sentry-internal/tracing';
  23. export { makeBrowserOfflineTransport } from './transports/offline.js';
  24. export { onProfilingStartRouteTransaction } from './profiling/hubextensions.js';
  25. export { BrowserProfilingIntegration, browserProfilingIntegration } from './profiling/integration.js';
  26. let windowIntegrations = {};
  27. // This block is needed to add compatibility with the integrations packages when used with a CDN
  28. if (WINDOW.Sentry && WINDOW.Sentry.Integrations) {
  29. windowIntegrations = WINDOW.Sentry.Integrations;
  30. }
  31. /** @deprecated Import the integration function directly, e.g. `inboundFiltersIntegration()` instead of `new Integrations.InboundFilter(). */
  32. const INTEGRATIONS = {
  33. ...windowIntegrations,
  34. // eslint-disable-next-line deprecation/deprecation
  35. ...Integrations,
  36. ...index,
  37. };
  38. export { INTEGRATIONS as Integrations };
  39. //# sourceMappingURL=index.js.map