|
1 | 1 | /* eslint-disable max-lines */ // TODO: We might want to split this file up |
2 | | -import { WINDOW } from '@sentry/browser'; |
3 | 2 | import { addGlobalEventProcessor, getCurrentHub, Scope, setContext } from '@sentry/core'; |
4 | 3 | import { Breadcrumb, Client, Event, Integration } from '@sentry/types'; |
5 | 4 | import { addInstrumentationHandler, createEnvelope, logger } from '@sentry/utils'; |
6 | 5 | import debounce from 'lodash.debounce'; |
7 | 6 | import { PerformanceObserverEntryList } from 'perf_hooks'; |
8 | 7 | import { EventType, record } from 'rrweb'; |
9 | 8 |
|
10 | | -import { breadcrumbHandler } from './coreHandlers/breadcrumbHandler'; |
11 | | -import { spanHandler } from './coreHandlers/spanHandler'; |
12 | | -import { createMemoryEntry, createPerformanceEntries, ReplayPerformanceEntry } from './createPerformanceEntry'; |
13 | | -import { createEventBuffer, IEventBuffer } from './eventBuffer'; |
14 | 9 | import { |
15 | 10 | DEFAULT_ERROR_SAMPLE_RATE, |
16 | 11 | DEFAULT_SESSION_SAMPLE_RATE, |
17 | 12 | MAX_SESSION_LIFE, |
18 | 13 | REPLAY_EVENT_NAME, |
19 | 14 | SESSION_IDLE_DURATION, |
20 | 15 | VISIBILITY_CHANGE_TIMEOUT, |
21 | | -} from './session/constants'; |
| 16 | + WINDOW, |
| 17 | +} from './constants'; |
| 18 | +import { breadcrumbHandler } from './coreHandlers/breadcrumbHandler'; |
| 19 | +import { spanHandler } from './coreHandlers/spanHandler'; |
| 20 | +import { createMemoryEntry, createPerformanceEntries, ReplayPerformanceEntry } from './createPerformanceEntry'; |
| 21 | +import { createEventBuffer, IEventBuffer } from './eventBuffer'; |
22 | 22 | import { deleteSession } from './session/deleteSession'; |
23 | 23 | import { getSession } from './session/getSession'; |
24 | 24 | import { saveSession } from './session/saveSession'; |
25 | 25 | import { Session } from './session/Session'; |
26 | | -import type { |
| 26 | +import { |
27 | 27 | AllPerformanceEntry, |
28 | 28 | InstrumentationTypeBreadcrumb, |
29 | 29 | InstrumentationTypeSpan, |
|
0 commit comments