@datadog/mobile-react-native-apollo-client 2.14.1 → 3.0.1

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.
Files changed (172) hide show
  1. package/README.md +11 -4
  2. package/lib/commonjs/helpers.js.map +1 -1
  3. package/lib/module/helpers.js.map +1 -1
  4. package/lib/typescript/core/src/DdAttributes.d.ts.map +1 -0
  5. package/lib/typescript/core/src/DdSdkReactNative.d.ts +49 -12
  6. package/lib/typescript/core/src/DdSdkReactNative.d.ts.map +1 -1
  7. package/lib/typescript/core/src/InternalLog.d.ts +1 -1
  8. package/lib/typescript/core/src/InternalLog.d.ts.map +1 -1
  9. package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts +12 -0
  10. package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts.map +1 -0
  11. package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts +17 -0
  12. package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts.map +1 -0
  13. package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts +52 -0
  14. package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts.map +1 -0
  15. package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts +60 -0
  16. package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts.map +1 -0
  17. package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts +47 -0
  18. package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts.map +1 -0
  19. package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts +5 -0
  20. package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts.map +1 -0
  21. package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts +52 -0
  22. package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts.map +1 -0
  23. package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts +90 -0
  24. package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts.map +1 -0
  25. package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts +54 -0
  26. package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts.map +1 -0
  27. package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts +17 -0
  28. package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts.map +1 -0
  29. package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts +24 -0
  30. package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts.map +1 -0
  31. package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts +6 -0
  32. package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts.map +1 -0
  33. package/lib/typescript/core/src/config/features/RumConfiguration.d.ts +66 -0
  34. package/lib/typescript/core/src/config/features/RumConfiguration.d.ts.map +1 -0
  35. package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts +131 -0
  36. package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts.map +1 -0
  37. package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts +25 -0
  38. package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts.map +1 -0
  39. package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts +10 -0
  40. package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts.map +1 -0
  41. package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts +11 -0
  42. package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts.map +1 -0
  43. package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts +4 -0
  44. package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts.map +1 -0
  45. package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts +18 -0
  46. package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts.map +1 -0
  47. package/lib/typescript/core/src/config/types/BatchSize.d.ts +19 -0
  48. package/lib/typescript/core/src/config/types/BatchSize.d.ts.map +1 -0
  49. package/lib/typescript/core/src/config/types/InitializationMode.d.ts +5 -0
  50. package/lib/typescript/core/src/config/types/InitializationMode.d.ts.map +1 -0
  51. package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts +2 -0
  52. package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts.map +1 -0
  53. package/lib/typescript/core/src/config/types/ProxyConfiguration.d.ts.map +1 -0
  54. package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts.map +1 -0
  55. package/lib/typescript/core/src/config/types/TrackingConsent.d.ts.map +1 -0
  56. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts +18 -0
  57. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts.map +1 -0
  58. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts +7 -0
  59. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts.map +1 -0
  60. package/lib/typescript/core/src/config/types/index.d.ts +10 -0
  61. package/lib/typescript/core/src/config/types/index.d.ts.map +1 -0
  62. package/lib/typescript/core/src/index.d.ts +20 -9
  63. package/lib/typescript/core/src/index.d.ts.map +1 -1
  64. package/lib/typescript/core/src/logs/DdLogs.d.ts +2 -1
  65. package/lib/typescript/core/src/logs/DdLogs.d.ts.map +1 -1
  66. package/lib/typescript/core/src/logs/eventMapper.d.ts +3 -2
  67. package/lib/typescript/core/src/logs/eventMapper.d.ts.map +1 -1
  68. package/lib/typescript/core/src/logs/types.d.ts +1 -16
  69. package/lib/typescript/core/src/logs/types.d.ts.map +1 -1
  70. package/lib/typescript/core/src/nativeModulesTypes.d.ts +2 -15
  71. package/lib/typescript/core/src/nativeModulesTypes.d.ts.map +1 -1
  72. package/lib/typescript/core/src/rum/DdRum.d.ts +10 -1
  73. package/lib/typescript/core/src/rum/DdRum.d.ts.map +1 -1
  74. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts +1 -1
  75. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts.map +1 -1
  76. package/lib/typescript/core/src/rum/helper.d.ts +10 -0
  77. package/lib/typescript/core/src/rum/helper.d.ts.map +1 -0
  78. package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts.map +1 -1
  79. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts +6 -6
  80. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts.map +1 -1
  81. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts +7 -0
  82. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts.map +1 -1
  83. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +12 -6
  84. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -1
  85. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts +1 -0
  86. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts.map +1 -1
  87. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts +8 -0
  88. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts.map +1 -1
  89. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts +5 -17
  90. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts.map +1 -1
  91. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts +20 -0
  92. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts.map +1 -0
  93. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +3 -24
  94. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts.map +1 -1
  95. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts +12 -0
  96. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts.map +1 -0
  97. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts +24 -0
  98. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts.map +1 -0
  99. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +2 -1
  100. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts.map +1 -1
  101. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts.map +1 -1
  102. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +1 -1
  103. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts.map +1 -1
  104. package/lib/typescript/core/src/rum/types.d.ts +47 -7
  105. package/lib/typescript/core/src/rum/types.d.ts.map +1 -1
  106. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts +15 -0
  107. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts.map +1 -0
  108. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts +6 -0
  109. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts.map +1 -0
  110. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts +13 -0
  111. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts.map +1 -0
  112. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts +33 -0
  113. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts.map +1 -0
  114. package/lib/typescript/core/src/{utils → sdk/AttributesEncoding}/errorUtils.d.ts +4 -4
  115. package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts.map +1 -0
  116. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts +17 -0
  117. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts.map +1 -0
  118. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts +21 -0
  119. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts.map +1 -0
  120. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts +7 -0
  121. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts.map +1 -0
  122. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts +5 -1
  123. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts.map +1 -1
  124. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts +4 -3
  125. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts.map +1 -1
  126. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts +9 -0
  127. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts.map +1 -0
  128. package/lib/typescript/core/src/sdk/DdSdk.d.ts +2 -3
  129. package/lib/typescript/core/src/sdk/DdSdk.d.ts.map +1 -1
  130. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts +39 -0
  131. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts.map +1 -0
  132. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts +3 -1
  133. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts.map +1 -1
  134. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts +3 -3
  135. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts.map +1 -1
  136. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts +2 -1
  137. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts.map +1 -1
  138. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts +1 -2
  139. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts.map +1 -1
  140. package/lib/typescript/core/src/specs/NativeDdRum.d.ts +45 -0
  141. package/lib/typescript/core/src/specs/NativeDdRum.d.ts.map +1 -1
  142. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts +34 -6
  143. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts.map +1 -1
  144. package/lib/typescript/core/src/trace/DdTrace.d.ts +1 -2
  145. package/lib/typescript/core/src/trace/DdTrace.d.ts.map +1 -1
  146. package/lib/typescript/core/src/types.d.ts +74 -92
  147. package/lib/typescript/core/src/types.d.ts.map +1 -1
  148. package/lib/typescript/core/src/utils/longTasksUtils.d.ts +1 -1
  149. package/lib/typescript/core/src/utils/longTasksUtils.d.ts.map +1 -1
  150. package/lib/typescript/core/src/utils/singletonUtils.d.ts +2 -0
  151. package/lib/typescript/core/src/utils/singletonUtils.d.ts.map +1 -0
  152. package/lib/typescript/core/src/version.d.ts +1 -1
  153. package/lib/typescript/core/src/version.d.ts.map +1 -1
  154. package/package.json +3 -3
  155. package/src/helpers.ts +2 -2
  156. package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts +0 -376
  157. package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts.map +0 -1
  158. package/lib/typescript/core/src/ProxyConfiguration.d.ts.map +0 -1
  159. package/lib/typescript/core/src/SdkVerbosity.d.ts.map +0 -1
  160. package/lib/typescript/core/src/TrackingConsent.d.ts.map +0 -1
  161. package/lib/typescript/core/src/rum/DdAttributes.d.ts.map +0 -1
  162. package/lib/typescript/core/src/rum/sessionId/sessionIdHelper.d.ts +0 -4
  163. package/lib/typescript/core/src/rum/sessionId/sessionIdHelper.d.ts.map +0 -1
  164. package/lib/typescript/core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts +0 -34
  165. package/lib/typescript/core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts.map +0 -1
  166. package/lib/typescript/core/src/utils/argsUtils.d.ts +0 -8
  167. package/lib/typescript/core/src/utils/argsUtils.d.ts.map +0 -1
  168. package/lib/typescript/core/src/utils/errorUtils.d.ts.map +0 -1
  169. /package/lib/typescript/core/src/{rum/DdAttributes.d.ts → DdAttributes.d.ts} +0 -0
  170. /package/lib/typescript/core/src/{ProxyConfiguration.d.ts → config/types/ProxyConfiguration.d.ts} +0 -0
  171. /package/lib/typescript/core/src/{SdkVerbosity.d.ts → config/types/SdkVerbosity.d.ts} +0 -0
  172. /package/lib/typescript/core/src/{TrackingConsent.d.ts → config/types/TrackingConsent.d.ts} +0 -0
