-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathindex.ts
More file actions
35 lines (29 loc) · 1.44 KB
/
index.ts
File metadata and controls
35 lines (29 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// import/export got a false positive, and affects most of our index barrel files
// can be removed once following issue is fixed: https://github.com/import-js/eslint-plugin-import/issues/703
/* eslint-disable import/export */
export * from '@sentry/browser';
export { init } from './sdk';
export {
reactRouterTracingIntegration,
type ReactRouterTracingIntegration,
type ReactRouterTracingIntegrationOptions,
} from './tracingIntegration';
export { captureReactException, reactErrorHandler, Profiler, withProfiler, useProfiler } from '@sentry/react';
/**
* @deprecated ErrorBoundary is deprecated, use React Router's error boundary instead.
* See https://docs.sentry.io/platforms/javascript/guides/react-router/#report-errors-from-error-boundaries
*/
export { ErrorBoundary, withErrorBoundary } from '@sentry/react';
/**
* @deprecated ErrorBoundaryProps and FallbackRender are deprecated, use React Router's error boundary instead.
* See https://docs.sentry.io/platforms/javascript/guides/react-router/#report-errors-from-error-boundaries
*/
export type { ErrorBoundaryProps, FallbackRender } from '@sentry/react';
// React Router instrumentation API for use with unstable_instrumentations (React Router 7.x)
export {
createSentryClientInstrumentation,
isClientInstrumentationApiUsed,
isNavigateHookInvoked,
type CreateSentryClientInstrumentationOptions,
} from './createClientInstrumentation';
export { sentryOnError } from './sentryOnError';