@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,412 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.formatFirstPartyHosts = exports.buildConfigurationFromPartialConfiguration = exports.addDefaultValuesToAutoInstrumentationConfiguration = exports.VitalsUpdateFrequency = exports.UploadFrequency = exports.InitializationMode = exports.DdSdkReactNativeConfiguration = exports.DatadogProviderConfiguration = exports.DEFAULTS = exports.BatchSize = exports.BatchProcessingLevel = void 0;
|
|
7
|
-
var _TrackingConsent = require("./TrackingConsent");
|
|
8
|
-
var _types = require("./rum/types");
|
|
9
|
-
/*
|
|
10
|
-
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
11
|
-
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
-
* Copyright 2016-Present Datadog, Inc.
|
|
13
|
-
*/
|
|
14
|
-
let VitalsUpdateFrequency = exports.VitalsUpdateFrequency = /*#__PURE__*/function (VitalsUpdateFrequency) {
|
|
15
|
-
VitalsUpdateFrequency["FREQUENT"] = "FREQUENT";
|
|
16
|
-
VitalsUpdateFrequency["AVERAGE"] = "AVERAGE";
|
|
17
|
-
VitalsUpdateFrequency["RARE"] = "RARE";
|
|
18
|
-
VitalsUpdateFrequency["NEVER"] = "NEVER";
|
|
19
|
-
return VitalsUpdateFrequency;
|
|
20
|
-
}({});
|
|
21
|
-
let UploadFrequency = exports.UploadFrequency = /*#__PURE__*/function (UploadFrequency) {
|
|
22
|
-
/**
|
|
23
|
-
* Upload data every 1000ms.
|
|
24
|
-
*/
|
|
25
|
-
UploadFrequency["FREQUENT"] = "FREQUENT";
|
|
26
|
-
/**
|
|
27
|
-
* Upload data every 5000ms.
|
|
28
|
-
*/
|
|
29
|
-
UploadFrequency["AVERAGE"] = "AVERAGE";
|
|
30
|
-
/**
|
|
31
|
-
* Upload data every 10000ms.
|
|
32
|
-
*/
|
|
33
|
-
UploadFrequency["RARE"] = "RARE";
|
|
34
|
-
return UploadFrequency;
|
|
35
|
-
}({});
|
|
36
|
-
let BatchSize = exports.BatchSize = /*#__PURE__*/function (BatchSize) {
|
|
37
|
-
/**
|
|
38
|
-
* Upload less frequent, larger batches of data
|
|
39
|
-
*/
|
|
40
|
-
BatchSize["LARGE"] = "LARGE";
|
|
41
|
-
/**
|
|
42
|
-
* Use default size for batches of data
|
|
43
|
-
*/
|
|
44
|
-
BatchSize["MEDIUM"] = "MEDIUM";
|
|
45
|
-
/**
|
|
46
|
-
* Upload more frequent, smaller batches of data
|
|
47
|
-
*/
|
|
48
|
-
BatchSize["SMALL"] = "SMALL";
|
|
49
|
-
return BatchSize;
|
|
50
|
-
}({});
|
|
51
|
-
let BatchProcessingLevel = exports.BatchProcessingLevel = /*#__PURE__*/function (BatchProcessingLevel) {
|
|
52
|
-
/**
|
|
53
|
-
* Only 1 batch will be sent in a single upload cycle.
|
|
54
|
-
*/
|
|
55
|
-
BatchProcessingLevel["LOW"] = "LOW";
|
|
56
|
-
/**
|
|
57
|
-
* 10 batches will be sent in a single upload cycle
|
|
58
|
-
*/
|
|
59
|
-
BatchProcessingLevel["MEDIUM"] = "MEDIUM";
|
|
60
|
-
/**
|
|
61
|
-
* 100 batches will be sent in a single upload cycle.
|
|
62
|
-
*/
|
|
63
|
-
BatchProcessingLevel["HIGH"] = "HIGH";
|
|
64
|
-
return BatchProcessingLevel;
|
|
65
|
-
}({});
|
|
66
|
-
const isLegacyFirstPartyHost = firstPartyHost => {
|
|
67
|
-
return typeof firstPartyHost === 'string';
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Defaults legacy first party hosts format to Datadog first party hosts to keep
|
|
71
|
-
* retro-compatibility before OTel support was introduced.
|
|
72
|
-
*/
|
|
73
|
-
const formatFirstPartyHosts = firstPartyHosts => {
|
|
74
|
-
return firstPartyHosts.map(host => {
|
|
75
|
-
if (isLegacyFirstPartyHost(host)) {
|
|
76
|
-
return {
|
|
77
|
-
match: host,
|
|
78
|
-
propagatorTypes: [_types.PropagatorType.DATADOG, _types.PropagatorType.TRACECONTEXT]
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
return host;
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
exports.formatFirstPartyHosts = formatFirstPartyHosts;
|
|
85
|
-
const DEFAULTS = exports.DEFAULTS = {
|
|
86
|
-
nativeCrashReportEnabled: false,
|
|
87
|
-
sessionSamplingRate: 100.0,
|
|
88
|
-
resourceTracingSamplingRate: 20.0,
|
|
89
|
-
site: 'US1',
|
|
90
|
-
longTaskThresholdMs: 0,
|
|
91
|
-
nativeLongTaskThresholdMs: 200,
|
|
92
|
-
nativeViewTracking: false,
|
|
93
|
-
nativeInteractionTracking: false,
|
|
94
|
-
getFirstPartyHosts: () => [],
|
|
95
|
-
getAdditionalConfiguration: () => ({}),
|
|
96
|
-
trackingConsent: _TrackingConsent.TrackingConsent.GRANTED,
|
|
97
|
-
telemetrySampleRate: 20.0,
|
|
98
|
-
vitalsUpdateFrequency: VitalsUpdateFrequency.AVERAGE,
|
|
99
|
-
logEventMapper: null,
|
|
100
|
-
errorEventMapper: null,
|
|
101
|
-
resourceEventMapper: null,
|
|
102
|
-
actionEventMapper: null,
|
|
103
|
-
trackFrustrations: true,
|
|
104
|
-
uploadFrequency: UploadFrequency.AVERAGE,
|
|
105
|
-
batchSize: BatchSize.MEDIUM,
|
|
106
|
-
trackBackgroundEvents: false,
|
|
107
|
-
getCustomEndpoints: () => ({}),
|
|
108
|
-
bundleLogsWithRum: true,
|
|
109
|
-
bundleLogsWithTraces: true,
|
|
110
|
-
useAccessibilityLabel: true,
|
|
111
|
-
trackWatchdogTerminations: false,
|
|
112
|
-
batchProcessingLevel: BatchProcessingLevel.MEDIUM
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* The SDK configuration class.
|
|
117
|
-
* It will be used to configure the SDK functionality at initialization.
|
|
118
|
-
*/
|
|
119
|
-
class DdSdkReactNativeConfiguration {
|
|
120
|
-
/**
|
|
121
|
-
* Enables crash reporting for native platforms (iOS, Android). Default `false`.
|
|
122
|
-
*/
|
|
123
|
-
nativeCrashReportEnabled = DEFAULTS.nativeCrashReportEnabled;
|
|
124
|
-
/**
|
|
125
|
-
* @deprecated `sampleRate` has been replaced by `sessionSamplingRate` to avoid confusion with `resourceTracingSamplingRate` and will be removed in a future release.
|
|
126
|
-
*/
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Percentage of sampled RUM sessions. Range `0`-`100`.
|
|
130
|
-
*/
|
|
131
|
-
sessionSamplingRate = DEFAULTS.sessionSamplingRate;
|
|
132
|
-
/**
|
|
133
|
-
* Percentage of tracing integrations for network calls between your app and your backend. Range `0`-`100`.
|
|
134
|
-
*/
|
|
135
|
-
resourceTracingSamplingRate = DEFAULTS.resourceTracingSamplingRate;
|
|
136
|
-
site = DEFAULTS.site;
|
|
137
|
-
/**
|
|
138
|
-
* Verbosity for internal SDK logging.
|
|
139
|
-
* Set to `SdkVerbosity.DEBUG` to debug your SDK implementation.
|
|
140
|
-
*/
|
|
141
|
-
verbosity = undefined;
|
|
142
|
-
/**
|
|
143
|
-
* Enables native views tracking.
|
|
144
|
-
* Set to `true` if you use a custom navigation system relying on native views.
|
|
145
|
-
*/
|
|
146
|
-
nativeViewTracking = DEFAULTS.nativeViewTracking;
|
|
147
|
-
/**
|
|
148
|
-
* Enables native interaction tracking.
|
|
149
|
-
* Set to `true` if you want to track interactions on native screens.
|
|
150
|
-
*/
|
|
151
|
-
nativeInteractionTracking = DEFAULTS.nativeInteractionTracking;
|
|
152
|
-
proxyConfig = undefined;
|
|
153
|
-
serviceName = undefined;
|
|
154
|
-
/**
|
|
155
|
-
* List of your backends hosts to enable tracing with.
|
|
156
|
-
* Regular expressions are NOT supported.
|
|
157
|
-
*
|
|
158
|
-
* Matches domains and subdomains, e.g. `['example.com']` matches `example.com` and `api.example.com`.
|
|
159
|
-
*/
|
|
160
|
-
firstPartyHosts = DEFAULTS.getFirstPartyHosts();
|
|
161
|
-
/**
|
|
162
|
-
* Overrides the reported version of the app.
|
|
163
|
-
* Accepted characters are alphanumerics and `_`, `-`, `:`, `.`, `/`.
|
|
164
|
-
* Other special characters are converted to underscores.
|
|
165
|
-
*
|
|
166
|
-
* See https://docs.datadoghq.com/getting_started/tagging/#define-tags for more information on the format.
|
|
167
|
-
*
|
|
168
|
-
* 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.
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Add a suffix to the reported version of the app.
|
|
173
|
-
* Accepted characters are alphanumerics and `_`, `-`, `:`, `.`, `/`.
|
|
174
|
-
* Other special characters are converted to underscores.
|
|
175
|
-
*
|
|
176
|
-
* See https://docs.datadoghq.com/getting_started/tagging/#define-tags for more information on the format.
|
|
177
|
-
*
|
|
178
|
-
* A dash (`-`) will be automatically added between the version and the suffix
|
|
179
|
-
*/
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* The sampling rate for Internal Telemetry (info related to the work of the
|
|
183
|
-
* SDK internals).
|
|
184
|
-
*
|
|
185
|
-
* The sampling rate must be a value between 0 and 100. A value of 0 means no
|
|
186
|
-
* telemetry will be sent, 100 means all telemetry will be sent. When
|
|
187
|
-
* `telemetrySampleRate` is not set, the default value from the iOS and
|
|
188
|
-
* Android SDK is used, which is 20.
|
|
189
|
-
*/
|
|
190
|
-
telemetrySampleRate = DEFAULTS.telemetrySampleRate;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* The threshold for native long tasks reporting in milliseconds.
|
|
194
|
-
*
|
|
195
|
-
* - Setting it to `0` or `false` disables native 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 `200`.
|
|
200
|
-
*/
|
|
201
|
-
nativeLongTaskThresholdMs = DEFAULTS.nativeLongTaskThresholdMs;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* The threshold for javascript long tasks reporting in milliseconds.
|
|
205
|
-
*
|
|
206
|
-
* - Setting it to `0` or `false` disables javascript long task reporting.
|
|
207
|
-
* - Values below `100` will be raised to `100`.
|
|
208
|
-
* - Values above `5000` will be lowered to `5000`.
|
|
209
|
-
*
|
|
210
|
-
* Default value is `0`
|
|
211
|
-
*/
|
|
212
|
-
longTaskThresholdMs = DEFAULTS.longTaskThresholdMs;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Sets the preferred frequency for collecting mobile vitals.
|
|
216
|
-
*/
|
|
217
|
-
vitalsUpdateFrequency = DEFAULTS.vitalsUpdateFrequency;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Enables tracking of frustration signals (error taps). Defaults to `true`.
|
|
221
|
-
*/
|
|
222
|
-
trackFrustrations = DEFAULTS.trackFrustrations;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Sets the preferred frequency for uploading batches of data.
|
|
226
|
-
*/
|
|
227
|
-
uploadFrequency = DEFAULTS.uploadFrequency;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Defines the Datadog SDK policy when batching data together before uploading it to Datadog servers.
|
|
231
|
-
* Smaller batches mean smaller but more network requests, whereas larger batches mean fewer but larger network requests.
|
|
232
|
-
*/
|
|
233
|
-
batchSize = DEFAULTS.batchSize;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Enables tracking of RUM event when no RUM View is active.
|
|
237
|
-
*
|
|
238
|
-
* By default, background events are not tracked. Enabling this feature might increase the
|
|
239
|
-
* number of sessions tracked and impact your billing.
|
|
240
|
-
*/
|
|
241
|
-
trackBackgroundEvents = DEFAULTS.trackBackgroundEvents;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Enables RUM correlation with logs.
|
|
245
|
-
*
|
|
246
|
-
* By default, RUM is enabled for logs.
|
|
247
|
-
*/
|
|
248
|
-
bundleLogsWithRum = DEFAULTS.bundleLogsWithRum;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Enables Traces correlation with logs.
|
|
252
|
-
*
|
|
253
|
-
* By default, Traces is enabled for logs.
|
|
254
|
-
*/
|
|
255
|
-
bundleLogsWithTraces = DEFAULTS.bundleLogsWithTraces;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Sets the preferred level for processing batches of data.
|
|
259
|
-
*/
|
|
260
|
-
batchProcessingLevel = DEFAULTS.batchProcessingLevel;
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Enables tracking of non-fatal ANRs on Android.
|
|
264
|
-
* By default, the reporting of non-fatal ANRs on Android 30+ is disabled because it would
|
|
265
|
-
* create too much noise over fatal ANRs. On Android 29 and below, however,
|
|
266
|
-
* the reporting of non-fatal ANRs is enabled by default,
|
|
267
|
-
* as fatal ANRs cannot be reported on those versions.
|
|
268
|
-
*/
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* The app hang threshold in seconds for non-fatal app hangs on iOS.
|
|
272
|
-
*
|
|
273
|
-
* App hangs are an iOS-specific type of error that happens when the application is unresponsive for too long.
|
|
274
|
-
* By default, app hangs reporting is disabled, but you can enable it and set your
|
|
275
|
-
* own threshold to monitor app hangs that last more than a specified
|
|
276
|
-
* duration by using the this parameter.
|
|
277
|
-
*
|
|
278
|
-
* Set the `appHangThreshold` parameter to the minimal duration you want
|
|
279
|
-
* app hangs to be reported. For example, enter 0.25 to report hangs lasting at least 250 ms.
|
|
280
|
-
* See [Configure the app hang threshold](https://docs.datadoghq.com/real_user_monitoring/error_tracking/mobile/ios/?tab=cocoapods#configure-the-app-hang-threshold)
|
|
281
|
-
* for more guidance on what to set this value to.
|
|
282
|
-
*/
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* The amount of time after a view starts where a Resource should be
|
|
286
|
-
* considered when calculating Time to Network-Settled (TNS). TNS will be
|
|
287
|
-
* calculated using all resources that start withing the specified threshold, in seconds.
|
|
288
|
-
* Defaults to 0.1 seconds.
|
|
289
|
-
*/
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Determines whether the SDK should track application termination by the watchdog on iOS. Default: `false`.
|
|
293
|
-
*/
|
|
294
|
-
trackWatchdogTerminations = DEFAULTS.trackWatchdogTerminations;
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* Specifies a custom prop to name RUM actions on elements having an `onPress` prop.
|
|
298
|
-
*
|
|
299
|
-
* For example if you set it to `testID`, the value of the `testID` prop is used as a custom action name:
|
|
300
|
-
*
|
|
301
|
-
* ```js
|
|
302
|
-
* <TouchableOpacity testID="Dismiss notification" onPress={() => dismiss()}>
|
|
303
|
-
* ```
|
|
304
|
-
*
|
|
305
|
-
* `dd-action-name` is favored when both attributes are present on an element.
|
|
306
|
-
*/
|
|
307
|
-
|
|
308
|
-
logEventMapper = DEFAULTS.logEventMapper;
|
|
309
|
-
errorEventMapper = DEFAULTS.errorEventMapper;
|
|
310
|
-
resourceEventMapper = DEFAULTS.resourceEventMapper;
|
|
311
|
-
actionEventMapper = DEFAULTS.actionEventMapper;
|
|
312
|
-
additionalConfiguration = DEFAULTS.getAdditionalConfiguration();
|
|
313
|
-
customEndpoints = DEFAULTS.getCustomEndpoints();
|
|
314
|
-
constructor(clientToken, env, applicationId, trackInteractions = false, trackResources = false, trackErrors = false, trackingConsent = DEFAULTS.trackingConsent, useAccessibilityLabel = DEFAULTS.useAccessibilityLabel // eslint-disable-next-line no-empty-function
|
|
315
|
-
) {
|
|
316
|
-
this.clientToken = clientToken;
|
|
317
|
-
this.env = env;
|
|
318
|
-
this.applicationId = applicationId;
|
|
319
|
-
this.trackInteractions = trackInteractions;
|
|
320
|
-
this.trackResources = trackResources;
|
|
321
|
-
this.trackErrors = trackErrors;
|
|
322
|
-
this.trackingConsent = trackingConsent;
|
|
323
|
-
this.useAccessibilityLabel = useAccessibilityLabel;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Auto Instrumentation configuration passed to DatadogProvider.
|
|
329
|
-
* Does not include default values.
|
|
330
|
-
*/
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Parameters needed to start auto instrumentation. Includes default values.
|
|
334
|
-
*/
|
|
335
|
-
exports.DdSdkReactNativeConfiguration = DdSdkReactNativeConfiguration;
|
|
336
|
-
/**
|
|
337
|
-
* We could use `Proxy` instead of this function, but `Proxy` is not available on
|
|
338
|
-
* the older android jsc that can still be used.
|
|
339
|
-
*/
|
|
340
|
-
const addDefaultValuesToAutoInstrumentationConfiguration = features => {
|
|
341
|
-
return {
|
|
342
|
-
...features,
|
|
343
|
-
firstPartyHosts: features.firstPartyHosts || DEFAULTS.getFirstPartyHosts(),
|
|
344
|
-
resourceTracingSamplingRate: features.resourceTracingSamplingRate === undefined ? DEFAULTS.resourceTracingSamplingRate : features.resourceTracingSamplingRate,
|
|
345
|
-
logEventMapper: features.logEventMapper === undefined ? DEFAULTS.logEventMapper : features.logEventMapper,
|
|
346
|
-
errorEventMapper: features.errorEventMapper === undefined ? DEFAULTS.errorEventMapper : features.errorEventMapper,
|
|
347
|
-
resourceEventMapper: features.resourceEventMapper === undefined ? DEFAULTS.resourceEventMapper : features.resourceEventMapper,
|
|
348
|
-
actionEventMapper: features.actionEventMapper === undefined ? DEFAULTS.actionEventMapper : features.actionEventMapper,
|
|
349
|
-
useAccessibilityLabel: DEFAULTS.useAccessibilityLabel
|
|
350
|
-
};
|
|
351
|
-
};
|
|
352
|
-
exports.addDefaultValuesToAutoInstrumentationConfiguration = addDefaultValuesToAutoInstrumentationConfiguration;
|
|
353
|
-
const setConfigurationAttribute = (attribute, configuration) => {
|
|
354
|
-
if (attribute.value !== undefined) {
|
|
355
|
-
configuration[attribute.name] = attribute.value;
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
const buildConfigurationFromPartialConfiguration = (features, configuration) => {
|
|
359
|
-
const {
|
|
360
|
-
clientToken,
|
|
361
|
-
env,
|
|
362
|
-
applicationId,
|
|
363
|
-
...remainingConfiguration
|
|
364
|
-
} = configuration;
|
|
365
|
-
const SdkConfiguration = new DdSdkReactNativeConfiguration(clientToken, env, applicationId, features.trackInteractions, features.trackResources, features.trackErrors, configuration.trackingConsent, features.useAccessibilityLabel);
|
|
366
|
-
Object.keys(remainingConfiguration).forEach(name => {
|
|
367
|
-
setConfigurationAttribute({
|
|
368
|
-
value: remainingConfiguration[name],
|
|
369
|
-
name
|
|
370
|
-
}, SdkConfiguration);
|
|
371
|
-
});
|
|
372
|
-
setConfigurationAttribute({
|
|
373
|
-
name: 'resourceTracingSamplingRate',
|
|
374
|
-
value: features.resourceTracingSamplingRate
|
|
375
|
-
}, SdkConfiguration);
|
|
376
|
-
setConfigurationAttribute({
|
|
377
|
-
name: 'firstPartyHosts',
|
|
378
|
-
value: features.firstPartyHosts
|
|
379
|
-
}, SdkConfiguration);
|
|
380
|
-
setConfigurationAttribute({
|
|
381
|
-
name: 'logEventMapper',
|
|
382
|
-
value: features.logEventMapper
|
|
383
|
-
}, SdkConfiguration);
|
|
384
|
-
setConfigurationAttribute({
|
|
385
|
-
name: 'errorEventMapper',
|
|
386
|
-
value: features.errorEventMapper
|
|
387
|
-
}, SdkConfiguration);
|
|
388
|
-
setConfigurationAttribute({
|
|
389
|
-
name: 'resourceEventMapper',
|
|
390
|
-
value: features.resourceEventMapper
|
|
391
|
-
}, SdkConfiguration);
|
|
392
|
-
setConfigurationAttribute({
|
|
393
|
-
name: 'actionEventMapper',
|
|
394
|
-
value: features.actionEventMapper
|
|
395
|
-
}, SdkConfiguration);
|
|
396
|
-
setConfigurationAttribute({
|
|
397
|
-
name: 'actionNameAttribute',
|
|
398
|
-
value: features.actionNameAttribute
|
|
399
|
-
}, SdkConfiguration);
|
|
400
|
-
return SdkConfiguration;
|
|
401
|
-
};
|
|
402
|
-
exports.buildConfigurationFromPartialConfiguration = buildConfigurationFromPartialConfiguration;
|
|
403
|
-
class DatadogProviderConfiguration extends DdSdkReactNativeConfiguration {
|
|
404
|
-
initializationMode = InitializationMode.SYNC;
|
|
405
|
-
}
|
|
406
|
-
exports.DatadogProviderConfiguration = DatadogProviderConfiguration;
|
|
407
|
-
let InitializationMode = exports.InitializationMode = /*#__PURE__*/function (InitializationMode) {
|
|
408
|
-
InitializationMode["SYNC"] = "SYNC";
|
|
409
|
-
InitializationMode["ASYNC"] = "ASYNC";
|
|
410
|
-
return InitializationMode;
|
|
411
|
-
}({});
|
|
412
|
-
//# sourceMappingURL=DdSdkReactNativeConfiguration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_TrackingConsent","require","_types","VitalsUpdateFrequency","exports","UploadFrequency","BatchSize","BatchProcessingLevel","isLegacyFirstPartyHost","firstPartyHost","formatFirstPartyHosts","firstPartyHosts","map","host","match","propagatorTypes","PropagatorType","DATADOG","TRACECONTEXT","DEFAULTS","nativeCrashReportEnabled","sessionSamplingRate","resourceTracingSamplingRate","site","longTaskThresholdMs","nativeLongTaskThresholdMs","nativeViewTracking","nativeInteractionTracking","getFirstPartyHosts","getAdditionalConfiguration","trackingConsent","TrackingConsent","GRANTED","telemetrySampleRate","vitalsUpdateFrequency","AVERAGE","logEventMapper","errorEventMapper","resourceEventMapper","actionEventMapper","trackFrustrations","uploadFrequency","batchSize","MEDIUM","trackBackgroundEvents","getCustomEndpoints","bundleLogsWithRum","bundleLogsWithTraces","useAccessibilityLabel","trackWatchdogTerminations","batchProcessingLevel","DdSdkReactNativeConfiguration","verbosity","undefined","proxyConfig","serviceName","additionalConfiguration","customEndpoints","constructor","clientToken","env","applicationId","trackInteractions","trackResources","trackErrors","addDefaultValuesToAutoInstrumentationConfiguration","features","setConfigurationAttribute","attribute","configuration","value","name","buildConfigurationFromPartialConfiguration","remainingConfiguration","SdkConfiguration","Object","keys","forEach","actionNameAttribute","DatadogProviderConfiguration","initializationMode","InitializationMode","SYNC"],"sourceRoot":"../../src","sources":["DdSdkReactNativeConfiguration.tsx"],"mappings":";;;;;;AAQA,IAAAA,gBAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AAdA;AACA;AACA;AACA;AACA;AAJA,IAgBYE,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;AAAA,IAOrBE,eAAe,GAAAD,OAAA,CAAAC,eAAA,0BAAfA,eAAe;EACvB;AACJ;AACA;EAHYA,eAAe;EAKvB;AACJ;AACA;EAPYA,eAAe;EASvB;AACJ;AACA;EAXYA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAAA,IAefC,SAAS,GAAAF,OAAA,CAAAE,SAAA,0BAATA,SAAS;EACjB;AACJ;AACA;EAHYA,SAAS;EAKjB;AACJ;AACA;EAPYA,SAAS;EASjB;AACJ;AACA;EAXYA,SAAS;EAAA,OAATA,SAAS;AAAA;AAAA,IAeTC,oBAAoB,GAAA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EI,IAAI,EAAE,iBAAiB;IAAED,KAAK,EAAEJ,QAAQ,CAACvD;EAAgB,CAAC,EAC5D+D,gBACJ,CAAC;EACDP,yBAAyB,CACrB;IACII,IAAI,EAAE,gBAAgB;IACtBD,KAAK,EAAEJ,QAAQ,CAAC9B;EACpB,CAAC,EACDsC,gBACJ,CAAC;EACDP,yBAAyB,CACrB;IACII,IAAI,EAAE,kBAAkB;IACxBD,KAAK,EAAEJ,QAAQ,CAAC7B;EACpB,CAAC,EACDqC,gBACJ,CAAC;EACDP,yBAAyB,CACrB;IACII,IAAI,EAAE,qBAAqB;IAC3BD,KAAK,EAAEJ,QAAQ,CAAC5B;EACpB,CAAC,EACDoC,gBACJ,CAAC;EACDP,yBAAyB,CACrB;IACII,IAAI,EAAE,mBAAmB;IACzBD,KAAK,EAAEJ,QAAQ,CAAC3B;EACpB,CAAC,EACDmC,gBACJ,CAAC;EACDP,yBAAyB,CACrB;IACII,IAAI,EAAE,qBAAqB;IAC3BD,KAAK,EAAEJ,QAAQ,CAACY;EACpB,CAAC,EACDJ,gBACJ,CAAC;EAED,OAAOA,gBAAgB;AAC3B,CAAC;AAACtE,OAAA,CAAAoE,0CAAA,GAAAA,0CAAA;AAEK,MAAMO,4BAA4B,SAAS5B,6BAA6B,CAAC;EACrE6B,kBAAkB,GAAuBC,kBAAkB,CAACC,IAAI;AAC3E;AAAC9E,OAAA,CAAA2E,4BAAA,GAAAA,4BAAA;AAAA,IAEWE,kBAAkB,GAAA7E,OAAA,CAAA6E,kBAAA,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ProxyConfiguration","constructor","type","address","port","username","password","ProxyType","SOCKS","console","warn","exports"],"sourceRoot":"../../src","sources":["ProxyConfiguration.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AACA,MAAMA,kBAAkB,CAAC;EAIrBC,WAAWA;EACP;AACR;AACA;EACiBC,IAAe;EACxB;AACR;AACA;EACiBC,OAAe;EACxB;AACR;AACA;EACiBC,IAAY;EACrB;AACR;AACA;AACA;AACA;EACQC,QAAiB;EACjB;AACR;AACA;EACQC,QAAiB,EACnB;IAAA,KAnBWJ,IAAe,GAAfA,IAAe;IAAA,KAIfC,OAAe,GAAfA,OAAe;IAAA,KAIfC,IAAY,GAAZA,IAAY;IAYrB,IAAIC,QAAQ,IAAIC,QAAQ,EAAE;MACtB,IAAIJ,IAAI,KAAKK,SAAS,CAACC,KAAK,EAAE;QAC1BC,OAAO,CAACC,IAAI,CACR,iEACJ,CAAC;MACL,CAAC,MAAM;QACH,IAAI,CAACL,QAAQ,GAAGA,QAAQ;QACxB,IAAI,CAACC,QAAQ,GAAGA,QAAQ;MAC5B;IACJ;EACJ;AACJ;AAACK,OAAA,CAAAX,kBAAA,GAAAA,kBAAA;AAAA,IAEIO,SAAS,GAAAI,OAAA,CAAAJ,SAAA,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA,EAATA,SAAS","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["SdkVerbosity","exports"],"sourceRoot":"../../src","sources":["SdkVerbosity.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAFA,IAGYA,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TrackingConsent","exports"],"sourceRoot":"../../src","sources":["TrackingConsent.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAFA,IAGYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DdAttributes","exports","errorSourceType","errorFingerprint","debugId"],"sourceRoot":"../../../src","sources":["rum/DdAttributes.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EACxB;AACJ;AACA;AACA;AACA;EACIE,eAAe,EAAE,uBAAuB;EAExC;AACJ;AACA;AACA;EACIC,gBAAgB,EAAE,uBAAuB;EAEzC;AACJ;AACA;AACA;AACA;EACIC,OAAO,EAAE;AACb,CAAC","ignoreList":[]}
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getJSONConfiguration = exports.formatPropagatorType = exports.FileBasedConfiguration = void 0;
|
|
7
|
-
var _DdSdkReactNativeConfiguration = require("../../DdSdkReactNativeConfiguration");
|
|
8
|
-
var _SdkVerbosity = require("../../SdkVerbosity");
|
|
9
|
-
var _TrackingConsent = require("../../TrackingConsent");
|
|
10
|
-
var _types = require("../../rum/types");
|
|
11
|
-
/*
|
|
12
|
-
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
13
|
-
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
14
|
-
* Copyright 2016-Present Datadog, Inc.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
class FileBasedConfiguration extends _DdSdkReactNativeConfiguration.DatadogProviderConfiguration {
|
|
18
|
-
constructor(params) {
|
|
19
|
-
const configuration = getJSONConfiguration(params?.configuration);
|
|
20
|
-
super(configuration.clientToken, configuration.env, configuration.applicationId, configuration.trackInteractions, configuration.trackResources, configuration.trackErrors, configuration.trackingConsent, configuration.useAccessibilityLabel);
|
|
21
|
-
this.longTaskThresholdMs = configuration.longTaskThresholdMs || _DdSdkReactNativeConfiguration.DEFAULTS.longTaskThresholdMs;
|
|
22
|
-
this.verbosity = configuration.verbosity;
|
|
23
|
-
this.actionNameAttribute = configuration.actionNameAttribute;
|
|
24
|
-
this.site = configuration.site || _DdSdkReactNativeConfiguration.DEFAULTS.site;
|
|
25
|
-
this.resourceTracingSamplingRate = configuration.resourceTracingSamplingRate || _DdSdkReactNativeConfiguration.DEFAULTS.resourceTracingSamplingRate;
|
|
26
|
-
this.firstPartyHosts = configuration.firstPartyHosts || _DdSdkReactNativeConfiguration.DEFAULTS.getFirstPartyHosts();
|
|
27
|
-
this.errorEventMapper = params?.errorEventMapper || _DdSdkReactNativeConfiguration.DEFAULTS.errorEventMapper;
|
|
28
|
-
this.resourceEventMapper = params?.resourceEventMapper || _DdSdkReactNativeConfiguration.DEFAULTS.resourceEventMapper;
|
|
29
|
-
this.actionEventMapper = params?.actionEventMapper || _DdSdkReactNativeConfiguration.DEFAULTS.actionEventMapper;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.FileBasedConfiguration = FileBasedConfiguration;
|
|
33
|
-
const resolveJSONConfiguration = userSpecifiedConfiguration => {
|
|
34
|
-
if (userSpecifiedConfiguration === undefined || userSpecifiedConfiguration === null) {
|
|
35
|
-
try {
|
|
36
|
-
// This corresponds to a file located at the root of a RN project.
|
|
37
|
-
// /!\ We have to write the require this way as dynamic requires are not supported by Hermes.
|
|
38
|
-
// eslint-disable-next-line global-require, @typescript-eslint/no-var-requires
|
|
39
|
-
const jsonContent = require('../../../../../../datadog-configuration.json');
|
|
40
|
-
if (typeof jsonContent !== 'object' || !jsonContent['configuration']) {
|
|
41
|
-
console.error(`Failed to parse the Datadog configuration file located at the root of the project.
|
|
42
|
-
Your configuration must validate the node_modules/@datadog/mobile-react-native/datadog-configuration.schema.json JSON schema.
|
|
43
|
-
You can use VSCode to check your configuration by adding the following line to your JSON file:
|
|
44
|
-
{
|
|
45
|
-
"$schema": "./node_modules/@datadog/mobile-react-native/datadog-configuration.schema.json",
|
|
46
|
-
}`);
|
|
47
|
-
return {};
|
|
48
|
-
}
|
|
49
|
-
return jsonContent.configuration;
|
|
50
|
-
} catch (error) {
|
|
51
|
-
console.error(`Failed to read Datadog configuration file at the root of the project.
|
|
52
|
-
If you don't have a datadog-configuration.json file at the same level as your node_modules directory,\
|
|
53
|
-
please use the following syntax:\n
|
|
54
|
-
new FileBasedConfiguration({configuration: require('./file/to/configuration-file.json')})
|
|
55
|
-
`);
|
|
56
|
-
return {};
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if (typeof userSpecifiedConfiguration !== 'object' || !userSpecifiedConfiguration['configuration']) {
|
|
60
|
-
console.error(`Failed to parse the Datadog configuration file you provided.
|
|
61
|
-
Your configuration must validate the node_modules/@datadog/mobile-react-native/datadog-configuration.schema.json JSON schema.
|
|
62
|
-
You can use VSCode to check your configuration by adding the following line to your JSON file:
|
|
63
|
-
{
|
|
64
|
-
"$schema": "./node_modules/@datadog/mobile-react-native/datadog-configuration.schema.json",
|
|
65
|
-
}`);
|
|
66
|
-
return {};
|
|
67
|
-
}
|
|
68
|
-
return userSpecifiedConfiguration['configuration'];
|
|
69
|
-
};
|
|
70
|
-
const getJSONConfiguration = userSpecifiedConfiguration => {
|
|
71
|
-
const configuration = resolveJSONConfiguration(userSpecifiedConfiguration);
|
|
72
|
-
return {
|
|
73
|
-
clientToken: configuration.clientToken,
|
|
74
|
-
env: configuration.env,
|
|
75
|
-
applicationId: configuration.applicationId,
|
|
76
|
-
trackInteractions: configuration.trackInteractions,
|
|
77
|
-
trackResources: configuration.trackResources,
|
|
78
|
-
trackErrors: configuration.trackErrors,
|
|
79
|
-
trackingConsent: buildTrackingConsent(configuration.trackingConsent),
|
|
80
|
-
longTaskThresholdMs: configuration.longTaskThresholdMs,
|
|
81
|
-
verbosity: buildSdkVerbosity(configuration.verbosity),
|
|
82
|
-
actionNameAttribute: configuration.actionNameAttribute,
|
|
83
|
-
resourceTracingSamplingRate: configuration.resourceTracingSamplingRate,
|
|
84
|
-
firstPartyHosts: buildFirstPartyHosts(configuration.firstPartyHosts),
|
|
85
|
-
site: configuration.site,
|
|
86
|
-
useAccessibilityLabel: configuration.useAccessibilityLabel
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
exports.getJSONConfiguration = getJSONConfiguration;
|
|
90
|
-
const buildFirstPartyHosts = firstPartyHosts => {
|
|
91
|
-
if (!firstPartyHosts) {
|
|
92
|
-
return undefined;
|
|
93
|
-
}
|
|
94
|
-
try {
|
|
95
|
-
return firstPartyHosts.map(({
|
|
96
|
-
match,
|
|
97
|
-
propagatorTypes
|
|
98
|
-
}) => ({
|
|
99
|
-
match,
|
|
100
|
-
propagatorTypes: propagatorTypes.map(formatPropagatorType)
|
|
101
|
-
}));
|
|
102
|
-
} catch (error) {
|
|
103
|
-
console.error(`Failed to parse the first party hosts from the Datadog configuration file you provided:
|
|
104
|
-
${error.message}
|
|
105
|
-
The first party hosts will not be set for this session.
|
|
106
|
-
`);
|
|
107
|
-
return undefined;
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
const formatPropagatorType = propagatorType => {
|
|
111
|
-
switch (propagatorType.toLowerCase()) {
|
|
112
|
-
case 'b3':
|
|
113
|
-
{
|
|
114
|
-
return _types.PropagatorType.B3;
|
|
115
|
-
}
|
|
116
|
-
case 'b3multi':
|
|
117
|
-
{
|
|
118
|
-
return _types.PropagatorType.B3MULTI;
|
|
119
|
-
}
|
|
120
|
-
case 'datadog':
|
|
121
|
-
{
|
|
122
|
-
return _types.PropagatorType.DATADOG;
|
|
123
|
-
}
|
|
124
|
-
case 'tracecontext':
|
|
125
|
-
{
|
|
126
|
-
return _types.PropagatorType.TRACECONTEXT;
|
|
127
|
-
}
|
|
128
|
-
default:
|
|
129
|
-
{
|
|
130
|
-
throw new Error(`Failed to parse propagator type ${propagatorType}.`);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
exports.formatPropagatorType = formatPropagatorType;
|
|
135
|
-
const buildTrackingConsent = trackingConsent => {
|
|
136
|
-
if (trackingConsent === undefined) {
|
|
137
|
-
return undefined;
|
|
138
|
-
}
|
|
139
|
-
switch (trackingConsent.toLowerCase()) {
|
|
140
|
-
case 'granted':
|
|
141
|
-
{
|
|
142
|
-
return _TrackingConsent.TrackingConsent.GRANTED;
|
|
143
|
-
}
|
|
144
|
-
case 'pending':
|
|
145
|
-
{
|
|
146
|
-
return _TrackingConsent.TrackingConsent.PENDING;
|
|
147
|
-
}
|
|
148
|
-
case 'not_granted':
|
|
149
|
-
{
|
|
150
|
-
return _TrackingConsent.TrackingConsent.NOT_GRANTED;
|
|
151
|
-
}
|
|
152
|
-
default:
|
|
153
|
-
{
|
|
154
|
-
return _DdSdkReactNativeConfiguration.DEFAULTS.trackingConsent;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
const buildSdkVerbosity = verbosity => {
|
|
159
|
-
if (verbosity === undefined) {
|
|
160
|
-
return undefined;
|
|
161
|
-
}
|
|
162
|
-
switch (verbosity.toLowerCase()) {
|
|
163
|
-
case 'debug':
|
|
164
|
-
{
|
|
165
|
-
return _SdkVerbosity.SdkVerbosity.DEBUG;
|
|
166
|
-
}
|
|
167
|
-
case 'info':
|
|
168
|
-
{
|
|
169
|
-
return _SdkVerbosity.SdkVerbosity.INFO;
|
|
170
|
-
}
|
|
171
|
-
case 'warn':
|
|
172
|
-
{
|
|
173
|
-
return _SdkVerbosity.SdkVerbosity.WARN;
|
|
174
|
-
}
|
|
175
|
-
case 'error':
|
|
176
|
-
{
|
|
177
|
-
return _SdkVerbosity.SdkVerbosity.ERROR;
|
|
178
|
-
}
|
|
179
|
-
default:
|
|
180
|
-
{
|
|
181
|
-
return undefined;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
//# sourceMappingURL=FileBasedConfiguration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_DdSdkReactNativeConfiguration","require","_SdkVerbosity","_TrackingConsent","_types","FileBasedConfiguration","DatadogProviderConfiguration","constructor","params","configuration","getJSONConfiguration","clientToken","env","applicationId","trackInteractions","trackResources","trackErrors","trackingConsent","useAccessibilityLabel","longTaskThresholdMs","DEFAULTS","verbosity","actionNameAttribute","site","resourceTracingSamplingRate","firstPartyHosts","getFirstPartyHosts","errorEventMapper","resourceEventMapper","actionEventMapper","exports","resolveJSONConfiguration","userSpecifiedConfiguration","undefined","jsonContent","console","error","buildTrackingConsent","buildSdkVerbosity","buildFirstPartyHosts","map","match","propagatorTypes","formatPropagatorType","message","propagatorType","toLowerCase","PropagatorType","B3","B3MULTI","DATADOG","TRACECONTEXT","Error","TrackingConsent","GRANTED","PENDING","NOT_GRANTED","SdkVerbosity","DEBUG","INFO","WARN","ERROR"],"sourceRoot":"../../../../src","sources":["sdk/FileBasedConfiguration/FileBasedConfiguration.ts"],"mappings":";;;;;;AAOA,IAAAA,8BAAA,GAAAC,OAAA;AAIA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAhBA;AACA;AACA;AACA;AACA;;AAcO,MAAMI,sBAAsB,SAASC,2DAA4B,CAAC;EACrEC,WAAWA,CAACC,MAKX,EAAE;IACC,MAAMC,aAAa,GAAGC,oBAAoB,CAACF,MAAM,EAAEC,aAAa,CAAC;IACjE,KAAK,CACDA,aAAa,CAACE,WAAW,EACzBF,aAAa,CAACG,GAAG,EACjBH,aAAa,CAACI,aAAa,EAC3BJ,aAAa,CAACK,iBAAiB,EAC/BL,aAAa,CAACM,cAAc,EAC5BN,aAAa,CAACO,WAAW,EACzBP,aAAa,CAACQ,eAAe,EAC7BR,aAAa,CAACS,qBAClB,CAAC;IACD,IAAI,CAACC,mBAAmB,GACpBV,aAAa,CAACU,mBAA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