@@ -0,0 +1,17 @@
1
+ import type { LogEventMapper } from '../../types';
2
+ import type { LogsConfigurationOptions, LogsConfigurationType } from './LogsConfiguration.type';
3
+ declare const DEFAULTS: {
4
+ bundleLogsWithRum: boolean;
5
+ bundleLogsWithTraces: boolean;
6
+ customEndpoint: undefined;
7
+ logEventMapper: null;
8
+ };
9
+ export declare class LogsConfiguration implements LogsConfigurationType {
10
+ bundleLogsWithRum: boolean;
11
+ bundleLogsWithTraces: boolean;
12
+ customEndpoint?: string;
13
+ logEventMapper: LogEventMapper | null;
14
+ constructor(options?: LogsConfigurationOptions);
15
+ }
16
+ export { DEFAULTS as LOGS_DEFAULTS };
17
+ //# sourceMappingURL=LogsConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogsConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/LogsConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EACR,wBAAwB,EACxB,qBAAqB,EACxB,MAAM,0BAA0B,CAAC;AAElC,QAAA,MAAM,QAAQ;;;;;CAKb,CAAC;AAEF,qBAAa,iBAAkB,YAAW,qBAAqB;IAEpD,iBAAiB,EAAE,OAAO,CAA8B;IAGxD,oBAAoB,EAAE,OAAO,CAAiC;IAG9D,cAAc,CAAC,EAAE,MAAM,CAA2B;IAGlD,cAAc,EAAE,cAAc,GAAG,IAAI,CAA2B;gBAE3D,OAAO,GAAE,wBAA6B;CAGrD;AAED,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { LogEventMapper } from '../../types';
2
+ /**
3
+ * Logs configuration options.
4
+ */
5
+ export interface LogsConfigurationType {
6
+ /**
7
+ * Enables correlation between logs and RUM.
8
+ */
9
+ bundleLogsWithRum?: boolean;
10
+ /**
11
+ * Enables correlation between logs and traces.
12
+ */
13
+ bundleLogsWithTraces?: boolean;
14
+ /**
15
+ * Sets a target custom server for Logs.
16
+ */
17
+ customEndpoint?: string;
18
+ /**
19
+ * Custom mapper to transform log events.
20
+ */
21
+ logEventMapper?: LogEventMapper | null;
22
+ }
23
+ export type LogsConfigurationOptions = LogsConfigurationType;
24
+ //# sourceMappingURL=LogsConfiguration.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogsConfiguration.type.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/LogsConfiguration.type.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CAC1C;AAED,MAAM,MAAM,wBAAwB,GAAG,qBAAqB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type LogsNativeConfiguration = {
2
+ readonly bundleLogsWithRum: boolean;
3
+ readonly bundleLogsWithTraces: boolean;
4
+ readonly customEndpoint: string;
5
+ };
6
+ //# sourceMappingURL=LogsConfigurationNative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogsConfigurationNative.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/LogsConfigurationNative.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,uBAAuB,GAAG;IAClC,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC;IACvC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACnC,CAAC"}
@@ -0,0 +1,66 @@
1
+ import type { ActionEventMapper } from '../../rum/eventMappers/actionEventMapper';
2
+ import type { ErrorEventMapper } from '../../rum/eventMappers/errorEventMapper';
3
+ import type { ResourceEventMapper } from '../../rum/eventMappers/resourceEventMapper';
4
+ import type { FirstPartyHost } from '../../rum/types';
5
+ import { VitalsUpdateFrequency } from '../types';
6
+ import type { RumConfigurationOptions, RumConfigurationType } from './RumConfiguration.type';
7
+ declare const DEFAULTS: {
8
+ actionEventMapper: null;
9
+ actionNameAttribute: undefined;
10
+ appHangThreshold: undefined;
11
+ customEndpoint: undefined;
12
+ errorEventMapper: null;
13
+ getFirstPartyHosts: () => never[];
14
+ initialResourceThreshold: undefined;
15
+ longTaskThresholdMs: number;
16
+ nativeCrashReportEnabled: boolean;
17
+ nativeInteractionTracking: boolean;
18
+ nativeLongTaskThresholdMs: number;
19
+ nativeViewTracking: boolean;
20
+ resourceEventMapper: null;
21
+ resourceTraceSampleRate: number;
22
+ sessionSampleRate: number;
23
+ telemetrySampleRate: number;
24
+ trackBackgroundEvents: boolean;
25
+ trackErrors: boolean;
26
+ trackFrustrations: boolean;
27
+ trackInteractions: boolean;
28
+ trackMemoryWarnings: boolean;
29
+ trackNonFatalAnrs: undefined;
30
+ trackResources: boolean;
31
+ trackWatchdogTerminations: boolean;
32
+ useAccessibilityLabel: boolean;
33
+ vitalsUpdateFrequency: VitalsUpdateFrequency;
34
+ };
35
+ export declare class RumConfiguration implements RumConfigurationType {
36
+ readonly applicationId: string;
37
+ readonly trackInteractions: boolean;
38
+ readonly trackResources: boolean;
39
+ readonly trackErrors: boolean;
40
+ actionEventMapper: ActionEventMapper | null;
41
+ actionNameAttribute?: string;
42
+ appHangThreshold?: number;
43
+ customEndpoint?: string;
44
+ errorEventMapper: ErrorEventMapper | null;
45
+ firstPartyHosts: FirstPartyHost[];
46
+ initialResourceThreshold?: number;
47
+ longTaskThresholdMs: number | 0 | false;
48
+ nativeCrashReportEnabled: boolean;
49
+ nativeInteractionTracking: boolean;
50
+ nativeLongTaskThresholdMs: number;
51
+ nativeViewTracking: boolean;
52
+ resourceEventMapper: ResourceEventMapper | null;
53
+ resourceTraceSampleRate: number;
54
+ sessionSampleRate: number;
55
+ telemetrySampleRate: number;
56
+ trackBackgroundEvents: boolean;
57
+ trackFrustrations: boolean;
58
+ trackMemoryWarnings: boolean;
59
+ trackNonFatalAnrs?: boolean;
60
+ trackWatchdogTerminations: boolean;
61
+ useAccessibilityLabel: boolean;
62
+ vitalsUpdateFrequency: VitalsUpdateFrequency;
63
+ constructor(applicationId: string, trackInteractions?: boolean, trackResources?: boolean, trackErrors?: boolean, options?: RumConfigurationOptions);
64
+ }
65
+ export { DEFAULTS as RUM_DEFAULTS };
66
+ //# sourceMappingURL=RumConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RumConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/RumConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,KAAK,EACR,uBAAuB,EACvB,oBA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C,EACvD,cAAc,GAAE,OAAiC,EACjD,WAAW,GAAE,OAA8B,EACpD,OAAO,GAAE,uBAA4B;CAI5C;AAED,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,CAAC"}
@@ -0,0 +1,131 @@
1
+ import type { ActionEventMapper } from '../../rum/eventMappers/actionEventMapper';
2
+ import type { ErrorEventMapper } from '../../rum/eventMappers/errorEventMapper';
3
+ import type { ResourceEventMapper } from '../../rum/eventMappers/resourceEventMapper';
4
+ import type { FirstPartyHost } from '../../rum/types';
5
+ import type { VitalsUpdateFrequency } from '../types';
6
+ /**
7
+ * Required RUM configuration values.
8
+ */
9
+ export interface RumConfigurationRequired {
10
+ /**
11
+ * The Datadog RUM application ID.
12
+ */
13
+ applicationId: string;
14
+ /**
15
+ * Enables tracking of user interactions.
16
+ * Defaults to the SDK-defined value.
17
+ */
18
+ trackInteractions?: boolean;
19
+ /**
20
+ * Enables tracking of network resources.
21
+ * Defaults to the SDK-defined value.
22
+ */
23
+ trackResources?: boolean;
24
+ /**
25
+ * Enables tracking of errors.
26
+ * Defaults to the SDK-defined value.
27
+ */
28
+ trackErrors?: boolean;
29
+ }
30
+ /**
31
+ * Optional RUM configuration values.
32
+ */
33
+ export interface RumConfigurationOptions {
34
+ /**
35
+ * Custom mapper to transform RUM action events.
36
+ */
37
+ actionEventMapper?: ActionEventMapper | null;
38
+ /**
39
+ * Custom attribute used to name RUM actions.
40
+ */
41
+ actionNameAttribute?: string;
42
+ /**
43
+ * App hang threshold in seconds for non-fatal app hangs on iOS.
44
+ */
45
+ appHangThreshold?: number;
46
+ /**
47
+ * Sets a target custom server for RUM.
48
+ */
49
+ customEndpoint?: string;
50
+ /**
51
+ * Custom mapper to transform RUM error events.
52
+ */
53
+ errorEventMapper?: ErrorEventMapper | null;
54
+ /**
55
+ * List of backend hosts used to enable tracing.
56
+ */
57
+ firstPartyHosts?: FirstPartyHost[];
58
+ /**
59
+ * Initial resource collection threshold in seconds.
60
+ */
61
+ initialResourceThreshold?: number;
62
+ /**
63
+ * Threshold for JavaScript long task reporting in milliseconds.
64
+ */
65
+ longTaskThresholdMs?: number | false;
66
+ /**
67
+ * Enables native crash reporting.
68
+ */
69
+ nativeCrashReportEnabled?: boolean;
70
+ /**
71
+ * Threshold for native long task reporting in milliseconds.
72
+ */
73
+ nativeLongTaskThresholdMs?: number;
74
+ /**
75
+ * Enables native interaction tracking.
76
+ */
77
+ nativeInteractionTracking?: boolean;
78
+ /**
79
+ * Enables native view tracking.
80
+ */
81
+ nativeViewTracking?: boolean;
82
+ /**
83
+ * Custom mapper to transform RUM resource events.
84
+ */
85
+ resourceEventMapper?: ResourceEventMapper | null;
86
+ /**
87
+ * Percentage of traced network requests.
88
+ */
89
+ resourceTraceSampleRate?: number;
90
+ /**
91
+ * Percentage of sampled RUM sessions.
92
+ */
93
+ sessionSampleRate?: number;
94
+ /**
95
+ * Enables tracking of background RUM events.
96
+ */
97
+ trackBackgroundEvents?: boolean;
98
+ /**
99
+ * Enables tracking of frustration signals.
100
+ */
101
+ trackFrustrations?: boolean;
102
+ /**
103
+ * Enables tracking of non-fatal ANRs on Android.
104
+ */
105
+ trackNonFatalAnrs?: boolean;
106
+ /**
107
+ * Enables tracking of app termination by the iOS watchdog.
108
+ */
109
+ trackWatchdogTerminations?: boolean;
110
+ /**
111
+ * Sampling rate for internal SDK telemetry.
112
+ */
113
+ telemetrySampleRate?: number;
114
+ /**
115
+ * Enables tracking of memory warnings (iOS only).
116
+ */
117
+ trackMemoryWarnings?: boolean;
118
+ /**
119
+ * Enables accessibility label usage for action names.
120
+ */
121
+ useAccessibilityLabel?: boolean;
122
+ /**
123
+ * Preferred frequency for collecting mobile vitals.
124
+ */
125
+ vitalsUpdateFrequency?: VitalsUpdateFrequency;
126
+ }
127
+ /**
128
+ * Complete RUM configuration type.
129
+ */
130
+ export type RumConfigurationType = RumConfigurationRequired & RumConfigurationOptions;
131
+ //# sourceMappingURL=RumConfiguration.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RumConfiguration.type.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/RumConfiguration.type.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAE7C;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE3C;;OAEG;IACH,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IAEnC;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAErC;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAEjD;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GACvD,uBAAuB,CAAC"}
@@ -0,0 +1,25 @@
1
+ export type RumNativeConfiguration = {
2
+ readonly applicationId: string;
3
+ readonly trackFrustrations: boolean;
4
+ readonly longTaskThresholdMs: number;
5
+ readonly sessionSampleRate: number;
6
+ readonly resourceTraceSampleRate: number;
7
+ readonly vitalsUpdateFrequency: string;
8
+ readonly trackBackgroundEvents: boolean;
9
+ readonly nativeCrashReportEnabled: boolean;
10
+ readonly nativeLongTaskThresholdMs: number;
11
+ readonly nativeViewTracking: boolean;
12
+ readonly nativeInteractionTracking: boolean;
13
+ readonly trackNonFatalAnrs: boolean | undefined;
14
+ readonly appHangThreshold: number | undefined;
15
+ readonly trackWatchdogTerminations: boolean | undefined;
16
+ readonly initialResourceThreshold: number | undefined;
17
+ readonly trackMemoryWarnings: boolean;
18
+ readonly telemetrySampleRate: number;
19
+ readonly customEndpoint: string;
20
+ readonly firstPartyHosts: {
21
+ match: string;
22
+ propagatorTypes: string[];
23
+ }[];
24
+ };
25
+ //# sourceMappingURL=RumConfigurationNative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RumConfigurationNative.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/RumConfigurationNative.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;IACzC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAC;IACxC,QAAQ,CAAC,wBAAwB,EAAE,OAAO,CAAC;IAC3C,QAAQ,CAAC,yBAAyB,EAAE,MAAM,CAAC;IAC3C,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,yBAAyB,EAAE,OAAO,CAAC;IAC5C,QAAQ,CAAC,iBAAiB,EAAE,OAAO,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,yBAAyB,EAAE,OAAO,GAAG,SAAS,CAAC;IACxD,QAAQ,CAAC,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAC;IACtD,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,eAAe,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;CAC5E,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { TraceConfigurationOptions, TraceConfigurationType } from './TraceConfiguration.type';
2
+ declare const DEFAULTS: {
3
+ customEndpoint: undefined;
4
+ };
5
+ export declare class TraceConfiguration implements TraceConfigurationType {
6
+ customEndpoint?: string;
7
+ constructor(options?: TraceConfigurationOptions);
8
+ }
9
+ export { DEFAULTS as TRACE_DEFAULTS };
10
+ //# sourceMappingURL=TraceConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TraceConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/TraceConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACR,yBAAyB,EACzB,sBAAsB,EACzB,MAAM,2BAA2B,CAAC;AAEnC,QAAA,MAAM,QAAQ;;CAEb,CAAC;AAEF,qBAAa,kBAAmB,YAAW,sBAAsB;IAEtD,cAAc,CAAC,EAAE,MAAM,CAA2B;gBAE7C,OAAO,GAAE,yBAA8B;CAGtD;AAED,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Trace configuration options.
3
+ */
4
+ export interface TraceConfigurationType {
5
+ /**
6
+ * Sets a target custom server for Traces.
7
+ */
8
+ customEndpoint?: string;
9
+ }
10
+ export type TraceConfigurationOptions = TraceConfigurationType;
11
+ //# sourceMappingURL=TraceConfiguration.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TraceConfiguration.type.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/TraceConfiguration.type.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,yBAAyB,GAAG,sBAAsB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export type TraceNativeConfiguration = {
2
+ readonly customEndpoint: string;
3
+ };
4
+ //# sourceMappingURL=TraceConfigurationNative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TraceConfigurationNative.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/TraceConfigurationNative.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,wBAAwB,GAAG;IACnC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACnC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Enum specifying the preferred level for processing batches of data.
3
+ */
4
+ export declare enum BatchProcessingLevel {
5
+ /**
6
+ * Only 1 batch will be sent in a single upload cycle.
7
+ */
8
+ LOW = "LOW",
9
+ /**
10
+ * 10 batches will be sent in a single upload cycle
11
+ */
12
+ MEDIUM = "MEDIUM",
13
+ /**
14
+ * 100 batches will be sent in a single upload cycle.
15
+ */
16
+ HIGH = "HIGH"
17
+ }
18
+ //# sourceMappingURL=BatchProcessingLevel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BatchProcessingLevel.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/types/BatchProcessingLevel.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,oBAAoB;IAC5B;;OAEG;IACH,GAAG,QAAQ;IACX;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,IAAI,SAAS;CAChB"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Enum specifying the Datadog SDK policy when batching data together before uploading it to Datadog servers.
3
+ * Smaller batches mean smaller but more network requests, whereas larger batches mean fewer but larger network requests.
4
+ */
5
+ export declare enum BatchSize {
6
+ /**
7
+ * Upload less frequent, larger batches of data
8
+ */
9
+ LARGE = "LARGE",
10
+ /**
11
+ * Use default size for batches of data
12
+ */
13
+ MEDIUM = "MEDIUM",
14
+ /**
15
+ * Upload more frequent, smaller batches of data
16
+ */
17
+ SMALL = "SMALL"
18
+ }
19
+ //# sourceMappingURL=BatchSize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BatchSize.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/types/BatchSize.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,oBAAY,SAAS;IACjB;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,KAAK,UAAU;CAClB"}
@@ -0,0 +1,5 @@
1
+ export declare enum InitializationMode {
2
+ SYNC = "SYNC",
3
+ ASYNC = "ASYNC"
4
+ }
5
+ //# sourceMappingURL=InitializationMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitializationMode.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/types/InitializationMode.ts"],"names":[],"mappings":"AAKA,oBAAY,kBAAkB;IAC1B,IAAI,SAAS;IACb,KAAK,UAAU;CAClB"}
@@ -0,0 +1,2 @@
1
+ export type InitializationModeForTelemetry = 'LEGACY' | 'SYNC' | 'ASYNC' | 'PARTIAL' | 'FILE';
2
+ //# sourceMappingURL=InitializationModeForTelemetry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitializationModeForTelemetry.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/types/InitializationModeForTelemetry.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,8BAA8B,GACpC,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,MAAM,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProxyConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/types/ProxyConfiguration.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,cAAM,kBAAkB;IAKhB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS;IACxB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM;IAfzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;;IAGd;;OAEG;IACM,IAAI,EAAE,SAAS;IACxB;;OAEG;IACM,OAAO,EAAE,MAAM;IACxB;;OAEG;IACM,IAAI,EAAE,MAAM;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM;CAaxB;AAED,aAAK,SAAS;IACV,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdkVerbosity.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/types/SdkVerbosity.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,YAAY;IACpB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;CAClB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrackingConsent.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/types/TrackingConsent.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC9B"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Enum specifying preferred frequency for uploading batches of data.
3
+ */
4
+ export declare enum UploadFrequency {
5
+ /**
6
+ * Upload data every 1000ms.
7
+ */
8
+ FREQUENT = "FREQUENT",
9
+ /**
10
+ * Upload data every 5000ms.
11
+ */
12
+ AVERAGE = "AVERAGE",
13
+ /**
14
+ * Upload data every 10000ms.
15
+ */
16
+ RARE = "RARE"
17
+ }
18
+ //# sourceMappingURL=UploadFrequency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UploadFrequency.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/types/UploadFrequency.tsx"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,eAAe;IACvB;;OAEG;IACH,QAAQ,aAAa;IACrB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,IAAI,SAAS;CAChB"}
@@ -0,0 +1,7 @@
1
+ export declare enum VitalsUpdateFrequency {
2
+ FREQUENT = "FREQUENT",
3
+ AVERAGE = "AVERAGE",
4
+ RARE = "RARE",
5
+ NEVER = "NEVER"
6
+ }
7
+ //# sourceMappingURL=VitalsUpdateFrequency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VitalsUpdateFrequency.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/types/VitalsUpdateFrequency.ts"],"names":[],"mappings":"AAKA,oBAAY,qBAAqB;IAC7B,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;CAClB"}
@@ -0,0 +1,10 @@
1
+ export { BatchProcessingLevel } from './BatchProcessingLevel';
2
+ export { BatchSize } from './BatchSize';
3
+ export { ProxyConfiguration, ProxyType } from './ProxyConfiguration';
4
+ export { SdkVerbosity } from './SdkVerbosity';
5
+ export { TrackingConsent } from './TrackingConsent';
6
+ export { UploadFrequency } from './UploadFrequency';
7
+ export { VitalsUpdateFrequency } from './VitalsUpdateFrequency';
8
+ export { InitializationMode } from './InitializationMode';
9
+ export type { InitializationModeForTelemetry } from './InitializationModeForTelemetry';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/types/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC"}
@@ -1,10 +1,21 @@
1
- import { BatchProcessingLevel, BatchSize, DatadogProviderConfiguration, DdSdkReactNativeConfiguration, InitializationMode, UploadFrequency, VitalsUpdateFrequency } from './DdSdkReactNativeConfiguration';
2
- import type { AutoInstrumentationConfiguration, PartialInitializationConfiguration } from './DdSdkReactNativeConfiguration';
3
1
  import { DdSdkReactNative } from './DdSdkReactNative';
