@datadog/mobile-react-navigation 2.14.0 → 3.0.0

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 (189) hide show
  1. package/README.md +40 -5
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/commonjs/rum/instrumentation/DdRumReactNavigationTracking.js +128 -65
  4. package/lib/commonjs/rum/instrumentation/DdRumReactNavigationTracking.js.map +1 -1
  5. package/lib/commonjs/rum/instrumentation/utils.js +31 -0
  6. package/lib/commonjs/rum/instrumentation/utils.js.map +1 -0
  7. package/lib/module/index.js.map +1 -1
  8. package/lib/module/rum/instrumentation/DdRumReactNavigationTracking.js +127 -64
  9. package/lib/module/rum/instrumentation/DdRumReactNavigationTracking.js.map +1 -1
  10. package/lib/module/rum/instrumentation/utils.js +25 -0
  11. package/lib/module/rum/instrumentation/utils.js.map +1 -0
  12. package/lib/typescript/core/src/DdAttributes.d.ts.map +1 -0
  13. package/lib/typescript/core/src/DdSdkReactNative.d.ts +49 -12
  14. package/lib/typescript/core/src/DdSdkReactNative.d.ts.map +1 -1
  15. package/lib/typescript/core/src/InternalLog.d.ts +1 -1
  16. package/lib/typescript/core/src/InternalLog.d.ts.map +1 -1
  17. package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts +12 -0
  18. package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts.map +1 -0
  19. package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts +17 -0
  20. package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts.map +1 -0
  21. package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts +52 -0
  22. package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts.map +1 -0
  23. package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts +60 -0
  24. package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts.map +1 -0
  25. package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts +47 -0
  26. package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts.map +1 -0
  27. package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts +5 -0
  28. package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts.map +1 -0
  29. package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts +52 -0
  30. package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts.map +1 -0
  31. package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts +90 -0
  32. package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts.map +1 -0
  33. package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts +54 -0
  34. package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts.map +1 -0
  35. package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts +17 -0
  36. package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts.map +1 -0
  37. package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts +24 -0
  38. package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts.map +1 -0
  39. package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts +6 -0
  40. package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts.map +1 -0
  41. package/lib/typescript/core/src/config/features/RumConfiguration.d.ts +66 -0
  42. package/lib/typescript/core/src/config/features/RumConfiguration.d.ts.map +1 -0
  43. package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts +131 -0
  44. package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts.map +1 -0
  45. package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts +25 -0
  46. package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts.map +1 -0
  47. package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts +10 -0
  48. package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts.map +1 -0
  49. package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts +11 -0
  50. package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts.map +1 -0
  51. package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts +4 -0
  52. package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts.map +1 -0
  53. package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts +18 -0
  54. package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts.map +1 -0
  55. package/lib/typescript/core/src/config/types/BatchSize.d.ts +19 -0
  56. package/lib/typescript/core/src/config/types/BatchSize.d.ts.map +1 -0
  57. package/lib/typescript/core/src/config/types/InitializationMode.d.ts +5 -0
  58. package/lib/typescript/core/src/config/types/InitializationMode.d.ts.map +1 -0
  59. package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts +2 -0
  60. package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts.map +1 -0
  61. package/lib/typescript/core/src/config/types/ProxyConfiguration.d.ts.map +1 -0
  62. package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts.map +1 -0
  63. package/lib/typescript/core/src/config/types/TrackingConsent.d.ts.map +1 -0
  64. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts +18 -0
  65. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts.map +1 -0
  66. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts +7 -0
  67. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts.map +1 -0
  68. package/lib/typescript/core/src/config/types/index.d.ts +10 -0
  69. package/lib/typescript/core/src/config/types/index.d.ts.map +1 -0
  70. package/lib/typescript/core/src/index.d.ts +20 -9
  71. package/lib/typescript/core/src/index.d.ts.map +1 -1
  72. package/lib/typescript/core/src/logs/DdLogs.d.ts +2 -1
  73. package/lib/typescript/core/src/logs/DdLogs.d.ts.map +1 -1
  74. package/lib/typescript/core/src/logs/eventMapper.d.ts +3 -2
  75. package/lib/typescript/core/src/logs/eventMapper.d.ts.map +1 -1
  76. package/lib/typescript/core/src/logs/types.d.ts +1 -16
  77. package/lib/typescript/core/src/logs/types.d.ts.map +1 -1
  78. package/lib/typescript/core/src/nativeModulesTypes.d.ts +2 -15
  79. package/lib/typescript/core/src/nativeModulesTypes.d.ts.map +1 -1
  80. package/lib/typescript/core/src/rum/DdRum.d.ts +10 -1
  81. package/lib/typescript/core/src/rum/DdRum.d.ts.map +1 -1
  82. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts +1 -1
  83. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts.map +1 -1
  84. package/lib/typescript/core/src/rum/helper.d.ts +10 -0
  85. package/lib/typescript/core/src/rum/helper.d.ts.map +1 -0
  86. package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts.map +1 -1
  87. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts +6 -6
  88. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts.map +1 -1
  89. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts +7 -0
  90. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts.map +1 -1
  91. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +12 -6
  92. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -1
  93. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts +1 -0
  94. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts.map +1 -1
  95. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts +8 -0
  96. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts.map +1 -1
  97. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts +5 -17
  98. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts.map +1 -1
  99. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts +20 -0
  100. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts.map +1 -0
  101. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +3 -24
  102. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts.map +1 -1
  103. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts +12 -0
  104. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts.map +1 -0
  105. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts +24 -0
  106. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts.map +1 -0
  107. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +2 -1
  108. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts.map +1 -1
  109. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts.map +1 -1
  110. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +1 -1
  111. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts.map +1 -1
  112. package/lib/typescript/core/src/rum/types.d.ts +47 -7
  113. package/lib/typescript/core/src/rum/types.d.ts.map +1 -1
  114. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts +15 -0
  115. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts.map +1 -0
  116. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts +6 -0
  117. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts.map +1 -0
  118. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts +13 -0
  119. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts.map +1 -0
  120. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts +33 -0
  121. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts.map +1 -0
  122. package/lib/typescript/core/src/{utils → sdk/AttributesEncoding}/errorUtils.d.ts +4 -4
  123. package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts.map +1 -0
  124. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts +17 -0
  125. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts.map +1 -0
  126. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts +21 -0
  127. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts.map +1 -0
  128. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts +7 -0
  129. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts.map +1 -0
  130. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts +5 -1
  131. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts.map +1 -1
  132. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts +4 -3
  133. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts.map +1 -1
  134. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts +9 -0
  135. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts.map +1 -0
  136. package/lib/typescript/core/src/sdk/DdSdk.d.ts +2 -3
  137. package/lib/typescript/core/src/sdk/DdSdk.d.ts.map +1 -1
  138. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts +39 -0
  139. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts.map +1 -0
  140. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts +3 -1
  141. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts.map +1 -1
  142. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts +3 -3
  143. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts.map +1 -1
  144. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts +2 -1
  145. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts.map +1 -1
  146. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts +1 -2
  147. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts.map +1 -1
  148. package/lib/typescript/core/src/specs/NativeDdRum.d.ts +45 -0
  149. package/lib/typescript/core/src/specs/NativeDdRum.d.ts.map +1 -1
  150. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts +34 -6
  151. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts.map +1 -1
  152. package/lib/typescript/core/src/trace/DdTrace.d.ts +1 -2
  153. package/lib/typescript/core/src/trace/DdTrace.d.ts.map +1 -1
  154. package/lib/typescript/core/src/types.d.ts +74 -92
  155. package/lib/typescript/core/src/types.d.ts.map +1 -1
  156. package/lib/typescript/core/src/utils/longTasksUtils.d.ts +1 -1
  157. package/lib/typescript/core/src/utils/longTasksUtils.d.ts.map +1 -1
  158. package/lib/typescript/core/src/utils/singletonUtils.d.ts +2 -0
  159. package/lib/typescript/core/src/utils/singletonUtils.d.ts.map +1 -0
  160. package/lib/typescript/core/src/version.d.ts +1 -1
  161. package/lib/typescript/core/src/version.d.ts.map +1 -1
  162. package/lib/typescript/react-navigation/src/index.d.ts +2 -2
  163. package/lib/typescript/react-navigation/src/index.d.ts.map +1 -1
  164. package/lib/typescript/react-navigation/src/rum/instrumentation/DdRumReactNavigationTracking.d.ts +41 -24
  165. package/lib/typescript/react-navigation/src/rum/instrumentation/DdRumReactNavigationTracking.d.ts.map +1 -1
  166. package/lib/typescript/react-navigation/src/rum/instrumentation/utils.d.ts +13 -0
  167. package/lib/typescript/react-navigation/src/rum/instrumentation/utils.d.ts.map +1 -0
  168. package/package.json +3 -3
  169. package/src/__tests__/rum/instrumentation/DdRumReactNavigationTracking.test.tsx +147 -14
  170. package/src/index.tsx +12 -2
  171. package/src/rum/instrumentation/DdRumReactNavigationTracking.tsx +168 -101
  172. package/src/rum/instrumentation/utils.ts +28 -0
  173. package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts +0 -376
  174. package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts.map +0 -1
  175. package/lib/typescript/core/src/ProxyConfiguration.d.ts.map +0 -1
  176. package/lib/typescript/core/src/SdkVerbosity.d.ts.map +0 -1
  177. package/lib/typescript/core/src/TrackingConsent.d.ts.map +0 -1
  178. package/lib/typescript/core/src/rum/DdAttributes.d.ts.map +0 -1
  179. package/lib/typescript/core/src/rum/sessionId/sessionIdHelper.d.ts +0 -4
  180. package/lib/typescript/core/src/rum/sessionId/sessionIdHelper.d.ts.map +0 -1
  181. package/lib/typescript/core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts +0 -34
  182. package/lib/typescript/core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts.map +0 -1
  183. package/lib/typescript/core/src/utils/argsUtils.d.ts +0 -8
  184. package/lib/typescript/core/src/utils/argsUtils.d.ts.map +0 -1
  185. package/lib/typescript/core/src/utils/errorUtils.d.ts.map +0 -1
  186. /package/lib/typescript/core/src/{rum/DdAttributes.d.ts → DdAttributes.d.ts} +0 -0
  187. /package/lib/typescript/core/src/{ProxyConfiguration.d.ts → config/types/ProxyConfiguration.d.ts} +0 -0
  188. /package/lib/typescript/core/src/{SdkVerbosity.d.ts → config/types/SdkVerbosity.d.ts} +0 -0
  189. /package/lib/typescript/core/src/{TrackingConsent.d.ts → config/types/TrackingConsent.d.ts} +0 -0
