-
Notifications
You must be signed in to change notification settings - Fork 171
Expand file tree
/
Copy pathindex.ts
More file actions
179 lines (179 loc) · 7.53 KB
/
index.ts
File metadata and controls
179 lines (179 loc) · 7.53 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
export type { Configuration, InitConfiguration, EndpointBuilder, ProxyFn, TrackType } from './domain/configuration'
export {
validateAndBuildConfiguration,
DefaultPrivacyLevel,
TraceContextInjection,
serializeConfiguration,
isSampleRate,
buildEndpointHost,
isIntakeUrl,
createEndpointBuilder,
} from './domain/configuration'
export * from './domain/intakeSites'
export type { TrackingConsentState } from './domain/trackingConsent'
export { TrackingConsent, createTrackingConsentState } from './domain/trackingConsent'
export {
isExperimentalFeatureEnabled,
addExperimentalFeatures,
resetExperimentalFeatures,
getExperimentalFeatures,
initFeatureFlags,
ExperimentalFeature,
} from './tools/experimentalFeatures'
export { trackRuntimeError } from './domain/error/trackRuntimeError'
export type { StackTrace } from './tools/stackTrace/computeStackTrace'
export { computeStackTrace } from './tools/stackTrace/computeStackTrace'
export type { PublicApi } from './boot/init'
export { defineGlobal, makePublicApi } from './boot/init'
export { displayAlreadyInitializedError } from './boot/displayAlreadyInitializedError'
export { initReportObservable, RawReportType } from './domain/report/reportObservable'
export type {
Telemetry,
RawTelemetryEvent,
RawTelemetryConfiguration,
TelemetryEvent,
TelemetryErrorEvent,
TelemetryDebugEvent,
TelemetryConfigurationEvent,
TelemetryUsageEvent,
RawTelemetryUsage,
RawTelemetryUsageFeature,
} from './domain/telemetry'
export {
startTelemetry,
startTelemetryCollection,
addTelemetryDebug,
addTelemetryError,
resetTelemetry,
TelemetryService,
TelemetryMetrics,
addTelemetryConfiguration,
addTelemetryUsage,
addTelemetryMetrics,
} from './domain/telemetry'
export { monitored, monitor, callMonitored, setDebugMode, monitorError } from './tools/monitor'
export type { Subscription } from './tools/observable'
export { Observable, BufferedObservable } from './tools/observable'
export type { SessionManager } from './domain/session/sessionManager'
export { startSessionManager, stopSessionManager } from './domain/session/sessionManager'
export {
SESSION_EXPIRATION_DELAY,
SESSION_TIME_OUT_DELAY, // Exposed for tests
SESSION_NOT_TRACKED,
SessionPersistence,
} from './domain/session/sessionConstants'
export type {
BandwidthStats,
HttpRequest,
HttpRequestEvent,
Payload,
FlushEvent,
FlushReason,
DatadogEventBridge,
BrowserWindowWithEventBridge,
Batch,
} from './transport'
export {
createHttpRequest,
RECOMMENDED_REQUEST_BYTES_LIMIT,
canUseEventBridge,
getEventBridge,
bridgeSupports,
BridgeCapability,
createBatch,
createFlushController,
FLUSH_DURATION_LIMIT,
} from './transport'
export * from './tools/display'
export type { Encoder, EncoderResult } from './tools/encoder'
export { createIdentityEncoder } from './tools/encoder'
export * from './tools/utils/urlPolyfill'
export * from './tools/utils/timeUtils'
export * from './tools/utils/arrayUtils'
export * from './tools/serialisation/sanitize'
export * from './tools/globalObject'
export { AbstractLifeCycle } from './tools/abstractLifeCycle'
export * from './domain/eventRateLimiter/createEventRateLimiter'
export * from './tools/utils/browserDetection'
export { sendToExtension } from './tools/sendToExtension'
export { runOnReadyState, asyncRunOnReadyState } from './browser/runOnReadyState'
export { getZoneJsOriginalValue } from './tools/getZoneJsOriginalValue'
export type { InstrumentedMethodCall } from './tools/instrumentMethod'
export { instrumentMethod, instrumentSetter } from './tools/instrumentMethod'
export {
computeRawError,
getFileFromStackTraceString,
isError,
NO_ERROR_STACK_PRESENT_MESSAGE,
} from './domain/error/error'
export { NonErrorPrefix } from './domain/error/error.types'
export type { Context, ContextArray, ContextValue } from './tools/serialisation/context'
export {
areCookiesAuthorized,
getCookie,
getInitCookie,
setCookie,
deleteCookie,
resetInitCookies,
} from './browser/cookie'
export type { CookieStore, WeakRef, WeakRefConstructor } from './browser/browser.types'
export type { XhrCompleteContext, XhrStartContext } from './browser/xhrObservable'
export { initXhrObservable } from './browser/xhrObservable'
export type { FetchResolveContext, FetchStartContext, FetchContext } from './browser/fetchObservable'
export { initFetchObservable, resetFetchObservable, ResponseBodyAction } from './browser/fetchObservable'
export type { PageMayExitEvent } from './browser/pageMayExitObservable'
export { createPageMayExitObservable, PageExitReason, isPageExitReason } from './browser/pageMayExitObservable'
export * from './browser/addEventListener'
export { requestIdleCallback } from './tools/requestIdleCallback'
export * from './tools/taskQueue'
export * from './tools/timer'
export type { ConsoleLog } from './domain/console/consoleObservable'
export { initConsoleObservable, resetConsoleObservable } from './domain/console/consoleObservable'
export type { BoundedBuffer } from './tools/boundedBuffer'
export { createBoundedBuffer } from './tools/boundedBuffer'
export { catchUserErrors } from './tools/catchUserErrors'
export type { ContextManager } from './domain/context/contextManager'
export { createContextManager } from './domain/context/contextManager'
export { defineContextMethod, bufferContextCalls } from './domain/context/defineContextMethod'
export { storeContextManager, removeStorageListeners } from './domain/context/storeContextManager'
export { startAccountContext, buildAccountContextManager } from './domain/contexts/accountContext'
export { startGlobalContext, buildGlobalContextManager } from './domain/contexts/globalContext'
export { startUserContext, buildUserContextManager } from './domain/contexts/userContext'
export type { User } from './domain/contexts/userContext'
export type { Account } from './domain/contexts/accountContext'
export type { RumInternalContext } from './domain/contexts/rumInternalContext.type'
export { CustomerDataType, CustomerContextKey, ContextManagerMethod } from './domain/context/contextConstants'
export type { ValueHistory, ValueHistoryEntry } from './tools/valueHistory'
export { createValueHistory, CLEAR_OLD_VALUES_INTERVAL } from './tools/valueHistory'
export { readBytesFromStream } from './tools/readBytesFromStream'
export type { SessionState } from './domain/session/sessionState'
export { STORAGE_POLL_DELAY } from './domain/session/sessionStore'
export { SESSION_STORE_KEY } from './domain/session/storeStrategies/sessionStoreStrategy'
export {
willSyntheticsInjectRum,
getSyntheticsTestId,
getSyntheticsResultId,
isSyntheticsTest,
} from './domain/synthetics/syntheticsWorkerValues'
export { checkContext } from './domain/context/contextUtils'
export * from './domain/resourceUtils'
export * from './domain/bufferedData'
export * from './tools/utils/polyfills'
export * from './tools/utils/timezone'
export * from './tools/utils/numberUtils'
export * from './tools/utils/byteUtils'
export * from './tools/utils/objectUtils'
export * from './tools/utils/functionUtils'
export * from './tools/serialisation/jsonStringify'
export * from './tools/mergeInto'
export * from './tools/utils/stringUtils'
export * from './tools/matchOption'
export * from './tools/utils/responseUtils'
export * from './tools/utils/typeUtils'
export type { RawError, RawErrorCause, ErrorWithCause, Csp } from './domain/error/error.types'
export { ErrorHandling, ErrorSource } from './domain/error/error.types'
export * from './domain/deflate'
export * from './domain/connectivity'
export * from './tools/stackTrace/handlingStack'
export * from './tools/abstractHooks'
export * from './domain/tags'