4
2
  import { InternalLog } from './InternalLog';
5
- import { ProxyConfiguration, ProxyType } from './ProxyConfiguration';
6
- import { SdkVerbosity } from './SdkVerbosity';
7
- import { TrackingConsent } from './TrackingConsent';
3
+ import { DatadogProviderConfiguration } from './config/DatadogProviderConfiguration';
4
+ import { FileBasedConfiguration } from './config/FileBasedConfiguration';
5
+ import type { AutoInstrumentationConfiguration } from './config/async/AutoInstrumentationConfiguration';
6
+ import type { PartialInitializationConfiguration } from './config/async/PartialInitializationConfiguration';
7
+ import type { CoreConfigurationOptions } from './config/features/CoreConfiguration.type';
8
+ import { CoreConfiguration } from './config/features/CoreConfiguration';
9
+ import type { LogsConfigurationOptions } from './config/features/LogsConfiguration.type';
10
+ import { LogsConfiguration } from './config/features/LogsConfiguration';
11
+ import type { RumConfigurationOptions } from './config/features/RumConfiguration.type';
12
+ import { RumConfiguration } from './config/features/RumConfiguration';
13
+ import type { TraceConfigurationOptions } from './config/features/TraceConfiguration.type';
14
+ import { TraceConfiguration } from './config/features/TraceConfiguration';
15
+ import { ProxyConfiguration, ProxyType } from './config/types/ProxyConfiguration';
16
+ import { SdkVerbosity } from './config/types/SdkVerbosity';
17
+ import { TrackingConsent } from './config/types/TrackingConsent';
18
+ import { BatchProcessingLevel, BatchSize, InitializationMode, UploadFrequency, VitalsUpdateFrequency } from './config/types';
8
19
  import { DdLogs } from './logs/DdLogs';