@@ -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,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,M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AK,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;IAEF,KAAK,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAcpE;IAEF;;;OAGG;IACH,OAAO,CAAC,gCAAgC,CAStC;IAEF,OAAO,CAAC,uBAAuB,CAQ7B;IAEF,OAAO,CAAC,eAAe,CAQrB;IAEF,OAAO,CAAC,GAAG,CAiCT;IAEF,OAAO,CAAC,YAAY,CA4DlB;IAEF,sBAAsB,CAAC,cAAc,EAAE,cAAc;IAIrD,wBAAwB;CAG3B;AAED,eAAO,MAAM,MAAM,eAAsB,CAAC"}
1
+ {"version":3,"file":"DdLogs.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/DdLogs.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,UAAU,CAAC;AAI5D,OAAO,KAAK,EACR,UAAU,EACV,YAAY,EACZ,qBAAqB,EAGxB,MAAM,SAAS,CAAC;AAuBjB,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;IAEF,KAAK,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAcpE;IAEF;;;OAGG;IACH,OAAO,CAAC,gCAAgC,CAStC;IAEF,OAAO,CAAC,uBAAuB,CAQ7B;IAEF,OAAO,CAAC,eAAe,CAQrB;IAEF,OAAO,CAAC,GAAG,CA+BT;IAEF,OAAO,CAAC,YAAY,CA8DlB;IAEF,sBAAsB,CAAC,cAAc,EAAE,cAAc;IAIrD,wBAAwB;CAG3B;AAED,eAAO,MAAM,MAAM,eAA4D,CAAC"}
@@ -1,11 +1,12 @@
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,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,C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MAAM,SAAS,GAAG;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AAE/D,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,EAAE,MAAM;IACf,SAAS,CAAC,EAAE,MAAM;IAClB,YAAY,CAAC,EAAE,MAAM;IACrB,UAAU,CAAC,EAAE,MAAM;IACnB,OAAO,CAAC,EAAE,MAAM;IAChB,WAAW,CAAC,EAAE,MAAM;IACpB,MAAM,CAAC,EAAE,WAAW;CACvB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { DdSdkNativeConfiguration } from './config/features/CoreConfigurationNative';
1
2
  import type { Spec as NativeDdLogs } from './specs/NativeDdLogs';
