@datadog/mobile-react-native-code-push 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 (176) hide show
  1. package/lib/commonjs/index.js +18 -11
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/module/index.js +19 -12
  4. package/lib/module/index.js.map +1 -1
  5. package/lib/typescript/codepush/src/index.d.ts +2 -2
  6. package/lib/typescript/codepush/src/index.d.ts.map +1 -1
  7. package/lib/typescript/core/src/DdAttributes.d.ts.map +1 -0
  8. package/lib/typescript/core/src/DdSdkReactNative.d.ts +49 -12
  9. package/lib/typescript/core/src/DdSdkReactNative.d.ts.map +1 -1
  10. package/lib/typescript/core/src/InternalLog.d.ts +1 -1
  11. package/lib/typescript/core/src/InternalLog.d.ts.map +1 -1
  12. package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts +12 -0
  13. package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts.map +1 -0
  14. package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts +17 -0
  15. package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts.map +1 -0
  16. package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts +52 -0
  17. package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts.map +1 -0
  18. package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts +60 -0
  19. package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts.map +1 -0
  20. package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts +47 -0
  21. package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts.map +1 -0
  22. package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts +5 -0
  23. package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts.map +1 -0
  24. package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts +52 -0
  25. package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts.map +1 -0
  26. package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts +90 -0
  27. package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts.map +1 -0
  28. package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts +54 -0
  29. package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts.map +1 -0
  30. package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts +17 -0
  31. package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts.map +1 -0
  32. package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts +24 -0
  33. package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts.map +1 -0
  34. package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts +6 -0
  35. package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts.map +1 -0
  36. package/lib/typescript/core/src/config/features/RumConfiguration.d.ts +66 -0
  37. package/lib/typescript/core/src/config/features/RumConfiguration.d.ts.map +1 -0
  38. package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts +131 -0
  39. package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts.map +1 -0
  40. package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts +25 -0
  41. package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts.map +1 -0
  42. package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts +10 -0
  43. package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts.map +1 -0
  44. package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts +11 -0
  45. package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts.map +1 -0
  46. package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts +4 -0
  47. package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts.map +1 -0
  48. package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts +18 -0
  49. package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts.map +1 -0
  50. package/lib/typescript/core/src/config/types/BatchSize.d.ts +19 -0
  51. package/lib/typescript/core/src/config/types/BatchSize.d.ts.map +1 -0
  52. package/lib/typescript/core/src/config/types/InitializationMode.d.ts +5 -0
  53. package/lib/typescript/core/src/config/types/InitializationMode.d.ts.map +1 -0
  54. package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts +2 -0
  55. package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts.map +1 -0
  56. package/lib/typescript/core/src/config/types/ProxyConfiguration.d.ts.map +1 -0
  57. package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts.map +1 -0
  58. package/lib/typescript/core/src/config/types/TrackingConsent.d.ts.map +1 -0
  59. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts +18 -0
  60. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts.map +1 -0
  61. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts +7 -0
  62. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts.map +1 -0
  63. package/lib/typescript/core/src/config/types/index.d.ts +10 -0
  64. package/lib/typescript/core/src/config/types/index.d.ts.map +1 -0
  65. package/lib/typescript/core/src/index.d.ts +20 -9
  66. package/lib/typescript/core/src/index.d.ts.map +1 -1
  67. package/lib/typescript/core/src/logs/DdLogs.d.ts +2 -1
  68. package/lib/typescript/core/src/logs/DdLogs.d.ts.map +1 -1
  69. package/lib/typescript/core/src/logs/eventMapper.d.ts +3 -2
  70. package/lib/typescript/core/src/logs/eventMapper.d.ts.map +1 -1
  71. package/lib/typescript/core/src/logs/types.d.ts +1 -16
  72. package/lib/typescript/core/src/logs/types.d.ts.map +1 -1
  73. package/lib/typescript/core/src/nativeModulesTypes.d.ts +2 -15
  74. package/lib/typescript/core/src/nativeModulesTypes.d.ts.map +1 -1
  75. package/lib/typescript/core/src/rum/DdRum.d.ts +10 -1
  76. package/lib/typescript/core/src/rum/DdRum.d.ts.map +1 -1
  77. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts +1 -1
  78. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts.map +1 -1
  79. package/lib/typescript/core/src/rum/helper.d.ts +10 -0
  80. package/lib/typescript/core/src/rum/helper.d.ts.map +1 -0
  81. package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts.map +1 -1
  82. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts +6 -6
  83. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts.map +1 -1
  84. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts +7 -0
  85. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts.map +1 -1
  86. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +12 -6
  87. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -1
  88. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts +1 -0
  89. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts.map +1 -1
  90. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts +8 -0
  91. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts.map +1 -1
  92. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts +5 -17
  93. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts.map +1 -1
  94. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts +20 -0
  95. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts.map +1 -0
  96. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +3 -24
  97. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts.map +1 -1
  98. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts +12 -0
  99. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts.map +1 -0
  100. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts +24 -0
  101. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts.map +1 -0
  102. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +2 -1
  103. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts.map +1 -1
  104. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts.map +1 -1
  105. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +1 -1
  106. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts.map +1 -1
  107. package/lib/typescript/core/src/rum/types.d.ts +47 -7
  108. package/lib/typescript/core/src/rum/types.d.ts.map +1 -1
  109. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts +15 -0
  110. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts.map +1 -0
  111. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts +6 -0
  112. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts.map +1 -0
  113. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts +13 -0
  114. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts.map +1 -0
  115. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts +33 -0
  116. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts.map +1 -0
  117. package/lib/typescript/core/src/{utils → sdk/AttributesEncoding}/errorUtils.d.ts +4 -4
  118. package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts.map +1 -0
  119. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts +17 -0
  120. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts.map +1 -0
  121. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts +21 -0
  122. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts.map +1 -0
  123. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts +7 -0
  124. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts.map +1 -0
  125. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts +5 -1
  126. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts.map +1 -1
  127. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts +4 -3
  128. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts.map +1 -1
  129. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts +9 -0
  130. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts.map +1 -0
  131. package/lib/typescript/core/src/sdk/DdSdk.d.ts +2 -3
  132. package/lib/typescript/core/src/sdk/DdSdk.d.ts.map +1 -1
  133. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts +39 -0
  134. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts.map +1 -0
  135. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts +3 -1
  136. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts.map +1 -1
  137. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts +3 -3
  138. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts.map +1 -1
  139. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts +2 -1
  140. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts.map +1 -1
  141. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts +1 -2
  142. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts.map +1 -1
  143. package/lib/typescript/core/src/specs/NativeDdRum.d.ts +45 -0
  144. package/lib/typescript/core/src/specs/NativeDdRum.d.ts.map +1 -1
  145. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts +34 -6
  146. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts.map +1 -1
  147. package/lib/typescript/core/src/trace/DdTrace.d.ts +1 -2
  148. package/lib/typescript/core/src/trace/DdTrace.d.ts.map +1 -1
  149. package/lib/typescript/core/src/types.d.ts +74 -92
  150. package/lib/typescript/core/src/types.d.ts.map +1 -1
  151. package/lib/typescript/core/src/utils/longTasksUtils.d.ts +1 -1
  152. package/lib/typescript/core/src/utils/longTasksUtils.d.ts.map +1 -1
  153. package/lib/typescript/core/src/utils/singletonUtils.d.ts +2 -0
  154. package/lib/typescript/core/src/utils/singletonUtils.d.ts.map +1 -0
  155. package/lib/typescript/core/src/version.d.ts +1 -1
  156. package/lib/typescript/core/src/version.d.ts.map +1 -1
  157. package/package.json +3 -3
  158. package/src/__tests__/index.test.tsx +106 -75
  159. package/src/index.ts +35 -17
  160. package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts +0 -376
  161. package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts.map +0 -1
  162. package/lib/typescript/core/src/ProxyConfiguration.d.ts.map +0 -1
  163. package/lib/typescript/core/src/SdkVerbosity.d.ts.map +0 -1
  164. package/lib/typescript/core/src/TrackingConsent.d.ts.map +0 -1
  165. package/lib/typescript/core/src/rum/DdAttributes.d.ts.map +0 -1
  166. package/lib/typescript/core/src/rum/sessionId/sessionIdHelper.d.ts +0 -4
  167. package/lib/typescript/core/src/rum/sessionId/sessionIdHelper.d.ts.map +0 -1
  168. package/lib/typescript/core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts +0 -34
  169. package/lib/typescript/core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts.map +0 -1
  170. package/lib/typescript/core/src/utils/argsUtils.d.ts +0 -8
  171. package/lib/typescript/core/src/utils/argsUtils.d.ts.map +0 -1
  172. package/lib/typescript/core/src/utils/errorUtils.d.ts.map +0 -1
  173. /package/lib/typescript/core/src/{rum/DdAttributes.d.ts → DdAttributes.d.ts} +0 -0
  174. /package/lib/typescript/core/src/{ProxyConfiguration.d.ts → config/types/ProxyConfiguration.d.ts} +0 -0
  175. /package/lib/typescript/core/src/{SdkVerbosity.d.ts → config/types/SdkVerbosity.d.ts} +0 -0
  176. /package/lib/typescript/core/src/{TrackingConsent.d.ts → config/types/TrackingConsent.d.ts} +0 -0