9
20
  import { DdRum } from './rum/DdRum';
10
21
  import { DdBabelInteractionTracking } from './rum/instrumentation/interactionTracking/DdBabelInteractionTracking';
@@ -14,14 +25,14 @@ import { DatadogTracingIdentifier } from './rum/instrumentation/resourceTracking
14
25
  import { TracingIdFormat, TracingIdType } from './rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier';
15
26
  import { DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER } from './rum/instrumentation/resourceTracking/graphql/graphqlHeaders';
16
27
  import type { FirstPartyHost } from './rum/types';
17
- import { ErrorSource, PropagatorType, RumActionType } from './rum/types';
28
+ import { PropagatorType, RumActionType } from './rum/types';
18
29
  import { DatadogProvider } from './sdk/DatadogProvider/DatadogProvider';
19
30
  import { DdSdk } from './sdk/DdSdk';
20
- import { FileBasedConfiguration } from './sdk/FileBasedConfiguration/FileBasedConfiguration';
21
31
  import { DdTrace } from './trace/DdTrace';
32
+ import { ErrorSource, FeatureOperationFailure } from './types';
22
33
  import { DefaultTimeProvider } from './utils/time-provider/DefaultTimeProvider';
23
34
  import type { Timestamp } from './utils/time-provider/TimeProvider';
