@datadog/mobile-react-native-openfeature 3.1.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 (261) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +117 -0
  3. package/lib/commonjs/index.js +13 -0
  4. package/lib/commonjs/index.js.map +1 -0
  5. package/lib/commonjs/provider.js +106 -0
  6. package/lib/commonjs/provider.js.map +1 -0
  7. package/lib/module/index.js +9 -0
  8. package/lib/module/index.js.map +1 -0
  9. package/lib/module/provider.js +99 -0
  10. package/lib/module/provider.js.map +1 -0
  11. package/lib/typescript/core/src/DdAttributes.d.ts +20 -0
  12. package/lib/typescript/core/src/DdAttributes.d.ts.map +1 -0
  13. package/lib/typescript/core/src/DdSdkReactNative.d.ts +122 -0
  14. package/lib/typescript/core/src/DdSdkReactNative.d.ts.map +1 -0
  15. package/lib/typescript/core/src/InternalLog.d.ts +13 -0
  16. package/lib/typescript/core/src/InternalLog.d.ts.map +1 -0
  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 +49 -0
  62. package/lib/typescript/core/src/config/types/ProxyConfiguration.d.ts.map +1 -0
  63. package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts +10 -0
  64. package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts.map +1 -0
  65. package/lib/typescript/core/src/config/types/TrackingConsent.d.ts +9 -0
  66. package/lib/typescript/core/src/config/types/TrackingConsent.d.ts.map +1 -0
  67. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts +18 -0
  68. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts.map +1 -0
  69. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts +7 -0
  70. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts.map +1 -0
  71. package/lib/typescript/core/src/config/types/index.d.ts +10 -0
  72. package/lib/typescript/core/src/config/types/index.d.ts.map +1 -0
  73. package/lib/typescript/core/src/flags/DdFlags.d.ts +3 -0
  74. package/lib/typescript/core/src/flags/DdFlags.d.ts.map +1 -0
  75. package/lib/typescript/core/src/flags/FlagsClient.d.ts +114 -0
  76. package/lib/typescript/core/src/flags/FlagsClient.d.ts.map +1 -0
  77. package/lib/typescript/core/src/flags/internal.d.ts +14 -0
  78. package/lib/typescript/core/src/flags/internal.d.ts.map +1 -0
  79. package/lib/typescript/core/src/flags/types.d.ts +202 -0
  80. package/lib/typescript/core/src/flags/types.d.ts.map +1 -0
  81. package/lib/typescript/core/src/index.d.ts +41 -0
  82. package/lib/typescript/core/src/index.d.ts.map +1 -0
  83. package/lib/typescript/core/src/logs/DdLogs.d.ts +24 -0
  84. package/lib/typescript/core/src/logs/DdLogs.d.ts.map +1 -0
  85. package/lib/typescript/core/src/logs/eventMapper.d.ts +13 -0
  86. package/lib/typescript/core/src/logs/eventMapper.d.ts.map +1 -0
  87. package/lib/typescript/core/src/logs/types.d.ts +74 -0
  88. package/lib/typescript/core/src/logs/types.d.ts.map +1 -0
  89. package/lib/typescript/core/src/metro/debugIdResolver.d.ts +3 -0
  90. package/lib/typescript/core/src/metro/debugIdResolver.d.ts.map +1 -0
  91. package/lib/typescript/core/src/nativeModulesTypes.d.ts +86 -0
  92. package/lib/typescript/core/src/nativeModulesTypes.d.ts.map +1 -0
  93. package/lib/typescript/core/src/rum/DdRum.d.ts +59 -0
  94. package/lib/typescript/core/src/rum/DdRum.d.ts.map +1 -0
  95. package/lib/typescript/core/src/rum/constants.d.ts +2 -0
  96. package/lib/typescript/core/src/rum/constants.d.ts.map +1 -0
  97. package/lib/typescript/core/src/rum/eventMappers/actionEventMapper.d.ts +22 -0
  98. package/lib/typescript/core/src/rum/eventMappers/actionEventMapper.d.ts.map +1 -0
  99. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts +24 -0
  100. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts.map +1 -0
  101. package/lib/typescript/core/src/rum/eventMappers/resourceEventMapper.d.ts +25 -0
  102. package/lib/typescript/core/src/rum/eventMappers/resourceEventMapper.d.ts.map +1 -0
  103. package/lib/typescript/core/src/rum/helper.d.ts +10 -0
  104. package/lib/typescript/core/src/rum/helper.d.ts.map +1 -0
  105. package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts +17 -0
  106. package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts.map +1 -0
  107. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts +38 -0
  108. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts.map +1 -0
  109. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts +25 -0
  110. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts.map +1 -0
  111. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts +29 -0
  112. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts.map +1 -0
  113. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts +4 -0
  114. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts.map +1 -0
  115. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.d.ts +5 -0
  116. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.d.ts.map +1 -0
  117. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.d.ts +8 -0
  118. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.d.ts.map +1 -0
  119. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ddBabelUtils.d.ts +9 -0
  120. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ddBabelUtils.d.ts.map +1 -0
  121. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts +2 -0
  122. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts.map +1 -0
  123. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +23 -0
  124. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -0
  125. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts +46 -0
  126. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts.map +1 -0
  127. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier.d.ts +24 -0
  128. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier.d.ts.map +1 -0
  129. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts +121 -0
  130. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts.map +1 -0
  131. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts +14 -0
  132. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts.map +1 -0
  133. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts +20 -0
  134. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts.map +1 -0
  135. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +11 -0
  136. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts.map +1 -0
  137. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts +12 -0
  138. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts.map +1 -0
  139. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.d.ts +9 -0
  140. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.d.ts.map +1 -0
  141. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts +24 -0
  142. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts.map +1 -0
  143. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts +4 -0
  144. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts.map +1 -0
  145. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/headers.d.ts +4 -0
  146. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/headers.d.ts.map +1 -0
  147. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts +9 -0
  148. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts.map +1 -0
  149. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts +7 -0
  150. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts.map +1 -0
  151. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts +18 -0
  152. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts.map +1 -0
  153. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.d.ts +7 -0
  154. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.d.ts.map +1 -0
  155. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +22 -0
  156. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts.map +1 -0
  157. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts +6 -0
  158. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts.map +1 -0
  159. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.d.ts +3 -0
  160. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.d.ts.map +1 -0
  161. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.d.ts +14 -0
  162. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.d.ts.map +1 -0
  163. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +28 -0
  164. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts.map +1 -0
  165. package/lib/typescript/core/src/rum/types.d.ts +218 -0
  166. package/lib/typescript/core/src/rum/types.d.ts.map +1 -0
  167. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts +15 -0
  168. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts.map +1 -0
  169. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts +6 -0
  170. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts.map +1 -0
  171. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts +13 -0
  172. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts.map +1 -0
  173. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts +33 -0
  174. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts.map +1 -0
  175. package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts +15 -0
  176. package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts.map +1 -0
  177. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts +17 -0
  178. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts.map +1 -0
  179. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts +21 -0
  180. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts.map +1 -0
  181. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts +7 -0
  182. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts.map +1 -0
  183. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts +17 -0
  184. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts.map +1 -0
  185. package/lib/typescript/core/src/sdk/AttributesSingleton/types.d.ts +4 -0
  186. package/lib/typescript/core/src/sdk/AttributesSingleton/types.d.ts.map +1 -0
  187. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogBatchedBridgeEventEmitter.d.ts +11 -0
  188. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogBatchedBridgeEventEmitter.d.ts.map +1 -0
  189. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogDefaultEventEmitter.d.ts +10 -0
  190. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogDefaultEventEmitter.d.ts.map +1 -0
  191. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogEventEmitter.d.ts +7 -0
  192. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogEventEmitter.d.ts.map +1 -0
  193. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogNativeEventEmitter.d.ts +12 -0
  194. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogNativeEventEmitter.d.ts.map +1 -0
  195. package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.d.ts +14 -0
  196. package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.d.ts.map +1 -0
  197. package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.d.ts +6 -0
  198. package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.d.ts.map +1 -0
  199. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.d.ts +18 -0
  200. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.d.ts.map +1 -0
  201. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BufferSingleton.d.ts +8 -0
  202. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BufferSingleton.d.ts.map +1 -0
  203. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/DatadogBuffer.d.ts +21 -0
  204. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/DatadogBuffer.d.ts.map +1 -0
  205. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/PassThroughBuffer.d.ts +8 -0
  206. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/PassThroughBuffer.d.ts.map +1 -0
  207. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/bufferNativeCall.d.ts +4 -0
  208. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/bufferNativeCall.d.ts.map +1 -0
  209. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts +29 -0
  210. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts.map +1 -0
  211. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts +9 -0
  212. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts.map +1 -0
  213. package/lib/typescript/core/src/sdk/DdSdk.d.ts +3 -0
  214. package/lib/typescript/core/src/sdk/DdSdk.d.ts.map +1 -0
  215. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts +39 -0
  216. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts.map +1 -0
  217. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts +27 -0
  218. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts.map +1 -0
  219. package/lib/typescript/core/src/sdk/EventMappers/utils/deepClone.d.ts +11 -0
  220. package/lib/typescript/core/src/sdk/EventMappers/utils/deepClone.d.ts.map +1 -0
  221. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts +13 -0
  222. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts.map +1 -0
  223. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts +14 -0
  224. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts.map +1 -0
  225. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts +7 -0
  226. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts.map +1 -0
  227. package/lib/typescript/core/src/specs/NativeDdFlags.d.ts +15 -0
  228. package/lib/typescript/core/src/specs/NativeDdFlags.d.ts.map +1 -0
  229. package/lib/typescript/core/src/specs/NativeDdLogs.d.ts +70 -0
  230. package/lib/typescript/core/src/specs/NativeDdLogs.d.ts.map +1 -0
  231. package/lib/typescript/core/src/specs/NativeDdRum.d.ts +149 -0
  232. package/lib/typescript/core/src/specs/NativeDdRum.d.ts.map +1 -0
  233. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts +105 -0
  234. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts.map +1 -0
  235. package/lib/typescript/core/src/specs/NativeDdTrace.d.ts +24 -0
  236. package/lib/typescript/core/src/specs/NativeDdTrace.d.ts.map +1 -0
  237. package/lib/typescript/core/src/trace/DdTrace.d.ts +3 -0
  238. package/lib/typescript/core/src/trace/DdTrace.d.ts.map +1 -0
  239. package/lib/typescript/core/src/types.d.ts +130 -0
  240. package/lib/typescript/core/src/types.d.ts.map +1 -0
  241. package/lib/typescript/core/src/utils/Timer.d.ts +22 -0
  242. package/lib/typescript/core/src/utils/Timer.d.ts.map +1 -0
  243. package/lib/typescript/core/src/utils/jsUtils.d.ts +2 -0
  244. package/lib/typescript/core/src/utils/jsUtils.d.ts.map +1 -0
  245. package/lib/typescript/core/src/utils/longTasksUtils.d.ts +7 -0
  246. package/lib/typescript/core/src/utils/longTasksUtils.d.ts.map +1 -0
  247. package/lib/typescript/core/src/utils/singletonUtils.d.ts +2 -0
  248. package/lib/typescript/core/src/utils/singletonUtils.d.ts.map +1 -0
  249. package/lib/typescript/core/src/utils/time-provider/DefaultTimeProvider.d.ts +8 -0
  250. package/lib/typescript/core/src/utils/time-provider/DefaultTimeProvider.d.ts.map +1 -0
  251. package/lib/typescript/core/src/utils/time-provider/TimeProvider.d.ts +19 -0
  252. package/lib/typescript/core/src/utils/time-provider/TimeProvider.d.ts.map +1 -0
  253. package/lib/typescript/core/src/version.d.ts +2 -0
  254. package/lib/typescript/core/src/version.d.ts.map +1 -0
  255. package/lib/typescript/react-native-openfeature/src/index.d.ts +5 -0
  256. package/lib/typescript/react-native-openfeature/src/index.d.ts.map +1 -0
  257. package/lib/typescript/react-native-openfeature/src/provider.d.ts +27 -0
  258. package/lib/typescript/react-native-openfeature/src/provider.d.ts.map +1 -0
  259. package/package.json +87 -0
  260. package/src/index.ts +11 -0
  261. package/src/provider.ts +180 -0