2
3
  import type { Spec as NativeDdRum } from './specs/NativeDdRum';
3
4
  import type { Spec as NativeDdSdk } from './specs/NativeDdSdk';
@@ -14,20 +15,6 @@ export type DdNativeLogsType = NativeDdLogs;
14
15
  * The entry point to use Datadog's Trace feature.
15
16
  */
16
17
  export type DdNativeTraceType = NativeDdTrace;
17
- /**
18
- * A configuration object to initialize Datadog's features.
19
- */
20
- export declare class DdNativeSdkConfiguration {
21
- readonly clientToken: string;
22
- readonly env: string;
23
- readonly applicationId: string;
24
- readonly nativeCrashReportEnabled: boolean;
25
- readonly sampleRate: number;
26
- readonly site: string;
27
- readonly trackingConsent: string;
28
- readonly additionalConfiguration: object;
29
- constructor(clientToken: string, env: string, applicationId: string, nativeCrashReportEnabled: boolean, sampleRate: number, site: string, trackingConsent: string, additionalConfiguration: object);
30
- }
31
18
  /**
32
19
  * The entry point to initialize Datadog's features.
33
20
  */
@@ -36,7 +23,7 @@ export interface DdNativeSdkType extends NativeDdSdk {
36
23
  * Initializes Datadog's features.
37
24
  * @param configuration: The configuration to use.
38
25
  */
39
- initialize(configuration: DdNativeSdkConfiguration): Promise<void>;
26
+ initialize(configuration: DdSdkNativeConfiguration): Promise<void>;
40
27
  }