24
35
  import { TimeProvider } from './utils/time-provider/TimeProvider';
25
- export { DatadogProvider, DatadogProviderConfiguration, FileBasedConfiguration, InitializationMode, DdLogs, DdTrace, DdRum, RumActionType, ErrorSource, DdSdkReactNativeConfiguration, DdSdkReactNative, DdSdk, InternalLog, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity, VitalsUpdateFrequency, PropagatorType, UploadFrequency, BatchSize, BatchProcessingLevel, TimeProvider, DefaultTimeProvider, DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER, TracingIdType, TracingIdFormat, DatadogTracingIdentifier, DatadogTracingContext, DdBabelInteractionTracking, __ddExtractText };
26
- export type { Timestamp, FirstPartyHost, AutoInstrumentationConfiguration, PartialInitializationConfiguration };
36
+ export { DatadogProvider, DatadogProviderConfiguration, FileBasedConfiguration, InitializationMode, DdLogs, DdTrace, DdRum, RumActionType, ErrorSource, FeatureOperationFailure, CoreConfiguration, RumConfiguration, LogsConfiguration, TraceConfiguration, DdSdkReactNative, DdSdk, InternalLog, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity, VitalsUpdateFrequency, PropagatorType, UploadFrequency, BatchSize, BatchProcessingLevel, TimeProvider, DefaultTimeProvider, DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER, TracingIdType, TracingIdFormat, DatadogTracingIdentifier, DatadogTracingContext, DdBabelInteractionTracking, __ddExtractText };
37
+ export type { Timestamp, FirstPartyHost, AutoInstrumentationConfiguration, PartialInitializationConfiguration, CoreConfigurationOptions, RumConfigurationOptions, LogsConfigurationOptions, TraceConfigurationOptions };
27
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/src/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EACH,oBAAoB,EACpB,SAAS,EACT,4BAA4B,EAC5B,6BAA6B,EAC7B,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EACR,gCAAgC,EAChC,kCAAkC,EACrC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,E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AAK,EACL,aAAa,EACb,WAAW,EACX,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,SAAS,EACT,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,sCAAsC,EACtC,sCAAsC,EACtC,iCAAiC,EACjC,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,eAAe,EAClB,CAAC;AACF,YAAY,EACR,SAAS,EACT,cAAc,EACd,gCAAgC,EAChC,kCAAkC,EAClC,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EAC5B,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { DdLogsType, LogArguments, LogEventMapper, LogWithErrorArguments } from './types';
1
+ import type { LogEventMapper } from '../types';
2
+ import type { DdLogsType, LogArguments, LogWithErrorArguments } from './types';
2
3
  declare class DdLogsWrapper implements DdLogsType {
3
4
  private nativeLogs;
4
5
  private logEventMapper;
@@ -1 +1 @@
1
- {"version":3,"file":"DdLogs.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/DdLogs.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACR,UAAU,EACV,YAAY,EACZ,cAAc,EACd,qBAAqB,EAGxB,MAAM,SAAS,CAAC;AAsBjB,cAAM,aAAc,YAAW,UAAU;IAErC,OAAO,CAAC,UAAU,CACL;IACb,OAAO,CAAC,cAAc,CAAkC;IAExD,KAAK,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAapE;IAEF,IAAI,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAanE;IAEF,IAAI,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAanE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@@
1
1
  import type { Attributes } from '../sdk/AttributesSingleton/types';
2
2
  import { EventMapper } from '../sdk/EventMappers/EventMapper';
3
3
  import type { UserInfo } from '../sdk/UserInfoSingleton/types';
4
- import type { LogEvent, LogEventMapper, NativeLog, NativeLogWithError, RawLog, RawLogWithError } from './types';
4
+ import type { LogEvent, LogEventMapper } from '../types';
5
+ import type { NativeLog, NativeLogWithError, RawLog, RawLogWithError } from './types';
5
6
  export declare const formatLogEventToNativeLog: (logEvent: LogEvent) => NativeLog | NativeLogWithError;
6
7
  export declare const formatRawLogToNativeEvent: (rawLog: RawLog | RawLogWithError) => NativeLog | NativeLogWithError;
7
8
  export declare const formatRawLogToLogEvent: (rawLog: RawLog | RawLogWithError, additionalInformation: {
8
- userInfo: UserInfo;
9
+ userInfo?: UserInfo;
9
10
  attributes: Attributes;
10
11
  }) => LogEvent;
11
12
  export declare const generateEventMapper: (logEventMapper: LogEventMapper | undefined) => EventMapper<RawLog | RawLogWithError, LogEvent, NativeLog | NativeLogWithError>;
@@ -1 +1 @@
1
- {"version":3,"file":"eventMapper.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/eventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,KAAK,EACR,QAAQ,EACR,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,MAAM,EACN,eAAe,EAClB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,yBAAyB,aACxB,QAAQ,KACnB,SAAS,GAAG,kBAEd,CAAC;AAEF,eAAO,MAAM,yBAAyB,WAC1B,MAAM,GAAG,eAAe,KACjC,SAAS,GAAG,kBAEd,CAAC;AAEF,eAAO,MAAM,sBAAsB,WACvB,MAAM,GAAG,eAAe,yBACT;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;CAC1B,KACF,QAMF,CAAC;AAEF,eAAO,MAAM,mBAAmB,mBACZ,cAAc,GAAG,SAAS,oFAOzC,CAAC"}
1
+ {"version":3,"file":"eventMapper.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/eventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEzD,OAAO,KAAK,EACR,SAAS,EACT,kBAAkB,EAClB,MAAM,EACN,eAAe,EAClB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,yBAAyB,aACxB,QAAQ,KACnB,SAAS,GAAG,kBAEd,CAAC;AAEF,eAAO,MAAM,yBAAyB,WAC1B,MAAM,GAAG,eAAe,KACjC,SAAS,GAAG,kBAEd,CAAC;AAEF,eAAO,MAAM,sBAAsB,WACvB,MAAM,GAAG,eAAe,yBACT;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;CAC1B,KACF,QAQF,CAAC;AAEF,eAAO,MAAM,mBAAmB,mBACZ,cAAc,GAAG,SAAS,oFAOzC,CAAC"}
@@ -1,5 +1,4 @@
1
- import type { ErrorSource } from '../rum/types';
2
- import type { UserInfo } from '../sdk/UserInfoSingleton/types';
1
+ import type { LogStatus, ErrorSource } from '../types';
3
2
  /**
4
3
  * The entry point to use Datadog's Logs feature.
5
4
  */
@@ -62,20 +61,6 @@ export type NativeLogWithError = {
62
61
  context: object;
63
62
  fingerprint?: string;
64
63
  };
65
- export type LogStatus = 'debug' | 'info' | 'warn' | 'error';
66
- export type LogEvent = {
67
- message: string;
68
- context: object;
69
- errorKind?: string;
70
- errorMessage?: string;
71
- stacktrace?: string;
72
- fingerprint?: string;
73
- readonly source?: ErrorSource;
74
- readonly status: LogStatus;
75
- readonly userInfo: UserInfo;
76
- readonly attributes?: object;
77
- };
78
- export type LogEventMapper = (logEvent: LogEvent) => LogEvent | null;
79
64
  export type LogArguments = [message: string, context?: object];
80
65
  export type LogWithErrorArguments = [
81
66
  message: string,
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB;;;;OAIG;IACH,KAAK,CAAC,GAAG,IAAI,EAAE,YAAY,GAAG,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpE;;;;OAIG;IACH,IAAI,CAAC,GAAG,IAAI,EAAE,YAAY,GAAG,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;;;OAIG;IACH,IAAI,CAAC,GAAG,IAAI,EAAE,YAAY,GAAG,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;;;OAIG;IACH,KAAK,CAAC,GAAG,IAAI,EAAE,YAAY,GAAG,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvE,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,SAAS,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,eAAe,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,U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