@@ -35,17 +35,24 @@ const initializeWithCodepushVersion = async configuration => {
35
35
  };
36
36
  const buildPartialConfiguration = configuration => {
37
37
  const partialConfiguration = {
38
- trackErrors: configuration.trackErrors,
39
- trackResources: configuration.trackResources,
40
- trackInteractions: configuration.trackInteractions,
41
- firstPartyHosts: configuration.firstPartyHosts,
42
- logEventMapper: configuration.logEventMapper,
43
- errorEventMapper: configuration.errorEventMapper,
44
- resourceEventMapper: configuration.resourceEventMapper,
45
- actionEventMapper: configuration.actionEventMapper,
46
- useAccessibilityLabel: configuration.useAccessibilityLabel,
47
- resourceTracingSamplingRate: configuration.resourceTracingSamplingRate,
48
- actionNameAttribute: configuration.actionNameAttribute ?? _utils.DISCARD_PROPERTY
38
+ rumConfiguration: {
39
+ firstPartyHosts: configuration.rumConfiguration?.firstPartyHosts,
40
+ useAccessibilityLabel: configuration.rumConfiguration?.useAccessibilityLabel ?? true,
41
+ actionNameAttribute: configuration.rumConfiguration?.actionNameAttribute,
42
+ trackErrors: configuration.rumConfiguration?.trackErrors ?? false,
43
+ trackResources: configuration.rumConfiguration?.trackResources ?? false,
44
+ trackInteractions: configuration.rumConfiguration?.trackInteractions ?? false,
45
+ resourceTraceSampleRate: configuration.rumConfiguration?.resourceTraceSampleRate ?? 100,
46
+ nativeCrashReportEnabled: configuration.rumConfiguration?.nativeCrashReportEnabled ?? false,
47
+ nativeLongTaskThresholdMs: configuration.rumConfiguration?.nativeLongTaskThresholdMs ?? 200,
48
+ nativeViewTracking: configuration.rumConfiguration?.nativeViewTracking ?? false,
49
+ errorEventMapper: configuration.rumConfiguration?.errorEventMapper ?? null,
50
+ resourceEventMapper: configuration.rumConfiguration?.resourceEventMapper ?? null,
51
+ actionEventMapper: configuration.rumConfiguration?.actionEventMapper ?? null
52
+ },
53
+ logsConfiguration: {
54
+ logEventMapper: configuration.logsConfiguration?.logEventMapper ?? null
55
+ }
49
56
  };
50
57
  return (0, _utils.removeDiscardProperties)(partialConfiguration);
51
58
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_mobileReactNative","require","_reactNativeCodePush","_interopRequireDefault","_utils","e","__esModule","default","DatadogCodepush","exports","initialize","configuration","codePushUpdateMetadata","codePush","getUpdateMetadata","versionSuffix","label","DdSdkReactNative","initializeWithCodepushVersion","DatadogProvider","buildPartialConfiguration","partialConfiguration","trackErrors","trackResources","trackInteractions","firstPartyHosts","logEventMapper","errorEventMapper","resourceEventMapper","actionEventMapper","useAccessibilityLabel","resourceTracingSamplingRate","actionNameAttribute","DISCARD_PROPERTY","removeDiscardProperties","DatadogCodepushProvider","rest","DatadogProviderConfiguration"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;AAKA,IAAAA,kBAAA,GAAAC,OAAA;AASA,IAAAC,oBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AAAoE,SAAAE,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAhBpE;AACA;AACA;AACA;AACA;;AAeA;AACA;AACA;AACO,MAAMG,eAAe,GAAAC,OAAA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EAC5DxB,aAAa;EACb,GAAGyB;AACP,CAAC,KAAK;EACF;EACA;EACA,IAAIzB,aAAa,YAAY0B,+CAA4B,EAAE;IACvDnB,6BAA6B,CAACP,aAAa,CAAC;IAC5C,OAAO,IAAAQ,kCAAe,EAAC;MACnBR,aAAa,EAAES,yBAAyB,CAACT,aAAa,CAAC;MACvD,GAAGyB;IACP,CAAC,CAAC;EACN,CAAC,MAAM;IACH,OAAO,IAAAjB,kCAAe,EAAC;MAAER,aAAa;MAAE,GAAGyB;IAAK,CAAC,CAAC;EACtD;AACJ,CAAC;AAAC3B,OAAA,CAAA0B,uBAAA,GAAAA,uBAAA;AAEFA,uBAAuB,CAACzB,UAAU,GAAG,MAAMC,aAAa,IAAI;EACxD,MAAMC,sBAAsB,GAAG,MAAMC,4BAAQ,CAACC,iBAAiB,CAAC,CAAC;EACjE,IAAIF,sBAAsB,EAAE;IACxBD,aAAa,CAACI,aAAa,GAAG,YAAYH,sBAAsB,CAACI,KAAK,EAAE;EAC5E;EACAG,kCAAe,CAACT,UAAU,CAACC,aAAa,CAAC;AAC7C,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_mobileReactNative","require","_reactNativeCodePush","_interopRequireDefault","_utils","e","__esModule","default","DatadogCodepush","exports","initialize","configuration","codePushUpdateMetadata","codePush","getUpdateMetadata","versionSuffix","label","DdSdkReactNative","initializeWithCodepushVersion","DatadogProvider","buildPartialConfiguration","partialConfiguration","rumConfiguration","firstPartyHosts","useAccessibilityLabel","actionNameAttribute","trackErrors","trackResources","trackInteractions","resourceTraceSampleRate","nativeCrashReportEnabled","nativeLongTaskThresholdMs","nativeViewTracking","errorEventMapper","resourceEventMapper","actionEventMapper","logsConfiguration","logEventMapper","removeDiscardProperties","DatadogCodepushProvider","rest","DatadogProviderConfiguration"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;AAKA,IAAAA,kBAAA,GAAAC,OAAA;AASA,IAAAC,oBAAA,GAAAC,sBAAA,CAAAF,OAAA;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4BAAQ,CAACC,iBAAiB,CAAC,CAAC;EACjE,IAAIF,sBAAsB,EAAE;IACxBD,aAAa,CAACI,aAAa,GAAG,YAAYH,sBAAsB,CAACI,KAAK,EAAE;EAC5E;EACAG,kCAAe,CAACT,UAAU,CAACC,aAAa,CAAC;AAC7C,CAAC","ignoreList":[]}
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { DatadogProvider, DatadogProviderConfiguration, DdSdkReactNative } from '@datadog/mobile-react-native';
7
7
  import codePush from 'react-native-code-push';
8
- import { DISCARD_PROPERTY, removeDiscardProperties } from './utils';
8
+ import { removeDiscardProperties } from './utils';
9
9
  /**
10
10
  * Use this class instead of DdSdkReactNative to initialize the Datadog SDK when using AppCenter CodePush.
11
11
  */
@@ -27,17 +27,24 @@ const initializeWithCodepushVersion = async configuration => {
27
27
  };
28
28
  const buildPartialConfiguration = configuration => {
29
29
  const partialConfiguration = {
30
- trackErrors: configuration.trackErrors,
31
- trackResources: configuration.trackResources,
32
- trackInteractions: configuration.trackInteractions,
33
- firstPartyHosts: configuration.firstPartyHosts,
34
- logEventMapper: configuration.logEventMapper,
35
- errorEventMapper: configuration.errorEventMapper,
36
- resourceEventMapper: configuration.resourceEventMapper,
37
- actionEventMapper: configuration.actionEventMapper,
38
- useAccessibilityLabel: configuration.useAccessibilityLabel,
39
- resourceTracingSamplingRate: configuration.resourceTracingSamplingRate,
40
- actionNameAttribute: configuration.actionNameAttribute ?? DISCARD_PROPERTY
30
+ rumConfiguration: {
31
+ firstPartyHosts: configuration.rumConfiguration?.firstPartyHosts,
32
+ useAccessibilityLabel: configuration.rumConfiguration?.useAccessibilityLabel ?? true,
33
+ actionNameAttribute: configuration.rumConfiguration?.actionNameAttribute,
34
+ trackErrors: configuration.rumConfiguration?.trackErrors ?? false,
35
+ trackResources: configuration.rumConfiguration?.trackResources ?? false,
36
+ trackInteractions: configuration.rumConfiguration?.trackInteractions ?? false,
37
+ resourceTraceSampleRate: configuration.rumConfiguration?.resourceTraceSampleRate ?? 100,
38
+ nativeCrashReportEnabled: configuration.rumConfiguration?.nativeCrashReportEnabled ?? false,
39
+ nativeLongTaskThresholdMs: configuration.rumConfiguration?.nativeLongTaskThresholdMs ?? 200,
40
+ nativeViewTracking: configuration.rumConfiguration?.nativeViewTracking ?? false,
41
+ errorEventMapper: configuration.rumConfiguration?.errorEventMapper ?? null,
42
+ resourceEventMapper: configuration.rumConfiguration?.resourceEventMapper ?? null,
43
+ actionEventMapper: configuration.rumConfiguration?.actionEventMapper ?? null
44
+ },
45
+ logsConfiguration: {
46
+ logEventMapper: configuration.logsConfiguration?.logEventMapper ?? null
47
+ }
41
48
  };
42
49
  return removeDiscardProperties(partialConfiguration);
43
50
  };
@@ -1 +1 @@
1
- {"version":3,"names":["DatadogProvider","DatadogProviderConfiguration","DdSdkReactNative","codePush","DISCARD_PROPERTY","removeDiscardProperties","DatadogCodepush","initialize","configuration","codePushUpdateMetadata","getUpdateMetadata","versionSuffix","label","initializeWithCodepushVersion","buildPartialConfiguration","partialConfiguration","trackErrors","trackResources","trackInteractions","firstPartyHosts","logEventMapper","errorEventMapper","resourceEventMapper","actionEventMapper","useAccessibilityLabel","resourceTracingSamplingRate","actionNameAttribute","DatadogCodepushProvider","rest"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,SACIA,eAAe,EACfC,4BAA4B,EAC5BC,gBAAgB,QACb,8BAA8B;AAKrC,OAAOC,QAAQ,MAAM,wBAAwB;AAE7C,SAASC,gBAAgB,EAAEC,uBAAuB,QAAQ,SAAS;AAGnE;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAG;EAC3B,MAAMC,UAAUA,CACZC,aAA4C,EAC/B;IACb,MAAMC,sBAAsB,GAAG,MAAMN,QAAQ,CAACO,iBAAiB,CAAC,CAAC;IACjE,IAAID,sBAAsB,EAAE;MACxBD,aAAa,CAACG,aAAa,GAAG,YAAYF,sBAAsB,CAACG,KAAK,EAAE;IAC5E;IACA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MAAM;IACH,OAAO5B,eAAe,CAAC;MAAEQ,aAAa;MAAE,GAAGoB;IAAK,CAAC,CAAC;EACtD;AACJ,CAAC;AAEDD,uBAAuB,CAACpB,UAAU,GAAG,MAAMC,aAAa,IAAI;EACxD,MAAMC,sBAAsB,GAAG,MAAMN,QAAQ,CAACO,iBAAiB,CAAC,CAAC;EACjE,IAAID,sBAAsB,EAAE;IACxBD,aAAa,CAACG,aAAa,GAAG,YAAYF,sBAAsB,CAACG,KAAK,EAAE;EAC5E;EACAZ,eAAe,CAACO,UAAU,CAACC,aAAa,CAAC;AAC7C,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["DatadogProvider","DatadogProviderConfiguration","DdSdkReactNative","codePush","removeDiscardProperties","DatadogCodepush","initialize","configuration","codePushUpdateMetadata","getUpdateMetadata","versionSuffix","label","initializeWithCodepushVersion","buildPartialConfiguration","partialConfiguration","rumConfiguration","firstPartyHosts","useAccessibilityLabel","actionNameAttribute","trackErrors","trackResources","trackInteractions","resourceTraceSampleRate","nativeCrashReportEnabled","nativeLongTaskThresholdMs","nativeViewTracking","errorEventMapper","resourceEventMapper","actionEventMapper","logsConfiguration","logEventMapper","DatadogCodepushProvider","rest"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,SACIA,eAAe,EACfC,4BAA4B,EAC5BC,gBAAgB,QACb,8BAA8B;AAKrC,OAAOC,QAAQ,MAAM,wBAAwB;AAE7C,SAASC,uBAAuB,QAAQ,SAAS;AAGjD;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAG;EAC3B,MAAMC,UAAUA,CAACC,aAAgC,EAAiB;IAC9D,MAAMC,sBAAsB,GAAG,MAAML,QAAQ,CAACM,iBAAiB,CAAC,CAAC;IACjE,IAAID,sBAAsB,EAAE;MACxBD,aAAa,CAACG,aAAa,GAAG,YAAYF,sBAAsB,CAACG,KAAK,EAAE;IAC5E;IACA,OAAOT,gBAAgB,CAACI,UAAU,CAACC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iB,EACbrB,aAAa,CAACQ,gBAAgB,EAAEa,iBAAiB,IAAI;IAC7D,CAAC;IACDC,iBAAiB,EAAE;MACfC,cAAc,EACVvB,aAAa,CAACsB,iBAAiB,EAAEC,cAAc,IAAI;IAC3D;EACJ,CAAC;EAED,OAAO1B,uBAAuB,CAC1BU,oBACJ,CAAC;AACL,CAAC;AAED,OAAO,MAAMiB,uBAA+C,GAAGA,CAAC;EAC5DxB,aAAa;EACb,GAAGyB;AACP,CAAC,KAAK;EACF;EACA;EACA,IAAIzB,aAAa,YAAYN,4BAA4B,EAAE;IACvDW,6BAA6B,CAACL,aAAa,CAAC;IAC5C,OAAOP,eAAe,CAAC;MACnBO,aAAa,EAAEM,yBAAyB,CAACN,aAAa,CAAC;MACvD,GAAGyB;IACP,CAAC,CAAC;EACN,CAAC,MAAM;IACH,OAAOhC,eAAe,CAAC;MAAEO,aAAa;MAAE,GAAGyB;IAAK,CAAC,CAAC;EACtD;AACJ,CAAC;AAEDD,uBAAuB,CAACzB,UAAU,GAAG,MAAMC,aAAa,IAAI;EACxD,MAAMC,sBAAsB,GAAG,MAAML,QAAQ,CAACM,iBAAiB,CAAC,CAAC;EACjE,IAAID,sBAAsB,EAAE;IACxBD,aAAa,CAACG,aAAa,GAAG,YAAYF,sBAAsB,CAACG,KAAK,EAAE;EAC5E;EACAX,eAAe,CAACM,UAAU,CAACC,aAAa,CAAC;AAC7C,CAAC","ignoreList":[]}
@@ -1,10 +1,10 @@
1
1
  import { DatadogProvider } from '@datadog/mobile-react-native';
2
- import type { DdSdkReactNativeConfiguration } from '@datadog/mobile-react-native';
2
+ import type { CoreConfiguration } from '@datadog/mobile-react-native';
3
3
  /**
4
4
  * Use this class instead of DdSdkReactNative to initialize the Datadog SDK when using AppCenter CodePush.
5
5
  */
6
6
  export declare const DatadogCodepush: {
7
- initialize(configuration: DdSdkReactNativeConfiguration): Promise<void>;
7
+ initialize(configuration: CoreConfiguration): Promise<void>;
8
8
  };
9
9
  export declare const DatadogCodepushProvider: typeof DatadogProvider;
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,eAAe,EAGlB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAER,6BAA6B,EAChC,MAAM,8BAA8B,CAAC;AAMtC;;GAEG;AACH,eAAO,MAAM,eAAe;8BAEL,6BAA6B,GAC7C,QAAQ,IAAI,CAAC;CAOnB,CAAC;AAmCF,eAAO,MAAM,uBAAuB,EAAE,OAAO,eAe5C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,eAAe,EAGlB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAER,iBAAiB,EACpB,MAAM,8BAA8B,CAAC;AAMtC;;GAEG;AACH,eAAO,MAAM,eAAe;8BACQ,iBAAiB,GAAG,QAAQ,IAAI,CAAC;CAOpE,CAAC;AAuDF,eAAO,MAAM,uBAAuB,EAAE,OAAO,eAe5C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DdAttributes.d.ts","sourceRoot":"","sources":["../../../../../core/src/DdAttributes.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;IACrB;;;;OAIG;;IAGH;;;OAGG;;IAGH;;;;OAIG;;CAEN,CAAC"}
@@ -1,8 +1,9 @@
1
- import type { AutoInstrumentationConfiguration, DatadogProviderConfiguration, PartialInitializationConfiguration } from './DdSdkReactNativeConfiguration';
2
- import { DdSdkReactNativeConfiguration } from './DdSdkReactNativeConfiguration';
3
- import type { TrackingConsent } from './TrackingConsent';
1
+ import type { DatadogProviderConfiguration } from './config/DatadogProviderConfiguration';
2
+ import type { AutoInstrumentationConfiguration } from './config/async/AutoInstrumentationConfiguration';
3
+ import type { PartialInitializationConfiguration } from './config/async/PartialInitializationConfiguration';
4
+ import { CoreConfiguration } from './config/features/CoreConfiguration';
5
+ import type { TrackingConsent } from './config/types/TrackingConsent';
4
6
  import type { Attributes } from './sdk/AttributesSingleton/types';
5
- import type { UserInfo } from './sdk/UserInfoSingleton/types';
6
7
  /**
7
8
  * This class initializes the Datadog SDK, and sets up communication with the server.
8
9
  */
@@ -19,7 +20,7 @@ export declare class DdSdkReactNative {
19
20
  * @param configuration the configuration for the SDK library
20
21
  * @returns a Promise.
21
22
  */
22
- static initialize: (configuration: DdSdkReactNativeConfiguration) => Promise<void>;
23
+ static initialize: (configuration: CoreConfiguration) => Promise<void>;
23
24
  private static initializeNativeSDK;
24
25
  /**
25
26
  * FOR INTERNAL USE ONLY.
@@ -34,20 +35,28 @@ export declare class DdSdkReactNative {
34
35
  * FOR INTERNAL USE ONLY.
35
36
  */
36
37
  static _initializeFromDatadogProviderWithConfigurationAsync: (configuration: PartialInitializationConfiguration) => Promise<void>;
38
+ /**
39
+ * Adds a specific attribute to the global context attached with all future Logs, Spans and RUM.
40
+ * @param key: Key that identifies the attribute.
41
+ * @param value: Value linked to the attribute.
42
+ */
43
+ static addAttribute: (key: string, value: unknown) => Promise<void>;
44
+ /**
45
+ * Removes an attribute from the context attached with all future Logs, Spans and RUM events.
46
+ * @param key: They key associated with the attribute to be removed.
47
+ */
48
+ static removeAttribute: (key: string) => Promise<void>;
37
49
  /**
38
50
  * Adds a set of attributes to the global context attached with all future Logs, Spans and RUM events.
39
- * To remove an attribute, set it to `undefined` in a call to `setAttributes`.
40
51
  * @param attributes: The global context attributes.
41
52
  * @returns a Promise.
42
53
  */
43
- static setAttributes: (attributes: Attributes) => Promise<void>;
54
+ static addAttributes: (attributes: Attributes) => Promise<void>;
44
55
  /**
45
- * Set the user information.
46
- * @deprecated UserInfo id property is now mandatory (please user setUserInfo instead)
47
- * @param user: The user object (use builtin attributes: 'id', 'email', 'name', and/or any custom attribute).
48
- * @returns a Promise.
56
+ * Removes a set of attributes from the context attached with all future Logs, Spans and RUM events.
57
+ * @param keys: They keys associated with the attributes to be removed.
49
58
  */
50
- static setUser: (user: UserInfo) => Promise<void>;
59
+ static removeAttributes: (keys: string[]) => Promise<void>;
51
60
  /**
52
61
  * Sets the user information.
53
62
  * @param id: A mandatory unique user identifier (relevant to your business domain).
@@ -62,12 +71,40 @@ export declare class DdSdkReactNative {
62
71
  email?: string;
63
72
  extraInfo?: Record<string, unknown>;
64
73
  }) => Promise<void>;
74
+ /**
75
+ * Clears the user information.
76
+ * @returns a Promise.
77
+ */
78
+ static clearUserInfo: () => Promise<void>;
65
79
  /**
66
80
  * Set the user information.
67
81
  * @param extraUserInfo: The additional information. (To set the id, name or email please user setUserInfo).
68
82
  * @returns a Promise.
69
83
  */
70
84
  static addUserExtraInfo: (extraUserInfo: Record<string, unknown>) => Promise<void>;
85
+ /**
86
+ * Sets the account information.
87
+ * @param id: A mandatory unique account identifier (relevant to your business domain).
88
+ * @param name: The account name.
89
+ * @param extraInfo: Additional information.
90
+ * @returns a Promise.
91
+ */
92
+ static setAccountInfo: (accountInfo: {
93
+ id: string;
94
+ name?: string;
95
+ extraInfo?: Record<string, unknown>;
96
+ }) => Promise<void>;
97
+ /**
98
+ * Clears the account information.
99
+ * @returns a Promise.
100
+ */
101
+ static clearAccountInfo: () => Promise<void>;
102
+ /**
103
+ * Set the account information.
104
+ * @param extraAccountInfo: The additional information. (To set the id or name please use setAccountInfo).
105
+ * @returns a Promise.
106
+ */
107
+ static addAccountExtraInfo: (extraAccountInfo: Record<string, unknown>) => Promise<void>;
71
108
  /**
72
109
  * Set the tracking consent regarding the data collection.
73
110
  * @param trackingConsent: One of TrackingConsent values.
@@ -1 +1 @@
1
- {"version":3,"file":"DdSdkReactNative.d.ts","sourceRoot":"","sources":["../../../../../core/src/DdSdkReactNative.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACR,gCAAgC,EAEhC,4BAA4B,EAE5B,kCAAkC,EACrC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACH,6BAA6B,EAKhC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AAE,OAAO,CAAC,CAAC;KACvC,KAAG,QAAQ,IAAI,CAAC,CAQf;IAEF;;;OAGG;IACH,MAAM,CAAC,aAAa,QAAa,QAAQ,IAAI,CAAC,CAI5C;IAEF;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,kBACJ,OAAO,MAAM,EAAE,OAAO,CAAC,KACvC,QAAQ,IAAI,CAAC,CAyBd;IAEF;;;;;;OAMG;IACH,MAAM,CAAC,cAAc,gBAAuB;QACxC,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAC;KACvC,KAAG,QAAQ,IAAI,CAAC,CAQf;IAEF;;;OAGG;IACH,MAAM,CAAC,gBAAgB,QAAa,QAAQ,IAAI,CAAC,CAI/C;IAEF;;;;OAIG;IACH,MAAM,CAAC,mBAAmB,qBACJ,OAAO,MAAM,EAAE,OAAO,CAAC,KAC1C,QAAQ,IAAI,CAAC,CAyBd;IAEF;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,YAAa,eAAe,KAAG,QAAQ,IAAI,CAAC,CAGnE;IAEF;;;OAGG;IACH,MAAM,CAAC,YAAY,QAAO,QAAQ,IAAI,CAAC,CAGrC;IAEF,OAAO,CAAC,MAAM,CAAC,kBAAkB,CA6F/B;IAEF,OAAO,CAAC,MAAM,CAAC,cAAc;CAoFhC"}
@@ -1,4 +1,4 @@
1
- import { SdkVerbosity } from './SdkVerbosity';
1
+ import { SdkVerbosity } from './config/types/SdkVerbosity';
2
2
  export declare const DATADOG_MESSAGE_PREFIX = "DATADOG:";
3
3
  /**
4
4
  * /!\ DO NOT USE THIS IN YOUR APP /!\\
@@ -1 +1 @@
1
- {"version":3,"file":"InternalLog.d.ts","sourceRoot":"","sources":["../../../../../core/src/InternalLog.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,sBAAsB,aAAa,CAAC;AAEjD;;;;GAIG;AACH,qBAAa,WAAW;IACpB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAKpB;IAEH,OAAc,SAAS,EAAE,YAAY,GAAG,SAAS,CAAa;WAEhD,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,GAAG,IAAI;CA0BpE"}
1
+ {"version":3,"file":"InternalLog.d.ts","sourceRoot":"","sources":["../../../../../core/src/InternalLog.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,eAAO,MAAM,sBAAsB,aAAa,CAAC;AAEjD;;;;GAIG;AACH,qBAAa,WAAW;IACpB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAKpB;IAEH,OAAc,SAAS,EAAE,YAAY,GAAG,SAAS,CAAa;WAEhD,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,GAAG,IAAI;CA0BpE"}
@@ -0,0 +1,12 @@
1
+ import { CoreConfiguration } from './features/CoreConfiguration';
2
+ import { InitializationMode } from './types';
3
+ /**
4
+ * SDK Initialization configuration for `DatadogProvider`.
5
+ */
6
+ export declare class DatadogProviderConfiguration extends CoreConfiguration {
7
+ /**
8
+ * If set to ASYNC, the initialization will be delayed until all animations are completed.
9
+ */
10
+ initializationMode: InitializationMode;
11
+ }
12
+ //# sourceMappingURL=DatadogProviderConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatadogProviderConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../core/src/config/DatadogProviderConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,iBAAiB;IAC/D;;OAEG;IACI,kBAAkB,EAAE,kBAAkB,CAA2B;CAC3E"}
@@ -0,0 +1,17 @@
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 { PropagatorType } from '../rum/types';
5
+ import { DatadogProviderConfiguration } from './DatadogProviderConfiguration';
6
+ import type { JsonConfiguration } from './FileBasedConfiguration.type';
7
+ export declare class FileBasedConfiguration extends DatadogProviderConfiguration {
8
+ constructor(params?: {
9
+ configuration?: unknown;
10
+ errorEventMapper?: ErrorEventMapper;
11
+ resourceEventMapper?: ResourceEventMapper;
12
+ actionEventMapper?: ActionEventMapper;
13
+ });
14
+ }
15
+ export declare const getJSONConfiguration: (userSpecifiedConfiguration: unknown) => JsonConfiguration;
16
+ export declare const formatPropagatorType: (propagatorType: string) => PropagatorType;
17
+ //# sourceMappingURL=FileBasedConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileBasedConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../core/src/config/FileBasedConfiguration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAEnF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AA8BvE,qBAAa,sBAAuB,SAAQ,4BAA4B;gBACxD,MAAM,CAAC,EAAE;QACjB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;QAC1C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;KACzC;CAqEJ;AAmBD,eAAO,MAAM,oBAAoB,+BACD,OAAO,KACpC,iBAuFF,CAAC;AAuBF,eAAO,MAAM,oBAAoB,mBACb,MAAM,KACvB,cAoBF,CAAC"}
@@ -0,0 +1,52 @@
1
+ import type { FirstPartyHost } from '../rum/types';
2
+ import type { CoreConfigurationOptions } from './features/CoreConfiguration.type';
3
+ import type { BatchProcessingLevel, BatchSize, ProxyConfiguration, SdkVerbosity, TrackingConsent, UploadFrequency, VitalsUpdateFrequency } from './types';
4
+ export interface JsonConfiguration extends CoreConfigurationOptions {
5
+ clientToken: string;
6
+ env: string;
7
+ trackingConsent?: TrackingConsent;
8
+ verbosity?: SdkVerbosity;
9
+ service?: string;
10
+ site?: string;
11
+ batchSize?: BatchSize;
12
+ batchProcessingLevel?: BatchProcessingLevel;
13
+ proxyConfiguration?: ProxyConfiguration;
14
+ uploadFrequency?: UploadFrequency;
15
+ version?: string;
16
+ versionSuffix?: string;
17
+ rumConfiguration?: {
18
+ applicationId: string;
19
+ useAccessibilityLabel?: boolean;
20
+ trackInteractions?: boolean;
21
+ trackResources?: boolean;
22
+ trackErrors?: boolean;
23
+ longTaskThresholdMs?: number;
24
+ actionNameAttribute?: string;
25
+ appHangThreshold?: number;
26
+ firstPartyHosts?: FirstPartyHost[];
27
+ initialResourceThreshold?: number;
28
+ trackMemoryWarnings?: boolean;
29
+ nativeCrashReportEnabled?: boolean;
30
+ nativeLongTaskThresholdMs?: number;
31
+ nativeViewTracking?: boolean;
32
+ nativeInteractionTracking?: boolean;
33
+ customEndpoint?: string;
34
+ sessionSampleRate?: number;
35
+ resourceTraceSampleRate?: number;
36
+ trackBackgroundEvents?: boolean;
37
+ trackFrustrations?: boolean;
38
+ trackNonFatalAnrs?: boolean;
39
+ trackWatchdogTerminations?: boolean;
40
+ vitalsUpdateFrequency?: VitalsUpdateFrequency;
41
+ telemetrySampleRate?: number;
42
+ };
43
+ traceConfiguration?: {
44
+ customEndpoint?: string;
45
+ };
46
+ logsConfiguration?: {
47
+ bundleLogsWithRum?: boolean;
48
+ bundleLogsWithTraces?: boolean;
49
+ customEndpoint?: string;
50
+ };
51
+ }
52
+ //# sourceMappingURL=FileBasedConfiguration.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileBasedConfiguration.type.d.ts","sourceRoot":"","sources":["../../../../../../core/src/config/FileBasedConfiguration.type.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EACR,oBAAoB,EACpB,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,qBAAqB,EACxB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;QACnC,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAClC,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B,wBAAwB,CAAC,EAAE,OAAO,CAAC;QACnC,yBAAyB,CAAC,EAAE,MAAM,CAAC;QACnC,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,yBAAyB,CAAC,EAAE,OAAO,CAAC;QACpC,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,yBAAyB,CAAC,EAAE,OAAO,CAAC;QACpC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;QAC9C,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAChC,CAAC;IACF,kBAAkB,CAAC,EAAE;QACjB,cAAc,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,iBAAiB,CAAC,EAAE;QAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;CACL"}
@@ -0,0 +1,60 @@
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 { LogEventMapper } from '../../types';
6
+ import type { TraceConfiguration } from '../features/TraceConfiguration';
7
+ /**
8
+ * Auto Instrumentation configuration passed to DatadogProvider.
9
+ * Does not include default values.
10
+ */
11
+ export type AutoInstrumentationConfiguration = {
12
+ readonly rumConfiguration: {
13
+ readonly trackInteractions: boolean;
14
+ readonly trackResources: boolean;
15
+ readonly trackErrors: boolean;
16
+ readonly useAccessibilityLabel?: boolean;
17
+ readonly actionNameAttribute?: string;
18
+ readonly resourceTraceSampleRate?: number;
19
+ readonly nativeCrashReportEnabled?: boolean;
20
+ readonly nativeLongTaskThresholdMs?: number;
21
+ readonly nativeViewTracking?: boolean;
22
+ readonly actionEventMapper?: ActionEventMapper | null;
23
+ readonly errorEventMapper?: ErrorEventMapper | null;
24
+ readonly resourceEventMapper?: ResourceEventMapper | null;
25
+ readonly firstPartyHosts?: FirstPartyHost[];
26
+ };
27
+ readonly logsConfiguration: {
28
+ readonly logEventMapper?: LogEventMapper | null;
29
+ };
30
+ };
31
+ /**
32
+ * Parameters needed to start auto instrumentation. Includes default values.
33
+ */
34
+ export type AutoInstrumentationParameters = {
35
+ readonly rumConfiguration?: {
36
+ readonly useAccessibilityLabel: boolean;
37
+ readonly trackInteractions: boolean;
38
+ readonly trackResources: boolean;
39
+ readonly trackErrors: boolean;
40
+ readonly actionNameAttribute?: string;
41
+ readonly resourceTraceSampleRate?: number;
42
+ readonly nativeCrashReportEnabled?: boolean;
43
+ readonly nativeLongTaskThresholdMs?: number;
44
+ readonly nativeViewTracking?: boolean;
45
+ readonly actionEventMapper: ActionEventMapper | null;
46
+ readonly errorEventMapper: ErrorEventMapper | null;
47
+ readonly resourceEventMapper: ResourceEventMapper | null;
48
+ readonly firstPartyHosts: FirstPartyHost[];
49
+ };
50
+ readonly logsConfiguration?: {
51
+ readonly logEventMapper: LogEventMapper | null;
52
+ };
53
+ readonly traceConfiguration?: TraceConfiguration;
54
+ };
55
+ /**
56
+ * We could use `Proxy` instead of this function, but `Proxy` is not available on
57
+ * the older android jsc that can still be used.
58
+ */
59
+ export declare const addDefaultValuesToAutoInstrumentationConfiguration: (features: AutoInstrumentationConfiguration) => AutoInstrumentationParameters;
60
+ //# sourceMappingURL=AutoInstrumentationConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoInstrumentationConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/async/AutoInstrumentationConfiguration.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,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;GAGG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC3C,QAAQ,CAAC,gBAAgB,EAAE;QACvB,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;QACpC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;QACjC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;QAC9B,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;QACzC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;QACtC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC;QAC1C,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;QAC5C,QAAQ,CAAC,yBAAyB,CAAC,EAAE,MAAM,CAAC;QAC5C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;QACtC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;QACtD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;QAC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jD,gCAAgC,KAC3C,6BAuDF,CAAC"}
@@ -0,0 +1,47 @@
1
+ import type { AttributeEncoder } from '../../sdk/AttributesEncoding/types';
2
+ import type { BatchProcessingLevel, BatchSize, ProxyConfiguration, SdkVerbosity, TrackingConsent, UploadFrequency, VitalsUpdateFrequency } from '../types';
3
+ export type PartialInitializationConfiguration = {
4
+ readonly additionalConfiguration?: {
5
+ [k: string]: any;
6
+ };
7
+ readonly attributeEncoders?: AttributeEncoder<any>[];
8
+ readonly clientToken: string;
9
+ readonly env: string;
10
+ readonly site?: string;
11
+ readonly trackingConsent?: TrackingConsent;
12
+ readonly verbosity?: SdkVerbosity | undefined;
13
+ readonly service?: string;
14
+ readonly version?: string;
15
+ versionSuffix?: string;
16
+ readonly proxyConfiguration?: ProxyConfiguration;
17
+ readonly uploadFrequency?: UploadFrequency;
18
+ readonly batchSize?: BatchSize;
19
+ readonly batchProcessingLevel?: BatchProcessingLevel;
20
+ readonly rumConfiguration?: {
21
+ readonly applicationId: string;
22
+ readonly sessionSampleRate?: number;
23
+ readonly nativeLongTaskThresholdMs?: number;
24
+ readonly nativeCrashReportEnabled?: boolean;
25
+ readonly nativeViewTracking?: boolean;
26
+ readonly nativeInteractionTracking?: boolean;
27
+ readonly longTaskThresholdMs?: number | false;
28
+ readonly vitalsUpdateFrequency?: VitalsUpdateFrequency;
29
+ readonly trackFrustrations?: boolean;
30
+ readonly trackBackgroundEvents?: boolean;
31
+ readonly initialResourceThreshold?: number;
32
+ readonly trackMemoryWarnings?: boolean;
33
+ readonly telemetrySampleRate?: number;
34
+ readonly customEndpoint?: string;
35
+ readonly trackNonFatalAnrs?: boolean;
36
+ readonly appHangThreshold?: number;
37
+ };
38
+ readonly logsConfiguration?: {
39
+ readonly bundleLogsWithRum?: boolean;
40
+ readonly bundleLogsWithTraces?: boolean;
41
+ readonly customEndpoint?: string;
42
+ };
43
+ readonly traceConfiguration?: {
44
+ readonly customEndpoint?: string;
45
+ };
46
+ };
47
+ //# sourceMappingURL=PartialInitializationConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PartialInitializationConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/async/PartialInitializationConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EACR,oBAAoB,EACpB,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,qBAAqB,EACxB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,kCAAkC,GAAG;IAC7C,QAAQ,CAAC,uBAAuB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACxD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;IACrD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;IAC3C,QAAQ,CAAC,SAAS,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACjD,QAAQ,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;IAC3C,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IAC/B,QAAQ,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IACrD,QAAQ,CAAC,gBAAgB,CAAC,EAAE;QACxB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;Q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import type { PartialInitializationConfiguration } from './PartialInitializationConfiguration';
4
+ export declare const buildConfigurationFromPartialConfiguration: (features: AutoInstrumentationConfiguration, configuration: PartialInitializationConfiguration) => CoreConfiguration;
5
+ //# sourceMappingURL=asyncInitializationHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asyncInitializationHelper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/async/asyncInitializationHelper.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIlE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE/F,eAAO,MAAM,0CAA0C,aACzC,gCAAgC,iBAC3B,kCAAkC,KAClD,iBAmCF,CAAC"}
@@ -0,0 +1,52 @@
1
+ import type { AttributeEncoder } from '../../sdk/AttributesEncoding/types';
2
+ import type { SdkVerbosity, ProxyConfiguration } from '../types';
3
+ import { TrackingConsent, BatchProcessingLevel, BatchSize, UploadFrequency } from '../types';
4
+ import type { CoreConfigurationOptions, CoreConfigurationType } from './CoreConfiguration.type';
5
+ import { LogsConfiguration } from './LogsConfiguration';
6
+ import { RumConfiguration } from './RumConfiguration';
7
+ import { TraceConfiguration } from './TraceConfiguration';
8
+ declare const DEFAULTS: {
9
+ getAdditionalConfiguration: () => {};
10
+ attributeEncoders: AttributeEncoder<any>[];
11
+ batchProcessingLevel: BatchProcessingLevel;
12
+ batchSize: BatchSize;
13
+ logsConfiguration: undefined;
14
+ proxyConfiguration: undefined;
15
+ rumConfiguration: undefined;
16
+ service: undefined;
17
+ site: string;
18
+ traceConfiguration: undefined;
19
+ uploadFrequency: UploadFrequency;
20
+ verbosity: undefined;
21
+ version: undefined;
22
+ versionSuffix: undefined;
23
+ trackingConsent: TrackingConsent;
24
+ };
25
+ /**
26
+ * The Core configuration class.
27
+ * Used to configure the SDK functionality at initialization.
28
+ */
29
+ declare class CoreConfiguration implements CoreConfigurationType {
30
+ readonly clientToken: string;
31
+ readonly env: string;
32
+ readonly trackingConsent: TrackingConsent;
33
+ additionalConfiguration?: {
34
+ [k: string]: any;
35
+ };
36
+ attributeEncoders: AttributeEncoder<any>[];
37
+ batchProcessingLevel: BatchProcessingLevel;
38
+ batchSize: BatchSize;
39
+ logsConfiguration?: LogsConfiguration;
40
+ proxyConfiguration?: ProxyConfiguration;
41
+ rumConfiguration?: RumConfiguration;
42
+ service?: string;
43
+ site: string;
44
+ traceConfiguration?: TraceConfiguration;
45
+ uploadFrequency: UploadFrequency;
46
+ verbosity?: SdkVerbosity;
47
+ version?: string;
48
+ versionSuffix?: string;
49
+ constructor(clientToken: string, env: string, trackingConsent?: TrackingConsent, options?: CoreConfigurationOptions);
50
+ }
51
+ export { DEFAULTS as CORE_DEFAULTS, CoreConfiguration };
52
+ //# sourceMappingURL=CoreConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoreConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/CoreConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EACH,eAAe,EACf,oBAAoB,EACpB,SAAS,EACT,eAAe,EAClB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EACR,wBAAwB,EACxB,qBAAqB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;CAgBb,CAAC;AAEF;;;GAGG;AACH,cAAM,iB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