41
28
  type ActionType = 'TAP' | 'SCROLL' | 'SWIPE' | 'BACK' | 'CUSTOM';
42
29
  type ResourceKind = 'image' | 'xhr' | 'beacon' | 'css' | 'document' | 'fetch' | 'font' | 'js' | 'media' | 'other' | 'native';
@@ -1 +1 @@
1
- {"version":3,"file":"nativeModulesTypes.d.ts","sourceRoot":"","sources":["../../../../../core/src/nativeModulesTypes.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAE9C;;GAEG;AACH,qBAAa,wBAAwB;IAE7B,QAAQ,CAAC,WAAW,EAAE,MAAM;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,QAAQ,CAAC,aAAa,EAAE,MAAM;IAC9B,QAAQ,CAAC,wBAAwB,EAAE,OAAO;IAC1C,QAAQ,CAAC,UAAU,EAAE,MAAM;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,QAA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CACpB"}
@@ -1,11 +1,13 @@
1
1
  import type { GestureResponderEvent } from 'react-native';
2
+ import type { Attributes } from '../sdk/AttributesSingleton/types';
3
+ import type { ErrorSource, FeatureOperationFailure } from '../types';
2
4
  import type { TimeProvider } from '../utils/time-provider/TimeProvider';
3
5
  import type { ActionEventMapper } from './eventMappers/actionEventMapper';
4
6
  import type { ErrorEventMapper } from './eventMappers/errorEventMapper';
5
7
  import type { ResourceEventMapper } from './eventMappers/resourceEventMapper';
6
8
  import type { DatadogTracingContext } from './instrumentation/resourceTracking/distributedTracing/DatadogTracingContext';
7
9
  import { DatadogTracingIdentifier } from './instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier';
8
- import type { ErrorSource, DdRumType, RumActionType, ResourceKind, FirstPartyHost, PropagatorType } from './types';
10
+ import type { DdRumType, FirstPartyHost, PropagatorType, ResourceKind, RumActionType } from './types';
9
11
  declare class DdRumWrapper implements DdRumType {
10
12
  private nativeRum;
11
13
  private lastActionData?;
@@ -22,12 +24,19 @@ declare class DdRumWrapper implements DdRumType {
22
24
  context?: object,
23
25
  timestampMs?: number
24
26
  ] | [context?: object, timestampMs?: number]) => Promise<void>;
27
+ startFeatureOperation(name: string, operationKey: string | null, attributes: object): Promise<void>;
28
+ succeedFeatureOperation(name: string, operationKey: string | null, attributes: object): Promise<void>;
29
+ failFeatureOperation(name: string, operationKey: string | null, reason: FeatureOperationFailure, attributes: object): Promise<void>;
25
30
  setTimeProvider: (timeProvider: TimeProvider) => void;
26
31
  addAction: (type: RumActionType, name: string, context?: object, timestampMs?: number, actionContext?: GestureResponderEvent) => Promise<void>;
27
32
  startResource: (key: string, method: string, url: string, context?: object, timestampMs?: number) => Promise<void>;
28
33
  stopResource: (key: string, statusCode: number, kind: ResourceKind, size?: number, context?: object, timestampMs?: number, resourceContext?: XMLHttpRequest) => Promise<void>;
29
34
  addError: (message: string, source: ErrorSource, stacktrace: string, context?: object, timestampMs?: number, fingerprint?: string) => Promise<void>;
30
35
  addTiming: (name: string) => Promise<void>;
36
+ addViewAttribute: (key: string, value: unknown) => Promise<void>;
37
+ removeViewAttribute: (key: string) => Promise<void>;
38
+ addViewAttributes: (attributes: Attributes) => Promise<void>;
39
+ removeViewAttributes: (keys: string[]) => Promise<void>;
31
40
  addViewLoadingTime: (overwrite: boolean) => Promise<void>;
32
41
  stopSession: () => Promise<void>;
33
42
  addFeatureFlagEvaluation: (name: string, value: unknown) => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"DdRum.d.ts","sourceRoot":"","sources":["../../../../../../core/src/rum/DdRum.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAW1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAIxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6EAA6E,CAAC;AACzH,OAAO,EAAE,wBAAwB,EAAE,MAAM,gFAAgF,CAAC;AAW1H,OAAO,KAAK,EACR,WAAW,EACX,SAAS,EACT,aAAa,EACb,YAAY,EACZ,cAAc,EACd,cAAc,EACjB,MAAM,SAAS,CAAC;AAIjB,cAAM,YAAa,YAAW,SAAS;IAEnC,OAAO,CAAC,SAAS,CACJ;IACb,OAAO,CAAC,cAAc,CAAC,CAAwC;IAC/D,OAAO,CAAC,gBAAgB,CAAuC;IAC/D,OAAO,CAAC,mBAAmB,CAA0C;IACrE,OAAO,CAAC,iBAAiB,CAAwC;IACjE,OAAO,CAAC,YAAY,CAA2C;IAE/D,SAAS,QACA,MAAM,QACL,MAAM,YACH,MAAM,gBACF,MAAM,KACpB,QAAQ,IAAI,CAAC,CAad;IAEF,QAAQ,QACC,MAAM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AoB,CAiC1B;IAEF,OAAO,CAAC,2BAA2B,CAkDjC;CACL;AAiCD,eAAO,MAAM,KAAK,cAA0D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { AdditionalEventDataForMapper } from '../../sdk/EventMappers/EventMapper';
2
2
  import { EventMapper } from '../../sdk/EventMappers/EventMapper';
3
- import type { ErrorSource } from '../types';
3
+ import type { ErrorSource } from '../../types';
4
4
  type RawError = {
5
5
  message: string;
6
6
  source: ErrorSource;
@@ -1 +1 @@
1
- {"version":3,"file":"errorEventMapper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/eventMappers/errorEventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,KAAK,QAAQ,GAAG;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,UAAU,GAAG,QAAQ,GAAG,4BAA4B,CAAC;AAE1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK,UAAU,GAAG,IAAI,CAAC;AAExE,eAAO,MAAM,wBAAwB,gBACpB,gBAAgB,GAAG,SAAS,mDAOxC,CAAC"}
1
+ {"version":3,"file":"errorEventMapper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/eventMappers/errorEventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,KAAK,QAAQ,GAAG;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,UAAU,GAAG,QAAQ,GAAG,4BAA4B,CAAC;AAE1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK,UAAU,GAAG,IAAI,CAAC;AAExE,eAAO,MAAM,wBAAwB,gBACpB,gBAAgB,GAAG,SAAS,mDAOxC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const getCachedSessionId: () => string | undefined;
2
+ export declare const setCachedSessionId: (sessionId: string) => void;
3
+ export declare const clearCachedSessionId: () => void;
4
+ export declare const getCachedUserId: () => string | undefined;
5
+ export declare const setCachedUserId: (userId: string) => void;
6
+ export declare const clearCachedUserId: () => void;
7
+ export declare const getCachedAccountId: () => string | undefined;
8
+ export declare const setCachedAccountId: (accountId: string) => void;
9
+ export declare const clearCachedAccountId: () => void;
10
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../../core/src/rum/helper.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,kBAAkB,0BAE9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,SAEnD,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAEhC,CAAC;AAEF,eAAO,MAAM,eAAe,0BAE3B,CAAC;AAEF,eAAO,MAAM,eAAe,WAAY,MAAM,SAE7C,CAAC;AAEF,eAAO,MAAM,iBAAiB,YAE7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,0BAE9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,SAEnD,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAEhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DdRumErrorTracking.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/instrumentation/DdRumErrorTracking.tsx"],"names":[],"mappings":"AAsBA;;GAEG;AACH,qBAAa,kBAAkB;IAC3B,OAAO,CAAC,MAAM,CAAC,UAAU,CAAS;IAElC,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAS;IAG/C,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAiE;IAGnG,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAiC;IAEnE;;OAEG;IACH,MAAM,CAAC,aAAa,IAAI,IAAI;IA8B5B,MAAM,CAAC,aAAa,UAAW,GAAG,YAAY,OAAO,KAAG,IAAI,CAuB1D;IAEF,MAAM,CAAC,cAAc,cAAe,OAAO,EAAE,KAAG,IAAI,CA2ClD;IAEF,OAAO,CAAC,MAAM,CAAC,WAAW,CAsBxB;CACL"}
1
+ {"version":3,"file":"DdRumErrorTracking.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/instrumentation/DdRumErrorTracking.tsx"],"names":[],"mappings":"AAsBA;;GAEG;AACH,qBAAa,kBAAkB;IAC3B,OAAO,CAAC,MAAM,CAAC,UAAU,CAAS;IAElC,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAS;IAG/C,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAiE;IAGnG,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAiC;IAEnE;;OAEG;IACH,MAAM,CAAC,aAAa,IAAI,IAAI;IA8B5B,MAAM,CAAC,aAAa,UAAW,GAAG,YAAY,OAAO,KAAG,IAAI,CAsB1D;IAEF,MAAM,CAAC,cAAc,cAAe,OAAO,EAAE,KAAG,IAAI,CAyClD;IAEF,OAAO,CAAC,MAAM,CAAC,WAAW,CAOxB;CACL"}
@@ -16,16 +16,15 @@ type TargetObject = {
16
16
  accessibilityLabel: string[];
17
17
  [key: string]: any;
18
18
  };
19
- export declare class DdBabelInteractionTracking {
20
- private static instance;
21
- static config: BabelConfig;
19
+ declare class BabelInteractionTracking {
20
+ config: BabelConfig;
22
21
  private timeProvider;
23
22
  private telemetrySent;
24
23
  private ddRum;
25
24
  isInitialized: boolean;
26
- private constructor();
27
- static getInstance(ddRum?: typeof DdRum): DdBabelInteractionTracking;
28
- static getTelemetryConfig(): {
25
+ getInstance(): BabelInteractionTracking;
26
+ attachRumInstance(ddRum: typeof DdRum): void;
27
+ getTelemetryConfig(): {
29
28
  babel_plugin: {
30
29
  enabled: boolean;
31
30
  track_interactions: boolean;
@@ -34,5 +33,6 @@ export declare class DdBabelInteractionTracking {
34
33
  private getTargetName;
35
34
  wrapRumAction(func: (...args: any[]) => any, action: RumActionType, targetObject: TargetObject): (...args: any[]) => any;
36
35
  }
36
+ export declare const DdBabelInteractionTracking: BabelInteractionTracking;
37
37
  export {};
38
38
  //# sourceMappingURL=DdBabelInteractionTracking.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DdBabelInteractionTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAQjD,KAAK,WAAW,GAAG;IACf,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,KAAK,YAAY,GAAG;IAChB,UAAU,EAAE,CAAC,MAAM,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC;IACzC,OAAO,EAAE;QAAE,UAAU,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;IACzD,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAC;AAEF,qBAAa,0BAA0B;IACnC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA2C;IAElE,MAAM,CAAC,MAAM,EAAE,WAAW,CAGxB;IAEF,OAAO,CAAC,YAAY,CAA2C;IAE/D,OAAO,CAAC,aAAa,CAAkB;IAEvC,OAAO,CAAC,KAAK,CAA6B;IAE1C,aAAa,EAAE,OAAO,CAAS;IAE/B,OAAO;IAYP,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK;IAUvC,MAAM,CAAC,kBAAkB;;;;;;IAUzB,OAAO,CAAC,aAAa;IAqDrB,aAAa,CACT,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC7B,MAAM,EAAE,aAAa,EACrB,YAAY,EAAE,YAAY,GAC3B,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG;CAwC7B"}
1
+ {"version":3,"file":"DdBabelInteractionTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMjD,KAAK,WAAW,GAAG;IACf,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,KAAK,YAAY,GAAG;IAChB,UAAU,EAAE,CAAC,MAAM,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC;IACzC,OAAO,EAAE;QAAE,UAAU,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;IACzD,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAC;AAEF,cAAM,wBAAwB;IAC1B,MAAM,EAAE,WAAW,CAGjB;IAEF,OAAO,CAAC,YAAY,CAA2C;IAE/D,OAAO,CAAC,aAAa,CAAkB;IAEvC,OAAO,CAAC,KAAK,CAA6B;IAE1C,aAAa,EAAE,OAAO,CAAS;IAE/B,WAAW;IAIX,iBAAiB,CAAC,KAAK,EAAE,OAAO,KAAK;IAKrC,kBAAkB;;;;;;IASlB,OAAO,CAAC,aAAa;IAqDrB,aAAa,CACT,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC7B,MAAM,EAAE,aAAa,EACrB,YAAY,EAAE,YAAY,GAC3B,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG;CAsC7B;AAED,eAAO,MAAM,0BAA0B,0BAGtC,CAAC"}
@@ -2,6 +2,8 @@ import type { DdEventsInterceptorOptions } from './DdEventsInterceptor';
2
2
  /**
3
3
  * Provides RUM auto-instrumentation feature to track user interaction as RUM events.
4
4
  * For now we are only covering the "onPress" events.
5
+ *
6
+ * @deprecated since 3.0.0 – Use `@datadog/mobile-react-native-babel-plugin` instead.
5
7
  */
6
8
  export declare class DdRumUserInteractionTracking {
7
9
  private static isTracking;
@@ -15,8 +17,13 @@ export declare class DdRumUserInteractionTracking {
15
17
  * Starts tracking user interactions and sends a RUM Action event every time a new interaction was detected.
16
18
  * Please note that we are only considering as valid - for - tracking only the user interactions that have
17
19
  * a visible output (either an UI state change or a Resource request)
20
+ *
21
+ * @deprecated since version 3.0.0
18
22
  */
19
23
  static startTracking(options: DdEventsInterceptorOptions): void;
24
+ /**
25
+ * @deprecated since version 3.0.0
26
+ */
20
27
  static stopTracking(): void;
21
28
  }
22
29
  //# sourceMappingURL=DdRumUserInteractionTracking.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DdRumUserInteractionTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAOxE;;;GAGG;AACH,qBAAa,4BAA4B;IACrC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAS;IAClC,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAkD;IAClF,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAuB;IAC3D,OAAO,CAAC,MAAM,CAAC,YAAY,CAAc;IACzC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAQ;IAClC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAQ;IAErC,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAuBvC;IAEF;;;;OAIG;IACH,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,0BAA0B,GAAG,IAAI;IAgG/D,MAAM,CAAC,YAAY;CActB"}
1
+ {"version":3,"file":"DdRumUserInteractionTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAOxE;;;;;GAKG;AACH,qBAAa,4BAA4B;IACrC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAS;IAClC,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAkD;IAClF,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAuB;IAC3D,OAAO,CAAC,MAAM,CAAC,YAAY,CAAc;IACzC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAQ;IAClC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAQ;IAErC,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAuBvC;IAEF;;;;;;OAMG;IACH,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,0BAA0B,GAAG,IAAI;IAsG/D;;OAEG;IACH,MAAM,CAAC,YAAY;CActB"}
@@ -1,17 +1,23 @@
1
+ import BigInt from 'big-integer';
1
2
  import type { FirstPartyHost } from '../../types';
2
3
  /**
3
4
  * Provides RUM auto-instrumentation feature to track resources (fetch, XHR, axios) as RUM events.
4
5
  */
5
- export declare class DdRumResourceTracking {
6
- private static isTracking;
7
- private static requestProxy;
6
+ declare class RumResourceTracking {
7
+ private _isTracking;
8
+ private _requestProxy;
9
+ private _maxSampledTraceId;
10
+ get isTracking(): boolean;
11
+ get maxSampledTraceId(): BigInt.BigInteger;
8
12
  /**
9
13
  * Starts tracking resources and sends a RUM Resource event every time a network request is detected.
10
14
  */
11
- static startTracking({ tracingSamplingRate, firstPartyHosts }: {
12
- tracingSamplingRate: number;
15
+ startTracking({ resourceTraceSampleRate, firstPartyHosts }: {
16
+ resourceTraceSampleRate: number;
13
17
  firstPartyHosts: FirstPartyHost[];
14
18
  }): void;
15
- static stopTracking(): void;
19
+ stopTracking(): void;
16
20
  }
21
+ export declare const DdRumResourceTracking: RumResourceTracking;
22
+ export {};
17
23
  //# sourceMappingURL=DdRumResourceTracking.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DdRumResourceTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAQlD;;GAEG;AACH,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,MAAM,CAAC,UAAU,CAAS;IAClC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAsB;IAEjD;;OAEG;IACH,MAAM,CAAC,aAAa,CAAC,EACjB,mBAAmB,EACnB,eAAe,EAClB,EAAE;QACC,mBAAmB,EAAE,MAAM,CAAC;QAC5B,eAAe,EAAE,cAAc,EAAE,CAAC;KACrC,GAAG,IAAI;IA4BR,MAAM,CAAC,YAAY,IAAI,IAAI;CAS9B"}
1
+ {"version":3,"file":"DdRumResourceTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.tsx"],"names":[],"mappings":"AAMA,OAAO,MAAM,MAAM,aAAa,CAAC;AAKjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAUlD;;GAEG;AACH,cAAM,mBAAmB;IACrB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAA6B;IAClD,OAAO,CAAC,kBAAkB,CAAkC;IAE5D,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,IAAI,iBAAiB,IAAI,MAAM,CAAC,UAAU,CAEzC;IAED;;OAEG;IACH,aAAa,CAAC,EACV,uBAAuB,EACvB,eAAe,EAClB,EAAE;QACC,uBAAuB,EAAE,MAAM,CAAC;QAChC,eAAe,EAAE,cAAc,EAAE,CAAC;KACrC,GAAG,IAAI;IA6BR,YAAY,IAAI,IAAI;CAUvB;AAED,eAAO,MAAM,qBAAqB,qBAGjC,CAAC"}
@@ -41,5 +41,6 @@ export declare class DatadogTracingContext {
41
41
  * @param inject a callback that is called for each attribute that should be added to your RUM Resource context.
42
42
  */
43
43
  injectRumResourceContext(inject: (attribute: string, value: string | number) => void): void;
44
+ private processHeaders;
44
45
  }
45
46
  //# sourceMappingURL=DatadogTracingContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatadogTracingContext.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;GAGG;AACH,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAsC;IACxE,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAkC;IACrE,QAAQ,CAAC,OAAO,CAAC,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,MAAM,CAAC,EAAE,wBAAwB,CAAC;gBAGvC,cAAc,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,EACnD,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAChD,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAUrC;;;OAGG;IACH,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAM9C;;;OAGG;IACH,2BAA2B,IAAI;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE;IAIlE;;;OAGG;IACH,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAIxD;;;OAGG;IACH,uBAAuB,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI;IAMvE;;;OAGG;IACH,wBAAwB,CACpB,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI;CAMlE"}
1
+ {"version":3,"file":"DatadogTracingContext.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG3D;;;GAGG;AACH,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAsC;IACxE,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAkC;IACrE,QAAQ,CAAC,OAAO,CAAC,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,MAAM,CAAC,EAAE,wBAAwB,CAAC;gBAGvC,cAAc,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,EACnD,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAChD,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAUrC;;;OAGG;IACH,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAM9C;;;OAGG;IACH,2BAA2B,IAAI;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE;IAIlE;;;OAGG;IACH,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAIxD;;;OAGG;IACH,uBAAuB,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI;IAMvE;;;OAGG;IACH,wBAAwB,CACpB,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI;IAO/D,OAAO,CAAC,cAAc;CAmBzB"}