@@ -0,0 +1,202 @@
1
+ import type { FlagsClient } from './FlagsClient';
2
+ export interface DdFlagsType {
3
+ /**
4
+ * Enables the Datadog Flags feature in your application.
5
+ *
6
+ * Call this method after initializing the Datadog SDK to enable feature flag evaluation.
7
+ * This method must be called before creating any `FlagsClient` instances via `DdFlags.getClient()`.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { DdSdkReactNativeConfiguration, DdSdkReactNative, DdFlags } from '@datadog/mobile-react-native';
12
+ *
13
+ * // Initialize the Datadog SDK.
14
+ * await DdSdkReactNative.initialize(...);
15
+ *
16
+ * // Optinal flags configuration object.
17
+ * const flagsConfig = {
18
+ * customFlagsEndpoint: 'https://flags.example.com'
19
+ * };
20
+ *
21
+ * // Enable the feature.
22
+ * await DdFlags.enable(flagsConfig);
23
+ *
24
+ * // Retrieve the client and access feature flags.
25
+ * const flagsClient = DdFlags.getClient();
26
+ * const flagValue = await flagsClient.getBooleanValue('new-feature', false);
27
+ * ```
28
+ *
29
+ * @param configuration Configuration options for the Datadog Flags feature.
30
+ */
31
+ enable: (configuration?: FlagsConfiguration) => Promise<void>;
32
+ /**
33
+ * Returns a `FlagsClient` instance for further feature flag evaluation.
34
+ *
35
+ * For most applications, you would need only one client. If you need multiple clients,
36
+ * you can retrieve a couple of clients with different names.
37
+ *
38
+ * @param clientName An optional name of the client to retrieve. Defaults to `'default'`.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const flagsClient = DdFlags.getClient();
43
+ *
44
+ * // Set the evaluation context.
45
+ * await flagsClient.setEvaluationContext({
46
+ * targetingKey: 'user-123',
47
+ * attributes: {
48
+ * favoriteFruit: 'apple'
49
+ * }
50
+ * });
51
+ *
52
+ * const flagValue = flagsClient.getBooleanValue('new-feature', false);
53
+ * ```
54
+ */
55
+ getClient: (clientName?: string) => FlagsClient;
56
+ }
57
+ /**
58
+ * Configuration options for the Datadog Flags feature.
59
+ */
60
+ export interface FlagsConfiguration {
61
+ /**
62
+ * Custom server URL for retrieving flag assignments.
63
+ *
64
+ * The provided value should only include the base URL, and the endpoint will be appended automatically.
65
+ * For example, if you provide 'https://flags.example.com', the SDK will use 'https://flags.example.com/precompute-assignments'.
66
+ *
67
+ * If not set, the SDK uses the default Datadog Flags endpoint for the configured site.
68
+ *
69
+ * @default undefined
70
+ */
71
+ customFlagsEndpoint?: string;
72
+ /**
73
+ * Custom server URL for sending Flags exposure data.
74
+ *
75
+ * The provided value should only include the base URL, and the endpoint will be appended automatically.
76
+ * For example, if you provide 'https://flags.example.com', the SDK will use 'https://flags.example.com/api/v2/exposures'.
77
+ *
78
+ * If not set, the SDK uses the default Datadog Flags exposure endpoint.
79
+ *
80
+ * @default undefined
81
+ */
82
+ customExposureEndpoint?: string;
83
+ /**
84
+ * Enables exposure logging via the dedicated exposures intake endpoint.
85
+ *
86
+ * When enabled, flag evaluation events are sent to the exposures endpoint for analytics and monitoring.
87
+ *
88
+ * @default true
89
+ */
90
+ trackExposures?: boolean;
91
+ /**
92
+ * Enables the RUM integration.
93
+ *
94
+ * When enabled, flag evaluation events are sent to RUM for correlation with user sessions.
95
+ *
96
+ * @default true
97
+ */
98
+ rumIntegrationEnabled?: boolean;
99
+ }
100
+ export type PrimitiveValue = null | boolean | string | number;
101
+ type JsonObject = {
102
+ [key: string]: JsonValue;
103
+ };
104
+ type JsonArray = JsonValue[];
105
+ /**
106
+ * Represents a JSON node value.
107
+ */
108
+ export type JsonValue = PrimitiveValue | JsonObject | JsonArray;
109
+ /**
110
+ * Context information used for feature flag targeting and evaluation.
111
+ *
112
+ * Contains user or session information that determines which flag variations are returned.
113
+ * This typically includes a unique identifier (targeting key) and optional custom attributes
114
+ * for granular targeting.
115
+ *
116
+ * Note: Evaluation context should be set before flag evaluations.
117
+ *
118
+ * @example
119
+ * ```ts
120
+ * const context: EvaluationContext = {
121
+ * targetingKey: "user-123",
122
+ * attributes: {
123
+ * "region": "US",
124
+ * "plan": "premium",
125
+ * "age": 25,
126
+ * "beta_tester": true
127
+ * }
128
+ * };
129
+ *
130
+ * await client.setEvaluationContext(context);
131
+ * ```
132
+ */
133
+ export interface EvaluationContext {
134
+ /**
135
+ * The unique identifier used for targeting this user or session.
136
+ *
137
+ * This is typically a user ID, session ID, or device ID. The targeting key is used
138
+ * by the feature flag service to determine which variation to serve.
139
+ *
140
+ * Pass an empty string if you don't have such an identifier.
141
+ */
142
+ targetingKey: string;
143
+ /**
144
+ * Custom attributes for more granular targeting.
145
+ *
146
+ * Attributes can include user properties, session data, or any other contextual information
147
+ * needed for flag evaluation rules.
148
+ *
149
+ * NOTE: Nested object values are not supported and will be dropped from the evaluation context.
150
+ */
151
+ attributes?: Record<string, PrimitiveValue>;
152
+ }
153
+ /**
154
+ * An error that occurs during feature flag evaluation.
155
+ *
156
+ * Indicates why a flag evaluation may have failed or returned a default value.
157
+ */
158
+ type FlagErrorCode = 'PROVIDER_NOT_READY' | 'FLAG_NOT_FOUND' | 'PARSE_ERROR' | 'TYPE_MISMATCH';
159
+ /**
160
+ * Detailed information about a feature flag evaluation.
161
+ *
162
+ * Contains both the evaluated flag value and metadata about the evaluation,
163
+ * including the variant served, evaluation reason, and any errors that occurred.
164
+ */
165
+ export interface FlagDetails<T> {
166
+ /**
167
+ * The feature flag key that was evaluated.
168
+ */
169
+ key: string;
170
+ /**
171
+ * The evaluated flag value.
172
+ *
173
+ * Falls back to the default value if evaluation failed.
174
+ */
175
+ value: T;
176
+ /**
177
+ * The reason why this evaluation result was returned.
178
+ */
179
+ reason: string;
180
+ /**
181
+ * The variant key for the evaluated flag.
182
+ *
183
+ * Variants identify which version of the flag was served.
184
+ */
185
+ variant?: string;
186
+ /**
187
+ * The allocation key for the evaluated flag.
188
+ *
189
+ * Useful for debugging targeting rules.
190
+ */
191
+ allocationKey?: string;
192
+ /**
193
+ * Code of the error that occurred during evaluation, if any.
194
+ */
195
+ errorCode?: FlagErrorCode;
196
+ /**
197
+ * Detailed explanation of the occurred error, if any.
198
+ */
199
+ errorMessage?: string;
200
+ }
201
+ export {};
202
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../core/src/flags/types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,WAAW;IACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,MAAM,EAAE,CAAC,aAAa,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,WAAW,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAC9D,KAAK,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAC/C,KAAK,SAAS,GAAG,SAAS,EAAE,CAAC;AAC7B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,UAAU,GAAG,SAAS,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;;OAOG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CAC/C;AAED;;;;GAIG;AACH,KAAK,aAAa,GACZ,oBAAoB,GACpB,gBAAgB,GAChB,aAAa,GACb,eAAe,CAAC;AAEtB;;;;;GAKG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC;IAC1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,KAAK,EAAE,CAAC,CAAC;IACT;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -0,0 +1,41 @@
1
+ import { DdSdkReactNative } from './DdSdkReactNative';
2
+ import { InternalLog } from './InternalLog';
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';
19
+ import { DdFlags } from './flags/DdFlags';
20
+ import type { FlagsClient } from './flags/FlagsClient';
21
+ import type { FlagsConfiguration, FlagDetails, EvaluationContext, PrimitiveValue } from './flags/types';
22
+ import { DdLogs } from './logs/DdLogs';
23
+ import { DdRum } from './rum/DdRum';
24
+ import { DdBabelInteractionTracking } from './rum/instrumentation/interactionTracking/DdBabelInteractionTracking';
25
+ import { __ddExtractText } from './rum/instrumentation/interactionTracking/ddBabelUtils';
26
+ import { DatadogTracingContext } from './rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext';
27
+ import { DatadogTracingIdentifier } from './rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier';
28
+ import { TracingIdFormat, TracingIdType } from './rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier';
29
+ import { DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER } from './rum/instrumentation/resourceTracking/graphql/graphqlHeaders';
30
+ import type { FirstPartyHost } from './rum/types';
31
+ import { PropagatorType, RumActionType } from './rum/types';
32
+ import { DatadogProvider } from './sdk/DatadogProvider/DatadogProvider';
33
+ import { DdSdk } from './sdk/DdSdk';
34
+ import { DdTrace } from './trace/DdTrace';
35
+ import { ErrorSource, FeatureOperationFailure } from './types';
36
+ import { DefaultTimeProvider } from './utils/time-provider/DefaultTimeProvider';
37
+ import type { Timestamp } from './utils/time-provider/TimeProvider';
38
+ import { TimeProvider } from './utils/time-provider/TimeProvider';
39
+ export { DatadogProvider, DatadogProviderConfiguration, FileBasedConfiguration, InitializationMode, DdLogs, DdFlags, 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 };
40
+ export type { Timestamp, FirstPartyHost, AutoInstrumentationConfiguration, PartialInitializationConfiguration, CoreConfigurationOptions, RumConfigurationOptions, LogsConfigurationOptions, TraceConfigurationOptions, FlagsConfiguration, FlagsClient, EvaluationContext, PrimitiveValue, FlagDetails };
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/src/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,s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,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,EACzB,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,WAAW,EACd,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { LogEventMapper } from '../types';
2
+ import type { DdLogsType, LogArguments, LogWithErrorArguments } from './types';
3
+ declare class DdLogsWrapper implements DdLogsType {
4
+ private nativeLogs;
5
+ private logEventMapper;
6
+ debug: (...args: LogArguments | LogWithErrorArguments) => Promise<void>;
7
+ info: (...args: LogArguments | LogWithErrorArguments) => Promise<void>;
8
+ warn: (...args: LogArguments | LogWithErrorArguments) => Promise<void>;
9
+ error: (...args: LogArguments | LogWithErrorArguments) => Promise<void>;
10
+ /**
11
+ * Since the InternalLog does not have a verbosity set yet in this case,
12
+ * we use console.warn to warn the user in dev mode.
13
+ */
14
+ private printLogDroppedSdkNotInitialized;
15
+ private printLogDroppedByMapper;
16
+ private printLogTracked;
17
+ private log;
18
+ private logWithError;
19
+ registerLogEventMapper(logEventMapper: LogEventMapper): void;
20
+ unregisterLogEventMapper(): void;
21
+ }
22
+ export declare const DdLogs: DdLogsWrapper;
23
+ export {};
24
+ //# sourceMappingURL=DdLogs.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,13 @@
1
+ import type { Attributes } from '../sdk/AttributesSingleton/types';
2
+ import { EventMapper } from '../sdk/EventMappers/EventMapper';
3
+ import type { UserInfo } from '../sdk/UserInfoSingleton/types';
4
+ import type { LogEvent, LogEventMapper } from '../types';
5
+ import type { NativeLog, NativeLogWithError, RawLog, RawLogWithError } from './types';
6
+ export declare const formatLogEventToNativeLog: (logEvent: LogEvent) => NativeLog | NativeLogWithError;
7
+ export declare const formatRawLogToNativeEvent: (rawLog: RawLog | RawLogWithError) => NativeLog | NativeLogWithError;
8
+ export declare const formatRawLogToLogEvent: (rawLog: RawLog | RawLogWithError, additionalInformation: {
9
+ userInfo?: UserInfo;
10
+ attributes: Attributes;
11
+ }) => LogEvent;
12
+ export declare const generateEventMapper: (logEventMapper: LogEventMapper | undefined) => EventMapper<RawLog | RawLogWithError, LogEvent, NativeLog | NativeLogWithError>;
13
+ //# sourceMappingURL=eventMapper.d.ts.map
@@ -0,0 +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;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"}
@@ -0,0 +1,74 @@
1
+ import type { LogStatus, ErrorSource } from '../types';
2
+ /**
3
+ * The entry point to use Datadog's Logs feature.
4
+ */
5
+ export type DdLogsType = {
6
+ /**
7
+ * Send a log with debug level.
8
+ * @param message: The message to send.
9
+ * @param context: The additional context to send.
10
+ */
11
+ debug(...args: LogArguments | LogWithErrorArguments): Promise<void>;
12
+ /**
13
+ * Send a log with info level.
14
+ * @param message: The message to send.
15
+ * @param context: The additional context to send.
16
+ */
17
+ info(...args: LogArguments | LogWithErrorArguments): Promise<void>;
18
+ /**
19
+ * Send a log with warn level.
20
+ * @param message: The message to send.
21
+ * @param context: The additional context to send.
22
+ */
23
+ warn(...args: LogArguments | LogWithErrorArguments): Promise<void>;
24
+ /**
25
+ * Send a log with error level.
26
+ * @param message: The message to send.
27
+ * @param context: The additional context to send.
28
+ */
29
+ error(...args: LogArguments | LogWithErrorArguments): Promise<void>;
30
+ };
31
+ /**
32
+ * Log input from developers
33
+ */
34
+ export type RawLog = {
35
+ message: string;
36
+ context: object;
37
+ status: LogStatus;
38
+ };
39
+ export type RawLogWithError = {
40
+ message: string;
41
+ errorKind?: string;
42
+ errorMessage?: string;
43
+ stacktrace?: string;
44
+ context: object;
45
+ status: LogStatus;
46
+ fingerprint?: string;
47
+ source?: ErrorSource;
48
+ };
49
+ /**
50
+ * Log input for native SDKs
51
+ */
52
+ export type NativeLog = {
53
+ message: string;
54
+ context: object;
55
+ };
56
+ export type NativeLogWithError = {
57
+ message: string;
58
+ errorKind: string;
59
+ errorMessage: string;
60
+ stacktrace: string;
61
+ context: object;
62
+ fingerprint?: string;
63
+ };
64
+ export type LogArguments = [message: string, context?: object];
65
+ export type LogWithErrorArguments = [
66
+ message: string,
67
+ errorKind?: string,
68
+ errorMessage?: string,
69
+ stacktrace?: string,
70
+ context?: object,
71
+ fingerprint?: string,
72
+ source?: ErrorSource
73
+ ];
74
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvD;;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,EA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+1,3 @@
1
+ declare let debugId: any | null;
2
+ export { debugId };
3
+ //# sourceMappingURL=debugIdResolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debugIdResolver.d.ts","sourceRoot":"","sources":["../../../../../../core/src/metro/debugIdResolver.ts"],"names":[],"mappings":"AAOA,QAAA,IAAI,OAAO,EAAE,GAAG,GAAG,IAAW,CAAC;AAgC/B,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,86 @@
1
+ import type { DdSdkNativeConfiguration } from './config/features/CoreConfigurationNative';
2
+ import type { Spec as NativeDdFlags } from './specs/NativeDdFlags';
3
+ import type { Spec as NativeDdLogs } from './specs/NativeDdLogs';
4
+ import type { Spec as NativeDdRum } from './specs/NativeDdRum';
5
+ import type { Spec as NativeDdSdk } from './specs/NativeDdSdk';
6
+ import type { Spec as NativeDdTrace } from './specs/NativeDdTrace';
7
+ /**
8
+ * In this file, native modules types extend the specs for TurboModules.
9
+ * As we cannot use enums or classes in the specs, we override methods using them here.
10
+ */
11
+ /**
12
+ * The entry point to use Datadog's Logs feature.
13
+ */
14
+ export type DdNativeLogsType = NativeDdLogs;
15
+ /**
16
+ * The entry point to use Datadog's Trace feature.
17
+ */
18
+ export type DdNativeTraceType = NativeDdTrace;
19
+ /**
20
+ * The entry point to use Datadog's Flags feature.
21
+ */
22
+ export type DdNativeFlagsType = NativeDdFlags;
23
+ /**
24
+ * The entry point to initialize Datadog's features.
25
+ */
26
+ export interface DdNativeSdkType extends NativeDdSdk {
27
+ /**
28
+ * Initializes Datadog's features.
29
+ * @param configuration: The configuration to use.
30
+ */
31
+ initialize(configuration: DdSdkNativeConfiguration): Promise<void>;
32
+ }
33
+ type ActionType = 'TAP' | 'SCROLL' | 'SWIPE' | 'BACK' | 'CUSTOM';
34
+ type ResourceKind = 'image' | 'xhr' | 'beacon' | 'css' | 'document' | 'fetch' | 'font' | 'js' | 'media' | 'other' | 'native';
35
+ type ErrorSource = 'NETWORK' | 'SOURCE' | 'CONSOLE' | 'WEBVIEW' | 'CUSTOM';
36
+ /**
37
+ * The entry point to use Datadog's RUM feature.
38
+ */
39
+ export interface DdNativeRumType extends NativeDdRum {
40
+ /**
41
+ * Start tracking a RUM Action.
42
+ * @param type: The action type (tap, scroll, swipe, back, custom).
43
+ * @param name: The action name.
44
+ * @param context: The additional context to send.
45
+ * @param timestampMs: The timestamp when the action started (in milliseconds). If not provided, current timestamp will be used.
46
+ */
47
+ startAction(type: ActionType, name: string, context: object, timestampMs: number): Promise<void>;
48
+ /**
49
+ * Stop tracking the ongoing RUM Action.
50
+ * @param type: The action type (tap, scroll, swipe, back, custom).
51
+ * @param name: The action name.
52
+ * @param context: The additional context to send.
53
+ * @param timestampMs: The timestamp when the action stopped (in milliseconds). If not provided, current timestamp will be used.
54
+ */
55
+ stopAction(type: ActionType, name: string, context: object, timestampMs: number): Promise<void>;
56
+ /**
57
+ * Add a RUM Action.
58
+ * @param type: The action type (tap, scroll, swipe, back, custom).
59
+ * @param name: The action name.
60
+ * @param context: The additional context to send.
61
+ * @param timestampMs: The timestamp when the action occurred (in milliseconds). If not provided, current timestamp will be used.
62
+ */
63
+ addAction(type: ActionType, name: string, context: object, timestampMs: number): Promise<void>;
64
+ /**
65
+ * Stop tracking a RUM Resource.
66
+ * @param key: The resource unique key identifier.
67
+ * @param statusCode: The resource status code.
68
+ * @param kind: The resource's kind (xhr, document, image, css, font, …).
69
+ * @param size: The resource size in bytes. If size is unknown, use -1.
70
+ * @param context: The additional context to send.
71
+ * @param timestampMs: The timestamp when the resource stopped (in milliseconds). If not provided, current timestamp will be used.
72
+ */
73
+ stopResource(key: string, statusCode: number, kind: ResourceKind, size: number, context: object, timestampMs: number): Promise<void>;
74
+ /**
75
+ * Add a RUM Error.
76
+ * @param message: The error message.
77
+ * @param source: The error source (network, source, console, webview, custom).
78
+ * @param stacktrace: The error stacktrace.
79
+ * @param context: The additional context to send.
80
+ * @param timestampMs: The timestamp when the error occurred (in milliseconds). If not provided, current timestamp will be used.
81
+ * @param fingerprint: Optional custom error fingerprint.
82
+ */
83
+ addError(message: string, source: ErrorSource, stacktrace: string, context: object, timestampMs: number, fingerprint: string | undefined): Promise<void>;
84
+ }
85
+ export {};
86
+ //# sourceMappingURL=nativeModulesTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeModulesTypes.d.ts","sourceRoot":"","sources":["../../../../../core/src/nativeModulesTypes.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnE,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,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAChD;;;OAGG;IACH,UAAU,CAAC,aAAa,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtE;AAED,KAAK,UAAU,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEjE,KAAK,YAAY,GACX,OAAO,GACP,KAAK,GACL,QAAQ,GACR,KAAK,GACL,UAAU,GACV,OAAO,GACP,MAAM,GACN,IAAI,GACJ,OAAO,GACP,OAAO,GACP,QAAQ,CAAC;AAEf,KAAK,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAChD;;;;;;OAMG;IACH,WAAW,CACP,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;OAMG;IACH,UAAU,CACN,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;OAMG;IACH,SAAS,CACL,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;;OAQG;IACH,YAAY,CACR,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;;OAQG;IACH,QAAQ,CACJ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAAG,SAAS,GAChC,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB"}
@@ -0,0 +1,59 @@
1
+ import type { GestureResponderEvent } from 'react-native';
2
+ import type { Attributes } from '../sdk/AttributesSingleton/types';
3
+ import type { ErrorSource, FeatureOperationFailure } from '../types';
4
+ import type { TimeProvider } from '../utils/time-provider/TimeProvider';
5
+ import type { ActionEventMapper } from './eventMappers/actionEventMapper';
6
+ import type { ErrorEventMapper } from './eventMappers/errorEventMapper';
7
+ import type { ResourceEventMapper } from './eventMappers/resourceEventMapper';
8
+ import type { DatadogTracingContext } from './instrumentation/resourceTracking/distributedTracing/DatadogTracingContext';
9
+ import { DatadogTracingIdentifier } from './instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier';
10
+ import type { DdRumType, FirstPartyHost, PropagatorType, ResourceKind, RumActionType } from './types';
11
+ declare class DdRumWrapper implements DdRumType {
12
+ private nativeRum;
13
+ private lastActionData?;
14
+ private errorEventMapper;
15
+ private resourceEventMapper;
16
+ private actionEventMapper;
17
+ private timeProvider;
18
+ startView: (key: string, name: string, context?: object, timestampMs?: number) => Promise<void>;
19
+ stopView: (key: string, context?: object, timestampMs?: number) => Promise<void>;
20
+ startAction: (type: RumActionType, name: string, context?: object, timestampMs?: number) => Promise<void>;
21
+ stopAction: (...args: [
22
+ type: RumActionType,
23
+ name: string,
24
+ context?: object,
25
+ timestampMs?: number
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>;
30
+ setTimeProvider: (timeProvider: TimeProvider) => void;
31
+ addAction: (type: RumActionType, name: string, context?: object, timestampMs?: number, actionContext?: GestureResponderEvent) => Promise<void>;
32
+ startResource: (key: string, method: string, url: string, context?: object, timestampMs?: number) => Promise<void>;
33
+ stopResource: (key: string, statusCode: number, kind: ResourceKind, size?: number, context?: object, timestampMs?: number, resourceContext?: XMLHttpRequest) => Promise<void>;
34
+ addError: (message: string, source: ErrorSource, stacktrace: string, context?: object, timestampMs?: number, fingerprint?: string) => Promise<void>;
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>;
40
+ addViewLoadingTime: (overwrite: boolean) => Promise<void>;
41
+ stopSession: () => Promise<void>;
42
+ addFeatureFlagEvaluation: (name: string, value: unknown) => Promise<void>;
43
+ getCurrentSessionId(): Promise<string | undefined>;
44
+ getTracingContext: (url: string, tracingSamplingRate: number, firstPartyHosts: FirstPartyHost[]) => DatadogTracingContext;
45
+ getTracingContextForPropagators: (propagators: PropagatorType[], tracingSamplingRate: number) => DatadogTracingContext;
46
+ generateTraceId(): DatadogTracingIdentifier;
47
+ generateSpanId(): DatadogTracingIdentifier;
48
+ registerErrorEventMapper(errorEventMapper: ErrorEventMapper): void;
49
+ unregisterErrorEventMapper(): void;
50
+ registerResourceEventMapper(resourceEventMapper: ResourceEventMapper): void;
51
+ unregisterResourceEventMapper(): void;
52
+ registerActionEventMapper(actionEventMapper: ActionEventMapper): void;
53
+ unregisterActionEventMapper(): void;
54
+ private callNativeStopAction;
55
+ private getStopActionNativeCallArgs;
56
+ }
57
+ export declare const DdRum: DdRumWrapper;
58
+ export {};
59
+ //# sourceMappingURL=DdRum.d.ts.map
@@ -0,0 +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;AAQ1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,KAAK,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAGrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAA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AiB,QACR,MAAM,uBACU,MAAM,mBACV,cAAc,EAAE,KAClC,qBAAqB,CAStB;IAEF,+BAA+B,gBACd,cAAc,EAAE,uBACR,MAAM,KAC5B,qBAAqB,CAQtB;IAEF,eAAe,IAAI,wBAAwB;IAI3C,cAAc,IAAI,wBAAwB;IAI1C,wBAAwB,CAAC,gBAAgB,EAAE,gBAAgB;IAI3D,0BAA0B;IAI1B,2BAA2B,CAAC,mBAAmB,EAAE,mBAAmB;IAMpE,6BAA6B;IAI7B,yBAAyB,CAAC,iBAAiB,EAAE,iBAAiB;IAI9D,2BAA2B;IAI3B,OAAO,CAAC,oBAAoB,CAiC1B;IAEF,OAAO,CAAC,2BAA2B,CAkDjC;CACL;AAiCD,eAAO,MAAM,KAAK,cAA0D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const BABEL_PLUGIN_TELEMETRY = "Datadog Babel Integration Telemetry";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../core/src/rum/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,sBAAsB,wCAAwC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { GestureResponderEvent } from 'react-native';
2
+ import type { AdditionalEventDataForMapper } from '../../sdk/EventMappers/EventMapper';
3
+ import { EventMapper } from '../../sdk/EventMappers/EventMapper';
4
+ import type { RumActionType } from '../types';
5
+ type RawAction = {
6
+ readonly type: RumActionType;
7
+ readonly name: string;
8
+ context: object;
9
+ readonly timestampMs: number;
10
+ actionContext?: GestureResponderEvent;
11
+ };
12
+ type ActionEvent = RawAction & AdditionalEventDataForMapper;
13
+ type NativeAction = {
14
+ type: RumActionType;
15
+ name: string;
16
+ context: object;
17
+ timestampMs: number;
18
+ };
19
+ export type ActionEventMapper = (event: ActionEvent) => ActionEvent | null;
20
+ export declare const generateActionEventMapper: (eventMapper: ActionEventMapper | undefined) => EventMapper<RawAction, ActionEvent, NativeAction>;
21
+ export {};
22
+ //# sourceMappingURL=actionEventMapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionEventMapper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/eventMappers/actionEventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,KAAK,SAAS,GAAG;IACb,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACzC,CAAC;AAEF,KAAK,WAAW,GAAG,SAAS,GAAG,4BAA4B,CAAC;AAE5D,KAAK,YAAY,GAAG;IAChB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAC;AAE3E,eAAO,MAAM,yBAAyB,gBACrB,iBAAiB,GAAG,SAAS,sDAOzC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { AdditionalEventDataForMapper } from '../../sdk/EventMappers/EventMapper';
2
+ import { EventMapper } from '../../sdk/EventMappers/EventMapper';
3
+ import type { ErrorSource } from '../../types';
4
+ type RawError = {
5
+ message: string;
6
+ source: ErrorSource;
7
+ stacktrace: string;
8
+ context: object;
9
+ timestampMs: number;
10
+ fingerprint: string;
11
+ };
12
+ type ErrorEvent = RawError & AdditionalEventDataForMapper;
13
+ type NativeError = {
14
+ message: string;
15
+ source: ErrorSource;
16
+ stacktrace: string;
17
+ context: object;
18
+ timestampMs: number;
19
+ fingerprint: string;
20
+ };
21
+ export type ErrorEventMapper = (event: ErrorEvent) => ErrorEvent | null;
22
+ export declare const generateErrorEventMapper: (eventMapper: ErrorEventMapper | undefined) => EventMapper<RawError, ErrorEvent, NativeError>;
23
+ export {};
24
+ //# sourceMappingURL=errorEventMapper.d.ts.map
@@ -0,0 +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,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"}