@datadog/mobile-react-native 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.
- package/DatadogSDKReactNative.podspec +6 -6
- package/README.md +23 -13
- package/android/build.gradle +10 -11
- package/android/gradle.properties +1 -1
- package/android/src/main/kotlin/com/datadog/reactnative/DatadogSDKWrapper.kt +36 -93
- package/android/src/main/kotlin/com/datadog/reactnative/DatadogWrapper.kt +46 -59
- package/android/src/main/kotlin/com/datadog/reactnative/DdLogsImplementation.kt +2 -1
- package/android/src/main/kotlin/com/datadog/reactnative/DdRumImplementation.kt +98 -0
- package/android/src/main/kotlin/com/datadog/reactnative/DdSdkConfiguration.kt +125 -75
- package/android/src/main/kotlin/com/datadog/reactnative/DdSdkConfigurationExt.kt +199 -90
- package/android/src/main/kotlin/com/datadog/reactnative/DdSdkImplementation.kt +151 -24
- package/android/src/main/kotlin/com/datadog/reactnative/DdSdkNativeInitialization.kt +57 -33
- package/android/src/main/kotlin/com/datadog/reactnative/DdSdkReactNativePackage.kt +2 -1
- package/android/src/main/kotlin/com/datadog/reactnative/DdTelemetry.kt +96 -0
- package/android/src/main/kotlin/com/datadog/reactnative/DdTraceImplementation.kt +20 -19
- package/android/src/main/kotlin/com/datadog/reactnative/SdkVersion.kt +1 -1
- package/android/src/newarch/kotlin/com/datadog/reactnative/DdRum.kt +100 -1
- package/android/src/newarch/kotlin/com/datadog/reactnative/DdSdk.kt +68 -14
- package/android/src/oldarch/kotlin/com/datadog/reactnative/DdRum.kt +94 -0
- package/android/src/oldarch/kotlin/com/datadog/reactnative/DdSdk.kt +70 -11
- package/android/src/test/kotlin/com/datadog/reactnative/DdRumTest.kt +58 -0
- package/android/src/test/kotlin/com/datadog/reactnative/DdSdkNativeInitializationTest.kt +63 -43
- package/android/src/test/kotlin/com/datadog/reactnative/DdSdkTest.kt +2024 -1199
- package/android/src/test/kotlin/com/datadog/reactnative/DdTraceTest.kt +44 -40
- package/android/src/test/kotlin/com/datadog/tools/unit/DdSdkConfigurationExt.kt +60 -91
- package/android/src/test/kotlin/com/datadog/tools/unit/MockRumMonitor.kt +34 -14
- package/android/src/test/kotlin/com/datadog/tools/unit/forge/DdSdkConfigurationForgeryFactory.kt +47 -43
- package/android/src/test/kotlin/com/datadog/tools/unit/forge/TelemetryConfigurationEventForgeryFactory.kt +0 -1
- package/android/src/test/resources/input/complete-configuration.json +32 -28
- package/android/src/test/resources/input/malformed-configuration.json +1 -1
- package/android/src/test/resources/input/minimal-configuration.json +4 -2
- package/datadog-configuration.schema.json +187 -139
- package/datadog-sourcemaps.gradle +2 -1
- package/ios/Sources/AnyEncodable.swift +14 -7
- package/ios/Sources/Attributes.swift +0 -7
- package/ios/Sources/DatadogSDKWrapper.swift +12 -128
- package/ios/Sources/DdLogsImplementation.swift +9 -39
- package/ios/Sources/DdRum.mm +89 -1
- package/ios/Sources/DdRumImplementation.swift +79 -0
- package/ios/Sources/DdSdk.mm +76 -11
- package/ios/Sources/DdSdkConfiguration.swift +159 -117
- package/ios/Sources/DdSdkImplementation.swift +235 -82
- package/ios/Sources/DdSdkNativeInitialization.swift +116 -80
- package/ios/Sources/DdTelemetry.swift +49 -0
- package/ios/Sources/GlobalState.swift +1 -1
- package/ios/Sources/RNDdSdkConfiguration.swift +334 -172
- package/ios/Sources/SdkVersion.swift +1 -1
- package/jest/mock.js +43 -4
- package/lib/commonjs/DdAttributes.js.map +1 -0
- package/lib/commonjs/DdSdkReactNative.js +159 -56
- package/lib/commonjs/DdSdkReactNative.js.map +1 -1
- package/lib/commonjs/InternalLog.js +1 -1
- package/lib/commonjs/config/DatadogProviderConfiguration.js +25 -0
- package/lib/commonjs/config/DatadogProviderConfiguration.js.map +1 -0
- package/lib/commonjs/config/FileBasedConfiguration.js +349 -0
- package/lib/commonjs/config/FileBasedConfiguration.js.map +1 -0
- package/lib/commonjs/config/FileBasedConfiguration.type.js +6 -0
- package/lib/commonjs/config/FileBasedConfiguration.type.js.map +1 -0
- package/lib/commonjs/config/async/AutoInstrumentationConfiguration.js +51 -0
- package/lib/commonjs/config/async/AutoInstrumentationConfiguration.js.map +1 -0
- package/lib/commonjs/config/async/PartialInitializationConfiguration.js +6 -0
- package/lib/commonjs/config/async/PartialInitializationConfiguration.js.map +1 -0
- package/lib/commonjs/config/async/asyncInitializationHelper.js +44 -0
- package/lib/commonjs/config/async/asyncInitializationHelper.js.map +1 -0
- package/lib/commonjs/config/features/CoreConfiguration.js +104 -0
- package/lib/commonjs/config/features/CoreConfiguration.js.map +1 -0
- package/lib/commonjs/config/features/CoreConfiguration.type.js +6 -0
- package/lib/commonjs/config/features/CoreConfiguration.type.js.map +1 -0
- package/lib/commonjs/config/features/CoreConfigurationNative.js +38 -0
- package/lib/commonjs/config/features/CoreConfigurationNative.js.map +1 -0
- package/lib/commonjs/config/features/LogsConfiguration.js +36 -0
- package/lib/commonjs/config/features/LogsConfiguration.js.map +1 -0
- package/lib/commonjs/config/features/LogsConfiguration.type.js +6 -0
- package/lib/commonjs/config/features/LogsConfiguration.type.js.map +1 -0
- package/lib/commonjs/config/features/LogsConfigurationNative.js +2 -0
- package/lib/commonjs/config/features/LogsConfigurationNative.js.map +1 -0
- package/lib/commonjs/config/features/RumConfiguration.js +120 -0
- package/lib/commonjs/config/features/RumConfiguration.js.map +1 -0
- package/lib/commonjs/config/features/RumConfiguration.type.js +6 -0
- package/lib/commonjs/config/features/RumConfiguration.type.js.map +1 -0
- package/lib/commonjs/config/features/RumConfigurationNative.js +2 -0
- package/lib/commonjs/config/features/RumConfigurationNative.js.map +1 -0
- package/lib/commonjs/config/features/TraceConfiguration.js +24 -0
- package/lib/commonjs/config/features/TraceConfiguration.js.map +1 -0
- package/lib/commonjs/config/features/TraceConfiguration.type.js +2 -0
- package/lib/commonjs/config/features/TraceConfiguration.type.js.map +1 -0
- package/lib/commonjs/config/features/TraceConfigurationNative.js +2 -0
- package/lib/commonjs/config/features/TraceConfigurationNative.js.map +1 -0
- package/lib/commonjs/config/types/BatchProcessingLevel.js +30 -0
- package/lib/commonjs/config/types/BatchProcessingLevel.js.map +1 -0
- package/lib/commonjs/config/types/BatchSize.js +31 -0
- package/lib/commonjs/config/types/BatchSize.js.map +1 -0
- package/lib/commonjs/config/types/InitializationMode.js +17 -0
- package/lib/commonjs/config/types/InitializationMode.js.map +1 -0
- package/lib/commonjs/config/types/InitializationModeForTelemetry.js +2 -0
- package/lib/commonjs/config/types/InitializationModeForTelemetry.js.map +1 -0
- package/lib/commonjs/{ProxyConfiguration.js → config/types/ProxyConfiguration.js} +6 -0
- package/lib/commonjs/config/types/ProxyConfiguration.js.map +1 -0
- package/lib/commonjs/config/types/SdkVerbosity.js.map +1 -0
- package/lib/commonjs/config/types/TrackingConsent.js.map +1 -0
- package/lib/commonjs/config/types/UploadFrequency.js +30 -0
- package/lib/commonjs/config/types/UploadFrequency.js.map +1 -0
- package/lib/commonjs/config/types/VitalsUpdateFrequency.js +19 -0
- package/lib/commonjs/config/types/VitalsUpdateFrequency.js.map +1 -0
- package/lib/commonjs/config/types/index.js +68 -0
- package/lib/commonjs/config/types/index.js.map +1 -0
- package/lib/commonjs/index.js +51 -21
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/logs/DdLogs.js +13 -9
- package/lib/commonjs/logs/DdLogs.js.map +1 -1
- package/lib/commonjs/logs/eventMapper.js +4 -1
- package/lib/commonjs/logs/eventMapper.js.map +1 -1
- package/lib/commonjs/metro/plugin/metroSerializer.js.map +1 -1
- package/lib/commonjs/nativeModulesTypes.js +0 -45
- package/lib/commonjs/nativeModulesTypes.js.map +1 -1
- package/lib/commonjs/rum/DdRum.js +56 -28
- package/lib/commonjs/rum/DdRum.js.map +1 -1
- package/lib/commonjs/rum/helper.js +63 -0
- package/lib/commonjs/rum/helper.js.map +1 -0
- package/lib/commonjs/rum/instrumentation/DdRumErrorTracking.js +14 -18
- package/lib/commonjs/rum/instrumentation/DdRumErrorTracking.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.js +16 -27
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdEventsInterceptor.js +1 -1
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.js +15 -5
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/DdRumResourceTracking.js +34 -22
- package/lib/commonjs/rum/instrumentation/resourceTracking/DdRumResourceTracking.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.js +21 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.js +16 -3
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.js +10 -12
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.js +6 -0
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.js.map +1 -0
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.js +41 -47
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.js +62 -0
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.js.map +1 -0
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.js +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/headers.js +36 -0
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/headers.js.map +1 -0
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.js +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.js +19 -8
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.js +90 -48
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.js +1 -1
- package/lib/commonjs/rum/types.js +1 -9
- package/lib/commonjs/rum/types.js.map +1 -1
- package/lib/commonjs/sdk/AccountInfoSingleton/AccountInfoSingleton.js +46 -0
- package/lib/commonjs/sdk/AccountInfoSingleton/AccountInfoSingleton.js.map +1 -0
- package/lib/commonjs/sdk/AccountInfoSingleton/types.js +2 -0
- package/lib/commonjs/sdk/AccountInfoSingleton/types.js.map +1 -0
- package/lib/commonjs/sdk/AttributesEncoding/attributesEncoding.js +51 -0
- package/lib/commonjs/sdk/AttributesEncoding/attributesEncoding.js.map +1 -0
- package/lib/commonjs/sdk/AttributesEncoding/defaultEncoders.js +140 -0
- package/lib/commonjs/sdk/AttributesEncoding/defaultEncoders.js.map +1 -0
- package/lib/commonjs/{utils → sdk/AttributesEncoding}/errorUtils.js +39 -22
- package/lib/commonjs/sdk/AttributesEncoding/errorUtils.js.map +1 -0
- package/lib/commonjs/sdk/AttributesEncoding/helpers.js +123 -0
- package/lib/commonjs/sdk/AttributesEncoding/helpers.js.map +1 -0
- package/lib/commonjs/sdk/AttributesEncoding/types.js +2 -0
- package/lib/commonjs/sdk/AttributesEncoding/types.js.map +1 -0
- package/lib/commonjs/sdk/AttributesEncoding/utils.js +36 -0
- package/lib/commonjs/sdk/AttributesEncoding/utils.js.map +1 -0
- package/lib/commonjs/sdk/AttributesSingleton/AttributesSingleton.js +27 -1
- package/lib/commonjs/sdk/AttributesSingleton/AttributesSingleton.js.map +1 -1
- package/lib/commonjs/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.js +3 -3
- package/lib/commonjs/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.js.map +1 -1
- package/lib/commonjs/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.js +1 -1
- package/lib/commonjs/sdk/DatadogProvider/Buffer/BoundedBuffer.js +4 -4
- package/lib/commonjs/sdk/DatadogProvider/Buffer/BoundedBuffer.js.map +1 -1
- package/lib/commonjs/sdk/DatadogProvider/DatadogProvider.js +10 -9
- package/lib/commonjs/sdk/DatadogProvider/DatadogProvider.js.map +1 -1
- package/lib/commonjs/sdk/DatadogProvider/DatadogProviderState.js +28 -0
- package/lib/commonjs/sdk/DatadogProvider/DatadogProviderState.js.map +1 -0
- package/lib/commonjs/sdk/DdSdk.js +4 -2
- package/lib/commonjs/sdk/DdSdk.js.map +1 -1
- package/lib/commonjs/sdk/DdSdkInternal.js +86 -0
- package/lib/commonjs/sdk/DdSdkInternal.js.map +1 -0
- package/lib/commonjs/sdk/EventMappers/EventMapper.js +6 -3
- package/lib/commonjs/sdk/EventMappers/EventMapper.js.map +1 -1
- package/lib/commonjs/sdk/GlobalState/GlobalState.js +5 -11
- package/lib/commonjs/sdk/GlobalState/GlobalState.js.map +1 -1
- package/lib/commonjs/sdk/UserInfoSingleton/UserInfoSingleton.js +6 -1
- package/lib/commonjs/sdk/UserInfoSingleton/UserInfoSingleton.js.map +1 -1
- package/lib/commonjs/specs/NativeDdRum.js.map +1 -1
- package/lib/commonjs/specs/NativeDdSdk.js.map +1 -1
- package/lib/commonjs/trace/DdTrace.js +7 -5
- package/lib/commonjs/trace/DdTrace.js.map +1 -1
- package/lib/commonjs/types.js +19 -46
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/longTasksUtils.js.map +1 -1
- package/lib/commonjs/utils/singletonUtils.js +21 -0
- package/lib/commonjs/utils/singletonUtils.js.map +1 -0
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/DdAttributes.js.map +1 -0
- package/lib/module/DdSdkReactNative.js +155 -52
- package/lib/module/DdSdkReactNative.js.map +1 -1
- package/lib/module/InternalLog.js +1 -1
- package/lib/module/InternalLog.js.map +1 -1
- package/lib/module/config/DatadogProviderConfiguration.js +18 -0
- package/lib/module/config/DatadogProviderConfiguration.js.map +1 -0
- package/lib/module/config/FileBasedConfiguration.js +341 -0
- package/lib/module/config/FileBasedConfiguration.js.map +1 -0
- package/lib/module/config/FileBasedConfiguration.type.js +2 -0
- package/lib/module/config/FileBasedConfiguration.type.js.map +1 -0
- package/lib/module/config/async/AutoInstrumentationConfiguration.js +45 -0
- package/lib/module/config/async/AutoInstrumentationConfiguration.js.map +1 -0
- package/lib/module/config/async/PartialInitializationConfiguration.js +2 -0
- package/lib/module/config/async/PartialInitializationConfiguration.js.map +1 -0
- package/lib/module/config/async/asyncInitializationHelper.js +36 -0
- package/lib/module/config/async/asyncInitializationHelper.js.map +1 -0
- package/lib/module/config/features/CoreConfiguration.js +98 -0
- package/lib/module/config/features/CoreConfiguration.js.map +1 -0
- package/lib/module/config/features/CoreConfiguration.type.js +2 -0
- package/lib/module/config/features/CoreConfiguration.type.js.map +1 -0
- package/lib/module/config/features/CoreConfigurationNative.js +31 -0
- package/lib/module/config/features/CoreConfigurationNative.js.map +1 -0
- package/lib/module/config/features/LogsConfiguration.js +30 -0
- package/lib/module/config/features/LogsConfiguration.js.map +1 -0
- package/lib/module/config/features/LogsConfiguration.type.js +2 -0
- package/lib/module/config/features/LogsConfiguration.type.js.map +1 -0
- package/lib/module/config/features/LogsConfigurationNative.js +2 -0
- package/lib/module/config/features/LogsConfigurationNative.js.map +1 -0
- package/lib/module/config/features/RumConfiguration.js +114 -0
- package/lib/module/config/features/RumConfiguration.js.map +1 -0
- package/lib/module/config/features/RumConfiguration.type.js +2 -0
- package/lib/module/config/features/RumConfiguration.type.js.map +1 -0
- package/lib/module/config/features/RumConfigurationNative.js +2 -0
- package/lib/module/config/features/RumConfigurationNative.js.map +1 -0
- package/lib/module/config/features/TraceConfiguration.js +18 -0
- package/lib/module/config/features/TraceConfiguration.js.map +1 -0
- package/lib/module/config/features/TraceConfiguration.type.js +2 -0
- package/lib/module/config/features/TraceConfiguration.type.js.map +1 -0
- package/lib/module/config/features/TraceConfigurationNative.js +2 -0
- package/lib/module/config/features/TraceConfigurationNative.js.map +1 -0
- package/lib/module/config/types/BatchProcessingLevel.js +25 -0
- package/lib/module/config/types/BatchProcessingLevel.js.map +1 -0
- package/lib/module/config/types/BatchSize.js +26 -0
- package/lib/module/config/types/BatchSize.js.map +1 -0
- package/lib/module/config/types/InitializationMode.js +11 -0
- package/lib/module/config/types/InitializationMode.js.map +1 -0
- package/lib/module/config/types/InitializationModeForTelemetry.js +2 -0
- package/lib/module/config/types/InitializationModeForTelemetry.js.map +1 -0
- package/lib/module/{ProxyConfiguration.js → config/types/ProxyConfiguration.js} +6 -0
- package/lib/module/config/types/ProxyConfiguration.js.map +1 -0
- package/lib/module/config/types/SdkVerbosity.js.map +1 -0
- package/lib/module/config/types/TrackingConsent.js.map +1 -0
- package/lib/module/config/types/UploadFrequency.js +25 -0
- package/lib/module/config/types/UploadFrequency.js.map +1 -0
- package/lib/module/config/types/VitalsUpdateFrequency.js +13 -0
- package/lib/module/config/types/VitalsUpdateFrequency.js.map +1 -0
- package/lib/module/config/types/index.js +15 -0
- package/lib/module/config/types/index.js.map +1 -0
- package/lib/module/index.js +13 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/logs/DdLogs.js +13 -9
- package/lib/module/logs/DdLogs.js.map +1 -1
- package/lib/module/logs/eventMapper.js +4 -1
- package/lib/module/logs/eventMapper.js.map +1 -1
- package/lib/module/metro/plugin/metroSerializer.js.map +1 -1
- package/lib/module/nativeModulesTypes.js +1 -43
- package/lib/module/nativeModulesTypes.js.map +1 -1
- package/lib/module/rum/DdRum.js +54 -26
- package/lib/module/rum/DdRum.js.map +1 -1
- package/lib/module/rum/helper.js +49 -0
- package/lib/module/rum/helper.js.map +1 -0
- package/lib/module/rum/instrumentation/DdRumErrorTracking.js +14 -18
- package/lib/module/rum/instrumentation/DdRumErrorTracking.js.map +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.js +16 -26
- package/lib/module/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.js.map +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/DdEventsInterceptor.js +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/DdEventsInterceptor.js.map +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.js +15 -5
- package/lib/module/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/DdRumResourceTracking.js +33 -21
- package/lib/module/rum/instrumentation/resourceTracking/DdRumResourceTracking.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.js +22 -1
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.js +13 -2
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.js +10 -11
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.js +2 -0
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.js.map +1 -0
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.js +27 -33
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.js +54 -0
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.js.map +1 -0
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.js +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/headers.js +30 -0
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/headers.js.map +1 -0
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.js +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.js +14 -3
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.js +90 -48
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.js +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.js.map +1 -1
- package/lib/module/rum/types.js +0 -9
- package/lib/module/rum/types.js.map +1 -1
- package/lib/module/sdk/AccountInfoSingleton/AccountInfoSingleton.js +39 -0
- package/lib/module/sdk/AccountInfoSingleton/AccountInfoSingleton.js.map +1 -0
- package/lib/module/sdk/AccountInfoSingleton/types.js +2 -0
- package/lib/module/sdk/AccountInfoSingleton/types.js.map +1 -0
- package/lib/module/sdk/AttributesEncoding/attributesEncoding.js +46 -0
- package/lib/module/sdk/AttributesEncoding/attributesEncoding.js.map +1 -0
- package/lib/module/sdk/AttributesEncoding/defaultEncoders.js +134 -0
- package/lib/module/sdk/AttributesEncoding/defaultEncoders.js.map +1 -0
- package/lib/module/{utils → sdk/AttributesEncoding}/errorUtils.js +37 -20
- package/lib/module/sdk/AttributesEncoding/errorUtils.js.map +1 -0
- package/lib/module/sdk/AttributesEncoding/helpers.js +115 -0
- package/lib/module/sdk/AttributesEncoding/helpers.js.map +1 -0
- package/lib/module/sdk/AttributesEncoding/types.js +2 -0
- package/lib/module/sdk/AttributesEncoding/types.js.map +1 -0
- package/lib/module/sdk/AttributesEncoding/utils.js +28 -0
- package/lib/module/sdk/AttributesEncoding/utils.js.map +1 -0
- package/lib/module/sdk/AttributesSingleton/AttributesSingleton.js +27 -1
- package/lib/module/sdk/AttributesSingleton/AttributesSingleton.js.map +1 -1
- package/lib/module/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.js +2 -2
- package/lib/module/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.js.map +1 -1
- package/lib/module/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.js +1 -1
- package/lib/module/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.js.map +1 -1
- package/lib/module/sdk/DatadogProvider/Buffer/BoundedBuffer.js +4 -4
- package/lib/module/sdk/DatadogProvider/Buffer/BoundedBuffer.js.map +1 -1
- package/lib/module/sdk/DatadogProvider/DatadogProvider.js +9 -8
- package/lib/module/sdk/DatadogProvider/DatadogProvider.js.map +1 -1
- package/lib/module/sdk/DatadogProvider/DatadogProviderState.js +21 -0
- package/lib/module/sdk/DatadogProvider/DatadogProviderState.js.map +1 -0
- package/lib/module/sdk/DdSdk.js +4 -4
- package/lib/module/sdk/DdSdk.js.map +1 -1
- package/lib/module/sdk/DdSdkInternal.js +80 -0
- package/lib/module/sdk/DdSdkInternal.js.map +1 -0
- package/lib/module/sdk/EventMappers/EventMapper.js +6 -3
- package/lib/module/sdk/EventMappers/EventMapper.js.map +1 -1
- package/lib/module/sdk/GlobalState/GlobalState.js +5 -10
- package/lib/module/sdk/GlobalState/GlobalState.js.map +1 -1
- package/lib/module/sdk/UserInfoSingleton/UserInfoSingleton.js +6 -1
- package/lib/module/sdk/UserInfoSingleton/UserInfoSingleton.js.map +1 -1
- package/lib/module/specs/NativeDdRum.js.map +1 -1
- package/lib/module/specs/NativeDdSdk.js.map +1 -1
- package/lib/module/trace/DdTrace.js +7 -6
- package/lib/module/trace/DdTrace.js.map +1 -1
- package/lib/module/types.js +22 -42
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/longTasksUtils.js.map +1 -1
- package/lib/module/utils/singletonUtils.js +14 -0
- package/lib/module/utils/singletonUtils.js.map +1 -0
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/DdAttributes.d.ts.map +1 -0
- package/lib/typescript/DdSdkReactNative.d.ts +49 -12
- package/lib/typescript/DdSdkReactNative.d.ts.map +1 -1
- package/lib/typescript/InternalLog.d.ts +1 -1
- package/lib/typescript/InternalLog.d.ts.map +1 -1
- package/lib/typescript/config/DatadogProviderConfiguration.d.ts +12 -0
- package/lib/typescript/config/DatadogProviderConfiguration.d.ts.map +1 -0
- package/lib/typescript/config/FileBasedConfiguration.d.ts +17 -0
- package/lib/typescript/config/FileBasedConfiguration.d.ts.map +1 -0
- package/lib/typescript/config/FileBasedConfiguration.type.d.ts +52 -0
- package/lib/typescript/config/FileBasedConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/config/async/AutoInstrumentationConfiguration.d.ts +60 -0
- package/lib/typescript/config/async/AutoInstrumentationConfiguration.d.ts.map +1 -0
- package/lib/typescript/config/async/PartialInitializationConfiguration.d.ts +47 -0
- package/lib/typescript/config/async/PartialInitializationConfiguration.d.ts.map +1 -0
- package/lib/typescript/config/async/asyncInitializationHelper.d.ts +5 -0
- package/lib/typescript/config/async/asyncInitializationHelper.d.ts.map +1 -0
- package/lib/typescript/config/features/CoreConfiguration.d.ts +52 -0
- package/lib/typescript/config/features/CoreConfiguration.d.ts.map +1 -0
- package/lib/typescript/config/features/CoreConfiguration.type.d.ts +90 -0
- package/lib/typescript/config/features/CoreConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/config/features/CoreConfigurationNative.d.ts +54 -0
- package/lib/typescript/config/features/CoreConfigurationNative.d.ts.map +1 -0
- package/lib/typescript/config/features/LogsConfiguration.d.ts +17 -0
- package/lib/typescript/config/features/LogsConfiguration.d.ts.map +1 -0
- package/lib/typescript/config/features/LogsConfiguration.type.d.ts +24 -0
- package/lib/typescript/config/features/LogsConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/config/features/LogsConfigurationNative.d.ts +6 -0
- package/lib/typescript/config/features/LogsConfigurationNative.d.ts.map +1 -0
- package/lib/typescript/config/features/RumConfiguration.d.ts +66 -0
- package/lib/typescript/config/features/RumConfiguration.d.ts.map +1 -0
- package/lib/typescript/config/features/RumConfiguration.type.d.ts +131 -0
- package/lib/typescript/config/features/RumConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/config/features/RumConfigurationNative.d.ts +25 -0
- package/lib/typescript/config/features/RumConfigurationNative.d.ts.map +1 -0
- package/lib/typescript/config/features/TraceConfiguration.d.ts +10 -0
- package/lib/typescript/config/features/TraceConfiguration.d.ts.map +1 -0
- package/lib/typescript/config/features/TraceConfiguration.type.d.ts +11 -0
- package/lib/typescript/config/features/TraceConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/config/features/TraceConfigurationNative.d.ts +4 -0
- package/lib/typescript/config/features/TraceConfigurationNative.d.ts.map +1 -0
- package/lib/typescript/config/types/BatchProcessingLevel.d.ts +18 -0
- package/lib/typescript/config/types/BatchProcessingLevel.d.ts.map +1 -0
- package/lib/typescript/config/types/BatchSize.d.ts +19 -0
- package/lib/typescript/config/types/BatchSize.d.ts.map +1 -0
- package/lib/typescript/config/types/InitializationMode.d.ts +5 -0
- package/lib/typescript/config/types/InitializationMode.d.ts.map +1 -0
- package/lib/typescript/config/types/InitializationModeForTelemetry.d.ts +2 -0
- package/lib/typescript/config/types/InitializationModeForTelemetry.d.ts.map +1 -0
- package/lib/typescript/config/types/ProxyConfiguration.d.ts.map +1 -0
- package/lib/typescript/config/types/SdkVerbosity.d.ts.map +1 -0
- package/lib/typescript/config/types/TrackingConsent.d.ts.map +1 -0
- package/lib/typescript/config/types/UploadFrequency.d.ts +18 -0
- package/lib/typescript/config/types/UploadFrequency.d.ts.map +1 -0
- package/lib/typescript/config/types/VitalsUpdateFrequency.d.ts +7 -0
- package/lib/typescript/config/types/VitalsUpdateFrequency.d.ts.map +1 -0
- package/lib/typescript/config/types/index.d.ts +10 -0
- package/lib/typescript/config/types/index.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +20 -9
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/logs/DdLogs.d.ts +2 -1
- package/lib/typescript/logs/DdLogs.d.ts.map +1 -1
- package/lib/typescript/logs/eventMapper.d.ts +3 -2
- package/lib/typescript/logs/eventMapper.d.ts.map +1 -1
- package/lib/typescript/logs/types.d.ts +1 -16
- package/lib/typescript/logs/types.d.ts.map +1 -1
- package/lib/typescript/nativeModulesTypes.d.ts +2 -15
- package/lib/typescript/nativeModulesTypes.d.ts.map +1 -1
- package/lib/typescript/rum/DdRum.d.ts +10 -1
- package/lib/typescript/rum/DdRum.d.ts.map +1 -1
- package/lib/typescript/rum/eventMappers/errorEventMapper.d.ts +1 -1
- package/lib/typescript/rum/eventMappers/errorEventMapper.d.ts.map +1 -1
- package/lib/typescript/rum/helper.d.ts +10 -0
- package/lib/typescript/rum/helper.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/DdRumErrorTracking.d.ts.map +1 -1
- package/lib/typescript/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts +6 -6
- package/lib/typescript/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts.map +1 -1
- package/lib/typescript/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts +7 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts.map +1 -1
- package/lib/typescript/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +12 -6
- package/lib/typescript/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -1
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts.map +1 -1
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts +8 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts.map +1 -1
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts +5 -17
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts.map +1 -1
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts +20 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +3 -24
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts.map +1 -1
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts +12 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts +24 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +2 -1
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts.map +1 -1
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts.map +1 -1
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +1 -1
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts.map +1 -1
- package/lib/typescript/rum/types.d.ts +47 -7
- package/lib/typescript/rum/types.d.ts.map +1 -1
- package/lib/typescript/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts +15 -0
- package/lib/typescript/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts.map +1 -0
- package/lib/typescript/sdk/AccountInfoSingleton/types.d.ts +6 -0
- package/lib/typescript/sdk/AccountInfoSingleton/types.d.ts.map +1 -0
- package/lib/typescript/sdk/AttributesEncoding/attributesEncoding.d.ts +13 -0
- package/lib/typescript/sdk/AttributesEncoding/attributesEncoding.d.ts.map +1 -0
- package/lib/typescript/sdk/AttributesEncoding/defaultEncoders.d.ts +33 -0
- package/lib/typescript/sdk/AttributesEncoding/defaultEncoders.d.ts.map +1 -0
- package/lib/typescript/{utils → sdk/AttributesEncoding}/errorUtils.d.ts +4 -4
- package/lib/typescript/sdk/AttributesEncoding/errorUtils.d.ts.map +1 -0
- package/lib/typescript/sdk/AttributesEncoding/helpers.d.ts +17 -0
- package/lib/typescript/sdk/AttributesEncoding/helpers.d.ts.map +1 -0
- package/lib/typescript/sdk/AttributesEncoding/types.d.ts +21 -0
- package/lib/typescript/sdk/AttributesEncoding/types.d.ts.map +1 -0
- package/lib/typescript/sdk/AttributesEncoding/utils.d.ts +7 -0
- package/lib/typescript/sdk/AttributesEncoding/utils.d.ts.map +1 -0
- package/lib/typescript/sdk/AttributesSingleton/AttributesSingleton.d.ts +5 -1
- package/lib/typescript/sdk/AttributesSingleton/AttributesSingleton.d.ts.map +1 -1
- package/lib/typescript/sdk/DatadogProvider/DatadogProvider.d.ts +4 -3
- package/lib/typescript/sdk/DatadogProvider/DatadogProvider.d.ts.map +1 -1
- package/lib/typescript/sdk/DatadogProvider/DatadogProviderState.d.ts +9 -0
- package/lib/typescript/sdk/DatadogProvider/DatadogProviderState.d.ts.map +1 -0
- package/lib/typescript/sdk/DdSdk.d.ts +2 -3
- package/lib/typescript/sdk/DdSdk.d.ts.map +1 -1
- package/lib/typescript/sdk/DdSdkInternal.d.ts +39 -0
- package/lib/typescript/sdk/DdSdkInternal.d.ts.map +1 -0
- package/lib/typescript/sdk/EventMappers/EventMapper.d.ts +3 -1
- package/lib/typescript/sdk/EventMappers/EventMapper.d.ts.map +1 -1
- package/lib/typescript/sdk/GlobalState/GlobalState.d.ts +3 -3
- package/lib/typescript/sdk/GlobalState/GlobalState.d.ts.map +1 -1
- package/lib/typescript/sdk/UserInfoSingleton/UserInfoSingleton.d.ts +2 -1
- package/lib/typescript/sdk/UserInfoSingleton/UserInfoSingleton.d.ts.map +1 -1
- package/lib/typescript/sdk/UserInfoSingleton/types.d.ts +1 -2
- package/lib/typescript/sdk/UserInfoSingleton/types.d.ts.map +1 -1
- package/lib/typescript/specs/NativeDdRum.d.ts +45 -0
- package/lib/typescript/specs/NativeDdRum.d.ts.map +1 -1
- package/lib/typescript/specs/NativeDdSdk.d.ts +34 -6
- package/lib/typescript/specs/NativeDdSdk.d.ts.map +1 -1
- package/lib/typescript/trace/DdTrace.d.ts +1 -2
- package/lib/typescript/trace/DdTrace.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +74 -92
- package/lib/typescript/types.d.ts.map +1 -1
- package/lib/typescript/utils/longTasksUtils.d.ts +1 -1
- package/lib/typescript/utils/longTasksUtils.d.ts.map +1 -1
- package/lib/typescript/utils/singletonUtils.d.ts +2 -0
- package/lib/typescript/utils/singletonUtils.d.ts.map +1 -0
- package/lib/typescript/version.d.ts +1 -1
- package/lib/typescript/version.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/DdSdkReactNative.tsx +246 -104
- package/src/InternalLog.tsx +1 -1
- package/src/__tests__/DdSdkReactNative.test.tsx +415 -207
- package/src/__tests__/DdSdkReactNativeConfiguration.test.ts +237 -153
- package/src/__tests__/InternalLog.test.tsx +1 -1
- package/src/__tests__/rum/instrumentation/DdEventsInterceptor.test.tsx +2 -2
- package/src/__tests__/rum/instrumentation/DdRumErrorTracking.test.tsx +139 -216
- package/src/__tests__/rum/instrumentation/DdRumUserInteractionTracking.test.tsx +10 -7
- package/src/config/DatadogProviderConfiguration.ts +17 -0
- package/src/config/FileBasedConfiguration.ts +464 -0
- package/src/config/FileBasedConfiguration.type.ts +66 -0
- package/src/config/__tests__/FileBasedConfiguration.test.ts +334 -0
- package/src/config/__tests__/__fixtures__/configuration-all-fields.json +57 -0
- package/src/config/__tests__/__fixtures__/malformed-configuration.json +4 -0
- package/src/config/async/AutoInstrumentationConfiguration.ts +126 -0
- package/src/config/async/PartialInitializationConfiguration.ts +58 -0
- package/src/config/async/asyncInitializationHelper.tsx +51 -0
- package/src/config/features/CoreConfiguration.ts +130 -0
- package/src/config/features/CoreConfiguration.type.ts +119 -0
- package/src/config/features/CoreConfigurationNative.ts +50 -0
- package/src/config/features/LogsConfiguration.ts +38 -0
- package/src/config/features/LogsConfiguration.type.ts +33 -0
- package/src/config/features/LogsConfigurationNative.ts +10 -0
- package/src/config/features/RumConfiguration.ts +137 -0
- package/src/config/features/RumConfiguration.type.ts +164 -0
- package/src/config/features/RumConfigurationNative.ts +26 -0
- package/src/config/features/TraceConfiguration.ts +24 -0
- package/src/config/features/TraceConfiguration.type.ts +17 -0
- package/src/config/features/TraceConfigurationNative.ts +8 -0
- package/src/config/types/BatchProcessingLevel.ts +23 -0
- package/src/config/types/BatchSize.ts +24 -0
- package/src/config/types/InitializationMode.ts +9 -0
- package/src/config/types/InitializationModeForTelemetry.ts +11 -0
- package/src/{ProxyConfiguration.tsx → config/types/ProxyConfiguration.ts} +6 -0
- package/src/config/types/UploadFrequency.tsx +23 -0
- package/src/config/types/VitalsUpdateFrequency.ts +11 -0
- package/src/config/types/index.ts +15 -0
- package/src/index.tsx +33 -16
- package/src/logs/DdLogs.ts +14 -13
- package/src/logs/__tests__/DdLogs.test.ts +60 -107
- package/src/logs/__tests__/eventMapper.test.ts +1 -1
- package/src/logs/eventMapper.ts +5 -4
- package/src/logs/types.ts +1 -20
- package/src/metro/plugin/metroSerializer.ts +3 -3
- package/src/nativeModulesTypes.ts +2 -17
- package/src/rum/DdRum.ts +139 -42
- package/src/rum/__tests__/DdRum.test.ts +217 -47
- package/src/rum/eventMappers/errorEventMapper.ts +1 -1
- package/src/rum/helper.ts +62 -0
- package/src/rum/instrumentation/DdRumErrorTracking.tsx +20 -38
- package/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.ts +21 -35
- package/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.tsx +1 -1
- package/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx +18 -5
- package/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.tsx +44 -23
- package/src/rum/instrumentation/resourceTracking/__tests__/DdRumResourceTracking.test.ts +2 -2
- package/src/rum/instrumentation/resourceTracking/__tests__/__utils__/XMLHttpRequestMock.ts +44 -23
- package/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.ts +24 -1
- package/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.tsx +17 -2
- package/src/rum/instrumentation/resourceTracking/distributedTracing/__tests__/distributedTracing.test.ts +327 -1
- package/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.tsx +22 -31
- package/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.ts +29 -0
- package/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.ts +54 -35
- package/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.ts +80 -0
- package/src/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.ts +1 -1
- package/src/rum/instrumentation/resourceTracking/distributedTracing/headers.ts +29 -0
- package/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.ts +1 -1
- package/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.ts +19 -7
- package/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/__tests__/XHRProxy.test.ts +177 -119
- package/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/__tests__/baggageHeaderUtils.test.ts +85 -13
- package/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.ts +110 -52
- package/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.ts +1 -1
- package/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.ts +1 -1
- package/src/rum/types.ts +68 -8
- package/src/sdk/AccountInfoSingleton/AccountInfoSingleton.ts +49 -0
- package/src/sdk/AccountInfoSingleton/__tests__/AccountInfoSingleton.test.ts +90 -0
- package/src/sdk/AccountInfoSingleton/types.ts +11 -0
- package/src/sdk/AttributesEncoding/__tests__/attributesEncoding.test.ts +518 -0
- package/src/sdk/AttributesEncoding/__tests__/defaultEncoders.test.ts +198 -0
- package/src/sdk/AttributesEncoding/attributesEncoding.ts +56 -0
- package/src/sdk/AttributesEncoding/defaultEncoders.ts +175 -0
- package/src/{utils → sdk/AttributesEncoding}/errorUtils.ts +50 -22
- package/src/sdk/AttributesEncoding/helpers.ts +176 -0
- package/src/sdk/AttributesEncoding/types.ts +33 -0
- package/src/sdk/AttributesEncoding/utils.ts +31 -0
- package/src/sdk/AttributesSingleton/AttributesSingleton.ts +25 -1
- package/src/sdk/AttributesSingleton/__tests__/AttributesSingleton.test.ts +52 -8
- package/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.tsx +2 -2
- package/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.tsx +1 -1
- package/src/sdk/DatadogInternalBridge/__tests__/DdSdkNativeBridge.test.tsx +1 -1
- package/src/sdk/DatadogProvider/Buffer/BoundedBuffer.ts +4 -4
- package/src/sdk/DatadogProvider/Buffer/__tests__/BoundedBuffer.test.ts +5 -5
- package/src/sdk/DatadogProvider/DatadogProvider.tsx +12 -16
- package/src/sdk/DatadogProvider/DatadogProviderState.ts +30 -0
- package/src/sdk/DatadogProvider/__tests__/__utils__/renderWithProvider.tsx +18 -7
- package/src/sdk/DatadogProvider/__tests__/initialization.test.tsx +59 -33
- package/src/sdk/DatadogProvider/__tests__/initializationModes.test.tsx +26 -10
- package/src/sdk/DdSdk.ts +8 -5
- package/src/sdk/DdSdkInternal.ts +121 -0
- package/src/sdk/EventMappers/EventMapper.ts +9 -4
- package/src/sdk/EventMappers/__tests__/EventMapper.test.ts +3 -3
- package/src/sdk/GlobalState/GlobalState.tsx +10 -11
- package/src/sdk/UserInfoSingleton/UserInfoSingleton.ts +9 -2
- package/src/sdk/UserInfoSingleton/__tests__/UserInfoSingleton.test.ts +46 -9
- package/src/sdk/UserInfoSingleton/types.ts +1 -4
- package/src/specs/NativeDdRum.ts +65 -0
- package/src/specs/NativeDdSdk.ts +40 -6
- package/src/trace/DdTrace.ts +11 -7
- package/src/trace/__tests__/DdTrace.test.ts +7 -8
- package/src/types.tsx +97 -76
- package/src/utils/__tests__/errorUtils.test.ts +1 -1
- package/src/utils/__tests__/singletonUtils.test.ts +75 -0
- package/src/utils/longTasksUtils.ts +1 -3
- package/src/utils/singletonUtils.ts +17 -0
- package/src/version.ts +1 -1
- package/lib/commonjs/DdSdkReactNativeConfiguration.js +0 -412
- package/lib/commonjs/DdSdkReactNativeConfiguration.js.map +0 -1
- package/lib/commonjs/ProxyConfiguration.js.map +0 -1
- package/lib/commonjs/SdkVerbosity.js.map +0 -1
- package/lib/commonjs/TrackingConsent.js.map +0 -1
- package/lib/commonjs/rum/DdAttributes.js.map +0 -1
- package/lib/commonjs/sdk/FileBasedConfiguration/FileBasedConfiguration.js +0 -185
- package/lib/commonjs/sdk/FileBasedConfiguration/FileBasedConfiguration.js.map +0 -1
- package/lib/commonjs/utils/argsUtils.js +0 -41
- package/lib/commonjs/utils/argsUtils.js.map +0 -1
- package/lib/commonjs/utils/errorUtils.js.map +0 -1
- package/lib/module/DdSdkReactNativeConfiguration.js +0 -403
- package/lib/module/DdSdkReactNativeConfiguration.js.map +0 -1
- package/lib/module/ProxyConfiguration.js.map +0 -1
- package/lib/module/SdkVerbosity.js.map +0 -1
- package/lib/module/TrackingConsent.js.map +0 -1
- package/lib/module/rum/DdAttributes.js.map +0 -1
- package/lib/module/sdk/FileBasedConfiguration/FileBasedConfiguration.js +0 -176
- package/lib/module/sdk/FileBasedConfiguration/FileBasedConfiguration.js.map +0 -1
- package/lib/module/utils/argsUtils.js +0 -35
- package/lib/module/utils/argsUtils.js.map +0 -1
- package/lib/module/utils/errorUtils.js.map +0 -1
- package/lib/typescript/DdSdkReactNativeConfiguration.d.ts +0 -376
- package/lib/typescript/DdSdkReactNativeConfiguration.d.ts.map +0 -1
- package/lib/typescript/ProxyConfiguration.d.ts.map +0 -1
- package/lib/typescript/SdkVerbosity.d.ts.map +0 -1
- package/lib/typescript/TrackingConsent.d.ts.map +0 -1
- package/lib/typescript/rum/DdAttributes.d.ts.map +0 -1
- package/lib/typescript/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts +0 -34
- package/lib/typescript/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts.map +0 -1
- package/lib/typescript/utils/argsUtils.d.ts +0 -8
- package/lib/typescript/utils/argsUtils.d.ts.map +0 -1
- package/lib/typescript/utils/errorUtils.d.ts.map +0 -1
- package/src/DdSdkReactNativeConfiguration.tsx +0 -582
- package/src/sdk/FileBasedConfiguration/FileBasedConfiguration.ts +0 -241
- package/src/sdk/FileBasedConfiguration/__tests__/FileBasedConfiguration.test.ts +0 -255
- package/src/sdk/FileBasedConfiguration/__tests__/__fixtures__/configuration-all-fields.json +0 -27
- package/src/sdk/FileBasedConfiguration/__tests__/__fixtures__/malformed-configuration.json +0 -5
- package/src/utils/__tests__/argsUtils.test.ts +0 -66
- package/src/utils/argsUtils.ts +0 -41
- /package/lib/commonjs/{rum/DdAttributes.js → DdAttributes.js} +0 -0
- /package/lib/commonjs/{SdkVerbosity.js → config/types/SdkVerbosity.js} +0 -0
- /package/lib/commonjs/{TrackingConsent.js → config/types/TrackingConsent.js} +0 -0
- /package/lib/module/{rum/DdAttributes.js → DdAttributes.js} +0 -0
- /package/lib/module/{SdkVerbosity.js → config/types/SdkVerbosity.js} +0 -0
- /package/lib/module/{TrackingConsent.js → config/types/TrackingConsent.js} +0 -0
- /package/lib/typescript/{rum/DdAttributes.d.ts → DdAttributes.d.ts} +0 -0
- /package/lib/typescript/{ProxyConfiguration.d.ts → config/types/ProxyConfiguration.d.ts} +0 -0
- /package/lib/typescript/{SdkVerbosity.d.ts → config/types/SdkVerbosity.d.ts} +0 -0
- /package/lib/typescript/{TrackingConsent.d.ts → config/types/TrackingConsent.d.ts} +0 -0
- /package/src/{rum/DdAttributes.ts → DdAttributes.ts} +0 -0
- /package/src/{SdkVerbosity.tsx → config/types/SdkVerbosity.ts} +0 -0
- /package/src/{TrackingConsent.tsx → config/types/TrackingConsent.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DatadogProviderConfiguration","DEFAULTS","SdkVerbosity","TrackingConsent","PropagatorType","FileBasedConfiguration","constructor","params","configuration","getJSONConfiguration","clientToken","env","applicationId","trackInteractions","trackResources","trackErrors","trackingConsent","useAccessibilityLabel","longTaskThresholdMs","verbosity","actionNameAttribute","site","resourceTracingSamplingRate","firstPartyHosts","getFirstPartyHosts","errorEventMapper","resourceEventMapper","actionEventMapper","resolveJSONConfiguration","userSpecifiedConfiguration","undefined","jsonContent","require","console","error","buildTrackingConsent","buildSdkVerbosity","buildFirstPartyHosts","map","match","propagatorTypes","formatPropagatorType","message","propagatorType","toLowerCase","B3","B3MULTI","DATADOG","TRACECONTEXT","Error","GRANTED","PENDING","NOT_GRANTED","DEBUG","INFO","WARN","ERROR"],"sourceRoot":"../../../../src","sources":["sdk/FileBasedConfiguration/FileBasedConfiguration.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAGA,SACIA,4BAA4B,EAC5BC,QAAQ,QACL,qCAAqC;AAC5C,SAASC,YAAY,QAAQ,o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,OAAOA,SAAS;EACpB;EACA,QAAQd,eAAe,CAAC4B,WAAW,CAAC,CAAC;IACjC,KAAK,SAAS;MAAE;QACZ,OAAOzC,eAAe,CAAC+C,OAAO;MAClC;IACA,KAAK,SAAS;MAAE;QACZ,OAAO/C,eAAe,CAACgD,OAAO;MAClC;IACA,KAAK,aAAa;MAAE;QAChB,OAAOhD,eAAe,CAACiD,WAAW;MACtC;IACA;MAAS;QACL,OAAOnD,QAAQ,CAACe,eAAe;MACnC;EACJ;AACJ,CAAC;AAED,MAAMoB,iBAAiB,GACnBjB,SAA6B,IACF;EAC3B,IAAIA,SAAS,KAAKW,SAAS,EAAE;IACzB,OAAOA,SAAS;EACpB;EACA,QAAQX,SAAS,CAACyB,WAAW,CAAC,CAAC;IAC3B,KAAK,OAAO;MAAE;QACV,OAAO1C,YAAY,CAACmD,KAAK;MAC7B;IACA,KAAK,MAAM;MAAE;QACT,OAAOnD,YAAY,CAACoD,IAAI;MAC5B;IACA,KAAK,MAAM;MAAE;QACT,OAAOpD,YAAY,CAACqD,IAAI;MAC5B;IACA,KAAK,OAAO;MAAE;QACV,OAAOrD,YAAY,CAACsD,KAAK;MAC7B;IACA;MAAS;QACL,OAAO1B,SAAS;MACpB;EACJ;AACJ,CAAC","ignoreList":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
2
|
-
/*
|
|
3
|
-
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
4
|
-
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
5
|
-
* Copyright 2016-Present Datadog, Inc.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { InternalLog } from '../InternalLog';
|
|
9
|
-
import { SdkVerbosity } from '../SdkVerbosity';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Validates the given context before passing it to the native SDKs.
|
|
13
|
-
* @param context the original context
|
|
14
|
-
* @returns the original context if it's a plain object, an object wrapping the context if it's an array,
|
|
15
|
-
* or an empty object if the context is of any other type.
|
|
16
|
-
*/
|
|
17
|
-
export const validateContext = context => {
|
|
18
|
-
if (!context) {
|
|
19
|
-
return {};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// eslint-disable-next-line eqeqeq
|
|
23
|
-
if (context.constructor == Object) {
|
|
24
|
-
return context;
|
|
25
|
-
}
|
|
26
|
-
if (Array.isArray(context)) {
|
|
27
|
-
InternalLog.log("The given context is an array, it will be nested in 'context' property inside a new object.", SdkVerbosity.WARN);
|
|
28
|
-
return {
|
|
29
|
-
context
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
InternalLog.log(`The given context (${context}) is invalid - it must be an object. Context will be empty.`, SdkVerbosity.ERROR);
|
|
33
|
-
return {};
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=argsUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["InternalLog","SdkVerbosity","validateContext","context","constructor","Object","Array","isArray","log","WARN","ERROR"],"sourceRoot":"../../../src","sources":["utils/argsUtils.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,QAAQ,gBAAgB;AAC5C,SAASC,YAAY,QAAQ,iBAAiB;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAIC,OAAY,IAAK;EAC7C,IAAI,CAACA,OAAO,EAAE;IACV,OAAO,CAAC,CAAC;EACb;;EAEA;EACA,IAAIA,OAAO,CAACC,WAAW,IAAIC,MAAM,EAAE;IAC/B,OAAOF,OAAO;EAClB;EAEA,IAAIG,KAAK,CAACC,OAAO,CAACJ,OAAO,CAAC,EAAE;IACxBH,WAAW,CAACQ,GAAG,CACX,6FAA6F,EAC7FP,YAAY,CAACQ,IACjB,CAAC;IACD,OAAO;MAAEN;IAAQ,CAAC;EACtB;EAEAH,WAAW,CAACQ,GAAG,CACX,sBAAsBL,OAAO,6DAA6D,EAC1FF,YAAY,CAACS,KACjB,CAAC;EAED,OAAO,CAAC,CAAC;AACb,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["EMPTY_MESSAGE","EMPTY_STACK_TRACE","DEFAULT_ERROR_NAME","getErrorMessage","error","message","undefined","String","getErrorStackTrace","stack","stacktrace","componentStack","sourceURL","line","column","e","getErrorName","name"],"sourceRoot":"../../../src","sources":["utils/errorUtils.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,aAAa,GAAG,eAAe;AAC5C,OAAO,MAAMC,iBAAiB,GAAG,EAAE;AACnC,OAAO,MAAMC,kBAAkB,GAAG,OAAO;AAEzC,OAAO,MAAMC,eAAe,GAAIC,KAAsB,IAAa;EAC/D,IAAIC,OAAO,GAAGL,aAAa;EAC3B,IAAII,KAAK,KAAKE,SAAS,IAAIF,KAAK,KAAK,IAAI,EAAE;IACvCC,OAAO,GAAGL,aAAa;EAC3B,CAAC,MAAM,IAAI,OAAOI,KAAK,KAAK,QAAQ,IAAI,SAAS,IAAIA,KAAK,EAAE;IACxDC,OAAO,GAAGE,MAAM,CAACH,KAAK,CAACC,OAAO,CAAC;EACnC,CAAC,MAAM;IACHA,OAAO,GAAGE,MAAM,CAACH,KAAK,CAAC;EAC3B;EAEA,OAAOC,OAAO;AAClB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,kBAAkB,GAAIJ,KAAsB,IAAa;EAClE,IAAIK,KAAK,GAAGR,iBAAiB;EAE7B,IAAI;IACA,IAAIG,KAAK,KAAKE,SAAS,IAAIF,KAAK,KAAK,IAAI,EAAE;MACvCK,KAAK,GAAGR,iBAAiB;IAC7B,CAAC,MAAM,IAAI,OAAOG,KAAK,KAAK,QAAQ,EAAE;MAClCK,KAAK,GAAGR,iBAAiB;IAC7B,CAAC,MAAM,IAAI,OAAOG,KAAK,KAAK,QAAQ,EAAE;MAClC,IAAI,YAAY,IAAIA,KAAK,EAAE;QACvBK,KAAK,GAAGF,MAAM,CAACH,KAAK,CAACM,UAAU,CAAC;MACpC,CAAC,MAAM,IAAI,OAAO,IAAIN,KAAK,EAAE;QACzBK,KAAK,GAAGF,MAAM,CAACH,KAAK,CAACK,KAAK,CAAC;MAC/B,CAAC,MAAM,IAAI,gBAAgB,IAAIL,KAAK,EAAE;QAClCK,KAAK,GAAGF,MAAM,CAACH,KAAK,CAACO,cAAc,CAAC;MACxC,CAAC,MAAM,IACH,WAAW,IAAIP,KAAK,IACpB,MAAM,IAAIA,KAAK,IACf,QAAQ,IAAIA,KAAK,EACnB;QACEK,KAAK,GAAG,MAAML,KAAK,CAACQ,SAAS,IAAIR,KAAK,CAACS,IAAI,IAAIT,KAAK,CAACU,MAAM,EAAE;MACjE;IACJ;EACJ,CAAC,CAAC,OAAOC,CAAC,EAAE;IACR;EAAA;EAEJ,OAAON,KAAK;AAChB,CAAC;AAED,OAAO,MAAMO,YAAY,GAAIZ,KAAc,IAAa;EACpD,IAAI;IACA,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,EAAE;MAC7C,OAAOF,kBAAkB;IAC7B;IACA,IAAI,OAAQE,KAAK,CAASa,IAAI,KAAK,QAAQ,EAAE;MACzC,OAAQb,KAAK,CAASa,IAAI;IAC9B;EACJ,CAAC,CAAC,OAAOF,CAAC,EAAE;IACR;EAAA;EAEJ,OAAOb,kBAAkB;AAC7B,CAAC","ignoreList":[]}
|
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
import type { ProxyConfiguration } from './ProxyConfiguration';
|
|
2
|
-
import type { SdkVerbosity } from './SdkVerbosity';
|
|
3
|
-
import { TrackingConsent } from './TrackingConsent';
|
|
4
|
-
import type { LogEventMapper } from './logs/types';
|
|
5
|
-
import type { ActionEventMapper } from './rum/eventMappers/actionEventMapper';
|
|
6
|
-
import type { ErrorEventMapper } from './rum/eventMappers/errorEventMapper';
|
|
7
|
-
import type { ResourceEventMapper } from './rum/eventMappers/resourceEventMapper';
|
|
8
|
-
import type { FirstPartyHost } from './rum/types';
|
|
9
|
-
export declare enum VitalsUpdateFrequency {
|
|
10
|
-
FREQUENT = "FREQUENT",
|
|
11
|
-
AVERAGE = "AVERAGE",
|
|
12
|
-
RARE = "RARE",
|
|
13
|
-
NEVER = "NEVER"
|
|
14
|
-
}
|
|
15
|
-
export declare enum UploadFrequency {
|
|
16
|
-
/**
|
|
17
|
-
* Upload data every 1000ms.
|
|
18
|
-
*/
|
|
19
|
-
FREQUENT = "FREQUENT",
|
|
20
|
-
/**
|
|
21
|
-
* Upload data every 5000ms.
|
|
22
|
-
*/
|
|
23
|
-
AVERAGE = "AVERAGE",
|
|
24
|
-
/**
|
|
25
|
-
* Upload data every 10000ms.
|
|
26
|
-
*/
|
|
27
|
-
RARE = "RARE"
|
|
28
|
-
}
|
|
29
|
-
export declare enum BatchSize {
|
|
30
|
-
/**
|
|
31
|
-
* Upload less frequent, larger batches of data
|
|
32
|
-
*/
|
|
33
|
-
LARGE = "LARGE",
|
|
34
|
-
/**
|
|
35
|
-
* Use default size for batches of data
|
|
36
|
-
*/
|
|
37
|
-
MEDIUM = "MEDIUM",
|
|
38
|
-
/**
|
|
39
|
-
* Upload more frequent, smaller batches of data
|
|
40
|
-
*/
|
|
41
|
-
SMALL = "SMALL"
|
|
42
|
-
}
|
|
43
|
-
export declare enum BatchProcessingLevel {
|
|
44
|
-
/**
|
|
45
|
-
* Only 1 batch will be sent in a single upload cycle.
|
|
46
|
-
*/
|
|
47
|
-
LOW = "LOW",
|
|
48
|
-
/**
|
|
49
|
-
* 10 batches will be sent in a single upload cycle
|
|
50
|
-
*/
|
|
51
|
-
MEDIUM = "MEDIUM",
|
|
52
|
-
/**
|
|
53
|
-
* 100 batches will be sent in a single upload cycle.
|
|
54
|
-
*/
|
|
55
|
-
HIGH = "HIGH"
|
|
56
|
-
}
|
|
57
|
-
export type FirstPartyHostsConfiguration = (FirstPartyHost | LegacyFirstPartyHost)[];
|
|
58
|
-
export type LegacyFirstPartyHost = string;
|
|
59
|
-
export type CustomEndpoints = {
|
|
60
|
-
rum?: string;
|
|
61
|
-
logs?: string;
|
|
62
|
-
trace?: string;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Defaults legacy first party hosts format to Datadog first party hosts to keep
|
|
66
|
-
* retro-compatibility before OTel support was introduced.
|
|
67
|
-
*/
|
|
68
|
-
export declare const formatFirstPartyHosts: (firstPartyHosts: FirstPartyHostsConfiguration) => FirstPartyHost[];
|
|
69
|
-
export declare const DEFAULTS: {
|
|
70
|
-
nativeCrashReportEnabled: boolean;
|
|
71
|
-
sessionSamplingRate: number;
|
|
72
|
-
resourceTracingSamplingRate: number;
|
|
73
|
-
site: string;
|
|
74
|
-
longTaskThresholdMs: number;
|
|
75
|
-
nativeLongTaskThresholdMs: number;
|
|
76
|
-
nativeViewTracking: boolean;
|
|
77
|
-
nativeInteractionTracking: boolean;
|
|
78
|
-
getFirstPartyHosts: () => never[];
|
|
79
|
-
getAdditionalConfiguration: () => {};
|
|
80
|
-
trackingConsent: TrackingConsent;
|
|
81
|
-
telemetrySampleRate: number;
|
|
82
|
-
vitalsUpdateFrequency: VitalsUpdateFrequency;
|
|
83
|
-
logEventMapper: null;
|
|
84
|
-
errorEventMapper: null;
|
|
85
|
-
resourceEventMapper: null;
|
|
86
|
-
actionEventMapper: null;
|
|
87
|
-
trackFrustrations: boolean;
|
|
88
|
-
uploadFrequency: UploadFrequency;
|
|
89
|
-
batchSize: BatchSize;
|
|
90
|
-
trackBackgroundEvents: boolean;
|
|
91
|
-
getCustomEndpoints: () => {};
|
|
92
|
-
bundleLogsWithRum: boolean;
|
|
93
|
-
bundleLogsWithTraces: boolean;
|
|
94
|
-
useAccessibilityLabel: boolean;
|
|
95
|
-
trackWatchdogTerminations: boolean;
|
|
96
|
-
batchProcessingLevel: BatchProcessingLevel;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* The SDK configuration class.
|
|
100
|
-
* It will be used to configure the SDK functionality at initialization.
|
|
101
|
-
*/
|
|
102
|
-
export declare class DdSdkReactNativeConfiguration {
|
|
103
|
-
readonly clientToken: string;
|
|
104
|
-
readonly env: string;
|
|
105
|
-
readonly applicationId: string;
|
|
106
|
-
readonly trackInteractions: boolean;
|
|
107
|
-
readonly trackResources: boolean;
|
|
108
|
-
readonly trackErrors: boolean;
|
|
109
|
-
readonly trackingConsent: TrackingConsent;
|
|
110
|
-
readonly useAccessibilityLabel: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* Enables crash reporting for native platforms (iOS, Android). Default `false`.
|
|
113
|
-
*/
|
|
114
|
-
nativeCrashReportEnabled: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* @deprecated `sampleRate` has been replaced by `sessionSamplingRate` to avoid confusion with `resourceTracingSamplingRate` and will be removed in a future release.
|
|
117
|
-
*/
|
|
118
|
-
sampleRate?: number;
|
|
119
|
-
/**
|
|
120
|
-
* Percentage of sampled RUM sessions. Range `0`-`100`.
|
|
121
|
-
*/
|
|
122
|
-
sessionSamplingRate: number;
|
|
123
|
-
/**
|
|
124
|
-
* Percentage of tracing integrations for network calls between your app and your backend. Range `0`-`100`.
|
|
125
|
-
*/
|
|
126
|
-
resourceTracingSamplingRate: number;
|
|
127
|
-
site: string;
|
|
128
|
-
/**
|
|
129
|
-
* Verbosity for internal SDK logging.
|
|
130
|
-
* Set to `SdkVerbosity.DEBUG` to debug your SDK implementation.
|
|
131
|
-
*/
|
|
132
|
-
verbosity: SdkVerbosity | undefined;
|
|
133
|
-
/**
|
|
134
|
-
* Enables native views tracking.
|
|
135
|
-
* Set to `true` if you use a custom navigation system relying on native views.
|
|
136
|
-
*/
|
|
137
|
-
nativeViewTracking: boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Enables native interaction tracking.
|
|
140
|
-
* Set to `true` if you want to track interactions on native screens.
|
|
141
|
-
*/
|
|
142
|
-
nativeInteractionTracking: boolean;
|
|
143
|
-
proxyConfig?: ProxyConfiguration;
|
|
144
|
-
serviceName?: string;
|
|
145
|
-
/**
|
|
146
|
-
* List of your backends hosts to enable tracing with.
|
|
147
|
-
* Regular expressions are NOT supported.
|
|
148
|
-
*
|
|
149
|
-
* Matches domains and subdomains, e.g. `['example.com']` matches `example.com` and `api.example.com`.
|
|
150
|
-
*/
|
|
151
|
-
firstPartyHosts: FirstPartyHostsConfiguration;
|
|
152
|
-
/**
|
|
153
|
-
* Overrides the reported version of the app.
|
|
154
|
-
* Accepted characters are alphanumerics and `_`, `-`, `:`, `.`, `/`.
|
|
155
|
-
* Other special characters are converted to underscores.
|
|
156
|
-
*
|
|
157
|
-
* See https://docs.datadoghq.com/getting_started/tagging/#define-tags for more information on the format.
|
|
158
|
-
*
|
|
159
|
-
* Make sure you set it correctly, as it will have to match the one specified during the upload of your source maps and other mapping files.
|
|
160
|
-
*/
|
|
161
|
-
version?: string;
|
|
162
|
-
/**
|
|
163
|
-
* Add a suffix to the reported version of the app.
|
|
164
|
-
* Accepted characters are alphanumerics and `_`, `-`, `:`, `.`, `/`.
|
|
165
|
-
* Other special characters are converted to underscores.
|
|
166
|
-
*
|
|
167
|
-
* See https://docs.datadoghq.com/getting_started/tagging/#define-tags for more information on the format.
|
|
168
|
-
*
|
|
169
|
-
* A dash (`-`) will be automatically added between the version and the suffix
|
|
170
|
-
*/
|
|
171
|
-
versionSuffix?: string;
|
|
172
|
-
/**
|
|
173
|
-
* The sampling rate for Internal Telemetry (info related to the work of the
|
|
174
|
-
* SDK internals).
|
|
175
|
-
*
|
|
176
|
-
* The sampling rate must be a value between 0 and 100. A value of 0 means no
|
|
177
|
-
* telemetry will be sent, 100 means all telemetry will be sent. When
|
|
178
|
-
* `telemetrySampleRate` is not set, the default value from the iOS and
|
|
179
|
-
* Android SDK is used, which is 20.
|
|
180
|
-
*/
|
|
181
|
-
telemetrySampleRate: number;
|
|
182
|
-
/**
|
|
183
|
-
* The threshold for native long tasks reporting in milliseconds.
|
|
184
|
-
*
|
|
185
|
-
* - Setting it to `0` or `false` disables native long task reporting.
|
|
186
|
-
* - Values below `100` will be raised to `100`.
|
|
187
|
-
* - Values above `5000` will be lowered to `5000`.
|
|
188
|
-
*
|
|
189
|
-
* Default value is `200`.
|
|
190
|
-
*/
|
|
191
|
-
nativeLongTaskThresholdMs: number | false;
|
|
192
|
-
/**
|
|
193
|
-
* The threshold for javascript long tasks reporting in milliseconds.
|
|
194
|
-
*
|
|
195
|
-
* - Setting it to `0` or `false` disables javascript long task reporting.
|
|
196
|
-
* - Values below `100` will be raised to `100`.
|
|
197
|
-
* - Values above `5000` will be lowered to `5000`.
|
|
198
|
-
*
|
|
199
|
-
* Default value is `0`
|
|
200
|
-
*/
|
|
201
|
-
longTaskThresholdMs: number | false;
|
|
202
|
-
/**
|
|
203
|
-
* Sets the preferred frequency for collecting mobile vitals.
|
|
204
|
-
*/
|
|
205
|
-
vitalsUpdateFrequency: VitalsUpdateFrequency;
|
|
206
|
-
/**
|
|
207
|
-
* Enables tracking of frustration signals (error taps). Defaults to `true`.
|
|
208
|
-
*/
|
|
209
|
-
trackFrustrations: boolean;
|
|
210
|
-
/**
|
|
211
|
-
* Sets the preferred frequency for uploading batches of data.
|
|
212
|
-
*/
|
|
213
|
-
uploadFrequency: UploadFrequency;
|
|
214
|
-
/**
|
|
215
|
-
* Defines the Datadog SDK policy when batching data together before uploading it to Datadog servers.
|
|
216
|
-
* Smaller batches mean smaller but more network requests, whereas larger batches mean fewer but larger network requests.
|
|
217
|
-
*/
|
|
218
|
-
batchSize: BatchSize;
|
|
219
|
-
/**
|
|
220
|
-
* Enables tracking of RUM event when no RUM View is active.
|
|
221
|
-
*
|
|
222
|
-
* By default, background events are not tracked. Enabling this feature might increase the
|
|
223
|
-
* number of sessions tracked and impact your billing.
|
|
224
|
-
*/
|
|
225
|
-
trackBackgroundEvents: boolean;
|
|
226
|
-
/**
|
|
227
|
-
* Enables RUM correlation with logs.
|
|
228
|
-
*
|
|
229
|
-
* By default, RUM is enabled for logs.
|
|
230
|
-
*/
|
|
231
|
-
bundleLogsWithRum: boolean;
|
|
232
|
-
/**
|
|
233
|
-
* Enables Traces correlation with logs.
|
|
234
|
-
*
|
|
235
|
-
* By default, Traces is enabled for logs.
|
|
236
|
-
*/
|
|
237
|
-
bundleLogsWithTraces: boolean;
|
|
238
|
-
/**
|
|
239
|
-
* Sets the preferred level for processing batches of data.
|
|
240
|
-
*/
|
|
241
|
-
batchProcessingLevel: BatchProcessingLevel;
|
|
242
|
-
/**
|
|
243
|
-
* Enables tracking of non-fatal ANRs on Android.
|
|
244
|
-
* By default, the reporting of non-fatal ANRs on Android 30+ is disabled because it would
|
|
245
|
-
* create too much noise over fatal ANRs. On Android 29 and below, however,
|
|
246
|
-
* the reporting of non-fatal ANRs is enabled by default,
|
|
247
|
-
* as fatal ANRs cannot be reported on those versions.
|
|
248
|
-
*/
|
|
249
|
-
trackNonFatalAnrs?: boolean;
|
|
250
|
-
/**
|
|
251
|
-
* The app hang threshold in seconds for non-fatal app hangs on iOS.
|
|
252
|
-
*
|
|
253
|
-
* App hangs are an iOS-specific type of error that happens when the application is unresponsive for too long.
|
|
254
|
-
* By default, app hangs reporting is disabled, but you can enable it and set your
|
|
255
|
-
* own threshold to monitor app hangs that last more than a specified
|
|
256
|
-
* duration by using the this parameter.
|
|
257
|
-
*
|
|
258
|
-
* Set the `appHangThreshold` parameter to the minimal duration you want
|
|
259
|
-
* app hangs to be reported. For example, enter 0.25 to report hangs lasting at least 250 ms.
|
|
260
|
-
* See [Configure the app hang threshold](https://docs.datadoghq.com/real_user_monitoring/error_tracking/mobile/ios/?tab=cocoapods#configure-the-app-hang-threshold)
|
|
261
|
-
* for more guidance on what to set this value to.
|
|
262
|
-
*/
|
|
263
|
-
appHangThreshold?: number;
|
|
264
|
-
/**
|
|
265
|
-
* The amount of time after a view starts where a Resource should be
|
|
266
|
-
* considered when calculating Time to Network-Settled (TNS). TNS will be
|
|
267
|
-
* calculated using all resources that start withing the specified threshold, in seconds.
|
|
268
|
-
* Defaults to 0.1 seconds.
|
|
269
|
-
*/
|
|
270
|
-
initialResourceThreshold?: number;
|
|
271
|
-
/**
|
|
272
|
-
* Determines whether the SDK should track application termination by the watchdog on iOS. Default: `false`.
|
|
273
|
-
*/
|
|
274
|
-
trackWatchdogTerminations: boolean;
|
|
275
|
-
/**
|
|
276
|
-
* Specifies a custom prop to name RUM actions on elements having an `onPress` prop.
|
|
277
|
-
*
|
|
278
|
-
* For example if you set it to `testID`, the value of the `testID` prop is used as a custom action name:
|
|
279
|
-
*
|
|
280
|
-
* ```js
|
|
281
|
-
* <TouchableOpacity testID="Dismiss notification" onPress={() => dismiss()}>
|
|
282
|
-
* ```
|
|
283
|
-
*
|
|
284
|
-
* `dd-action-name` is favored when both attributes are present on an element.
|
|
285
|
-
*/
|
|
286
|
-
actionNameAttribute?: string;
|
|
287
|
-
logEventMapper: LogEventMapper | null;
|
|
288
|
-
errorEventMapper: ErrorEventMapper | null;
|
|
289
|
-
resourceEventMapper: ResourceEventMapper | null;
|
|
290
|
-
actionEventMapper: ActionEventMapper | null;
|
|
291
|
-
additionalConfiguration: {
|
|
292
|
-
[k: string]: any;
|
|
293
|
-
};
|
|
294
|
-
customEndpoints: CustomEndpoints;
|
|
295
|
-
constructor(clientToken: string, env: string, applicationId: string, trackInteractions?: boolean, trackResources?: boolean, trackErrors?: boolean, trackingConsent?: TrackingConsent, useAccessibilityLabel?: boolean);
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* Auto Instrumentation configuration passed to DatadogProvider.
|
|
299
|
-
* Does not include default values.
|
|
300
|
-
*/
|
|
301
|
-
export type AutoInstrumentationConfiguration = {
|
|
302
|
-
readonly trackInteractions: boolean;
|
|
303
|
-
readonly trackResources: boolean;
|
|
304
|
-
readonly firstPartyHosts?: FirstPartyHostsConfiguration;
|
|
305
|
-
readonly resourceTracingSamplingRate?: number;
|
|
306
|
-
readonly trackErrors: boolean;
|
|
307
|
-
readonly logEventMapper?: LogEventMapper | null;
|
|
308
|
-
readonly errorEventMapper?: ErrorEventMapper | null;
|
|
309
|
-
readonly resourceEventMapper?: ResourceEventMapper | null;
|
|
310
|
-
readonly actionEventMapper?: ActionEventMapper | null;
|
|
311
|
-
readonly useAccessibilityLabel?: boolean;
|
|
312
|
-
readonly actionNameAttribute?: string;
|
|
313
|
-
};
|
|
314
|
-
/**
|
|
315
|
-
* Parameters needed to start auto instrumentation. Includes default values.
|
|
316
|
-
*/
|
|
317
|
-
export type AutoInstrumentationParameters = {
|
|
318
|
-
readonly trackInteractions: boolean;
|
|
319
|
-
readonly trackResources: boolean;
|
|
320
|
-
readonly firstPartyHosts: FirstPartyHostsConfiguration;
|
|
321
|
-
readonly resourceTracingSamplingRate: number;
|
|
322
|
-
readonly trackErrors: boolean;
|
|
323
|
-
readonly logEventMapper: LogEventMapper | null;
|
|
324
|
-
readonly errorEventMapper: ErrorEventMapper | null;
|
|
325
|
-
readonly resourceEventMapper: ResourceEventMapper | null;
|
|
326
|
-
readonly actionEventMapper: ActionEventMapper | null;
|
|
327
|
-
readonly useAccessibilityLabel: boolean;
|
|
328
|
-
readonly actionNameAttribute?: string;
|
|
329
|
-
};
|
|
330
|
-
/**
|
|
331
|
-
* We could use `Proxy` instead of this function, but `Proxy` is not available on
|
|
332
|
-
* the older android jsc that can still be used.
|
|
333
|
-
*/
|
|
334
|
-
export declare const addDefaultValuesToAutoInstrumentationConfiguration: (features: AutoInstrumentationConfiguration) => AutoInstrumentationParameters;
|
|
335
|
-
export type PartialInitializationConfiguration = {
|
|
336
|
-
readonly clientToken: string;
|
|
337
|
-
readonly env: string;
|
|
338
|
-
readonly applicationId: string;
|
|
339
|
-
readonly sessionSamplingRate?: number;
|
|
340
|
-
readonly site?: string;
|
|
341
|
-
readonly verbosity?: SdkVerbosity | undefined;
|
|
342
|
-
readonly nativeViewTracking?: boolean;
|
|
343
|
-
readonly nativeInteractionTracking?: boolean;
|
|
344
|
-
readonly proxyConfig?: ProxyConfiguration;
|
|
345
|
-
readonly serviceName?: string;
|
|
346
|
-
readonly version?: string;
|
|
347
|
-
versionSuffix?: string;
|
|
348
|
-
readonly additionalConfiguration?: {
|
|
349
|
-
[k: string]: any;
|
|
350
|
-
};
|
|
351
|
-
readonly trackingConsent?: TrackingConsent;
|
|
352
|
-
readonly longTaskThresholdMs?: number | false;
|
|
353
|
-
readonly nativeLongTaskThresholdMs?: number | false;
|
|
354
|
-
readonly nativeCrashReportEnabled?: boolean;
|
|
355
|
-
readonly telemetrySampleRate?: number;
|
|
356
|
-
readonly vitalsUpdateFrequency?: VitalsUpdateFrequency;
|
|
357
|
-
readonly trackFrustrations?: boolean;
|
|
358
|
-
readonly uploadFrequency?: UploadFrequency;
|
|
359
|
-
readonly batchSize?: BatchSize;
|
|
360
|
-
readonly trackBackgroundEvents?: boolean;
|
|
361
|
-
readonly customEndpoints?: CustomEndpoints;
|
|
362
|
-
readonly bundleLogsWithRum?: boolean;
|
|
363
|
-
readonly bundleLogsWithTraces?: boolean;
|
|
364
|
-
readonly batchProcessingLevel?: BatchProcessingLevel;
|
|
365
|
-
readonly initialResourceThreshold?: number;
|
|
366
|
-
};
|
|
367
|
-
export declare const buildConfigurationFromPartialConfiguration: (features: AutoInstrumentationConfiguration, configuration: PartialInitializationConfiguration) => DdSdkReactNativeConfiguration;
|
|
368
|
-
export declare class DatadogProviderConfiguration extends DdSdkReactNativeConfiguration {
|
|
369
|
-
initializationMode: InitializationMode;
|
|
370
|
-
}
|
|
371
|
-
export declare enum InitializationMode {
|
|
372
|
-
SYNC = "SYNC",
|
|
373
|
-
ASYNC = "ASYNC"
|
|
374
|
-
}
|
|
375
|
-
export type InitializationModeForTelemetry = 'LEGACY' | 'SYNC' | 'ASYNC' | 'PARTIAL' | 'FILE';
|
|
376
|
-
//# sourceMappingURL=DdSdkReactNativeConfiguration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DdSdkReactNativeConfiguration.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QAAQ,CAAC,EAAE,MAAM;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM;CAaxB;AAED,aAAK,SAAS;IACV,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SdkVerbosity.d.ts","sourceRoot":"","sources":["../../src/SdkVerbosity.tsx"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,YAAY;IACpB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;CAClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TrackingConsent.d.ts","sourceRoot":"","sources":["../../src/TrackingConsent.tsx"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DdAttributes.d.ts","sourceRoot":"","sources":["../../../src/rum/DdAttributes.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;IACrB;;;;OAIG;;IAGH;;;OAGG;;IAGH;;;;OAIG;;CAEN,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { FirstPartyHostsConfiguration } from '../../DdSdkReactNativeConfiguration';
|
|
2
|
-
import { DatadogProviderConfiguration } from '../../DdSdkReactNativeConfiguration';
|
|
3
|
-
import { SdkVerbosity } from '../../SdkVerbosity';
|
|
4
|
-
import { TrackingConsent } from '../../TrackingConsent';
|
|
5
|
-
import type { ActionEventMapper } from '../../rum/eventMappers/actionEventMapper';
|
|
6
|
-
import type { ErrorEventMapper } from '../../rum/eventMappers/errorEventMapper';
|
|
7
|
-
import type { ResourceEventMapper } from '../../rum/eventMappers/resourceEventMapper';
|
|
8
|
-
import { PropagatorType } from '../../rum/types';
|
|
9
|
-
export declare class FileBasedConfiguration extends DatadogProviderConfiguration {
|
|
10
|
-
constructor(params?: {
|
|
11
|
-
configuration?: unknown;
|
|
12
|
-
errorEventMapper?: ErrorEventMapper;
|
|
13
|
-
resourceEventMapper?: ResourceEventMapper;
|
|
14
|
-
actionEventMapper?: ActionEventMapper;
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
export declare const getJSONConfiguration: (userSpecifiedConfiguration: unknown) => {
|
|
18
|
-
clientToken: string;
|
|
19
|
-
env: string;
|
|
20
|
-
applicationId: string;
|
|
21
|
-
trackInteractions: boolean | undefined;
|
|
22
|
-
trackResources: boolean | undefined;
|
|
23
|
-
trackErrors: boolean | undefined;
|
|
24
|
-
trackingConsent: TrackingConsent | undefined;
|
|
25
|
-
longTaskThresholdMs: number | undefined;
|
|
26
|
-
verbosity: SdkVerbosity | undefined;
|
|
27
|
-
actionNameAttribute: string | undefined;
|
|
28
|
-
resourceTracingSamplingRate: number | undefined;
|
|
29
|
-
firstPartyHosts: FirstPartyHostsConfiguration | undefined;
|
|
30
|
-
site: string | undefined;
|
|
31
|
-
useAccessibilityLabel: boolean | undefined;
|
|
32
|
-
};
|
|
33
|
-
export declare const formatPropagatorType: (propagatorType: string) => PropagatorType;
|
|
34
|
-
//# sourceMappingURL=FileBasedConfiguration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileBasedConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/sdk/FileBasedConfiguration/FileBasedConfiguration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EACH,4BAA4B,EAE/B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,iB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|
4
|
-
* @returns the original context if it's a plain object, an object wrapping the context if it's an array,
|
|
5
|
-
* or an empty object if the context is of any other type.
|
|
6
|
-
*/
|
|
7
|
-
export declare const validateContext: (context: any) => any;
|
|
8
|
-
//# sourceMappingURL=argsUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"argsUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/argsUtils.ts"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH,eAAO,MAAM,eAAe,YAAa,GAAG,QAwB3C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errorUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/errorUtils.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,eAAO,MAAM,eAAe,UAAW,GAAG,GAAG,SAAS,KAAG,MAWxD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,UAAW,GAAG,GAAG,SAAS,KAAG,MA2B3D,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,OAAO,KAAG,MAY7C,CAAC"}
|