@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
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { FirstPartyHost } from '../rum/types';
|
|
2
|
+
import type { CoreConfigurationOptions } from './features/CoreConfiguration.type';
|
|
3
|
+
import type { BatchProcessingLevel, BatchSize, ProxyConfiguration, SdkVerbosity, TrackingConsent, UploadFrequency, VitalsUpdateFrequency } from './types';
|
|
4
|
+
export interface JsonConfiguration extends CoreConfigurationOptions {
|
|
5
|
+
clientToken: string;
|
|
6
|
+
env: string;
|
|
7
|
+
trackingConsent?: TrackingConsent;
|
|
8
|
+
verbosity?: SdkVerbosity;
|
|
9
|
+
service?: string;
|
|
10
|
+
site?: string;
|
|
11
|
+
batchSize?: BatchSize;
|
|
12
|
+
batchProcessingLevel?: BatchProcessingLevel;
|
|
13
|
+
proxyConfiguration?: ProxyConfiguration;
|
|
14
|
+
uploadFrequency?: UploadFrequency;
|
|
15
|
+
version?: string;
|
|
16
|
+
versionSuffix?: string;
|
|
17
|
+
rumConfiguration?: {
|
|
18
|
+
applicationId: string;
|
|
19
|
+
useAccessibilityLabel?: boolean;
|
|
20
|
+
trackInteractions?: boolean;
|
|
21
|
+
trackResources?: boolean;
|
|
22
|
+
trackErrors?: boolean;
|
|
23
|
+
longTaskThresholdMs?: number;
|
|
24
|
+
actionNameAttribute?: string;
|
|
25
|
+
appHangThreshold?: number;
|
|
26
|
+
firstPartyHosts?: FirstPartyHost[];
|
|
27
|
+
initialResourceThreshold?: number;
|
|
28
|
+
trackMemoryWarnings?: boolean;
|
|
29
|
+
nativeCrashReportEnabled?: boolean;
|
|
30
|
+
nativeLongTaskThresholdMs?: number;
|
|
31
|
+
nativeViewTracking?: boolean;
|
|
32
|
+
nativeInteractionTracking?: boolean;
|
|
33
|
+
customEndpoint?: string;
|
|
34
|
+
sessionSampleRate?: number;
|
|
35
|
+
resourceTraceSampleRate?: number;
|
|
36
|
+
trackBackgroundEvents?: boolean;
|
|
37
|
+
trackFrustrations?: boolean;
|
|
38
|
+
trackNonFatalAnrs?: boolean;
|
|
39
|
+
trackWatchdogTerminations?: boolean;
|
|
40
|
+
vitalsUpdateFrequency?: VitalsUpdateFrequency;
|
|
41
|
+
telemetrySampleRate?: number;
|
|
42
|
+
};
|
|
43
|
+
traceConfiguration?: {
|
|
44
|
+
customEndpoint?: string;
|
|
45
|
+
};
|
|
46
|
+
logsConfiguration?: {
|
|
47
|
+
bundleLogsWithRum?: boolean;
|
|
48
|
+
bundleLogsWithTraces?: boolean;
|
|
49
|
+
customEndpoint?: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=FileBasedConfiguration.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileBasedConfiguration.type.d.ts","sourceRoot":"","sources":["../../../src/config/FileBasedConfiguration.type.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EACR,oBAAoB,EACpB,SAAS,EACT,kBAAkB,EA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uB,CAAC,EAAE,MAAM,CAAC;QACjC,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,yBAAyB,CAAC,EAAE,OAAO,CAAC;QACpC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;QAC9C,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAChC,CAAC;IACF,kBAAkB,CAAC,EAAE;QACjB,cAAc,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,iBAAiB,CAAC,EAAE;QAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;CACL"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { ActionEventMapper } from '../../rum/eventMappers/actionEventMapper';
|
|
2
|
+
import type { ErrorEventMapper } from '../../rum/eventMappers/errorEventMapper';
|
|
3
|
+
import type { ResourceEventMapper } from '../../rum/eventMappers/resourceEventMapper';
|
|
4
|
+
import type { FirstPartyHost } from '../../rum/types';
|
|
5
|
+
import type { LogEventMapper } from '../../types';
|
|
6
|
+
import type { TraceConfiguration } from '../features/TraceConfiguration';
|
|
7
|
+
/**
|
|
8
|
+
* Auto Instrumentation configuration passed to DatadogProvider.
|
|
9
|
+
* Does not include default values.
|
|
10
|
+
*/
|
|
11
|
+
export type AutoInstrumentationConfiguration = {
|
|
12
|
+
readonly rumConfiguration: {
|
|
13
|
+
readonly trackInteractions: boolean;
|
|
14
|
+
readonly trackResources: boolean;
|
|
15
|
+
readonly trackErrors: boolean;
|
|
16
|
+
readonly useAccessibilityLabel?: boolean;
|
|
17
|
+
readonly actionNameAttribute?: string;
|
|
18
|
+
readonly resourceTraceSampleRate?: number;
|
|
19
|
+
readonly nativeCrashReportEnabled?: boolean;
|
|
20
|
+
readonly nativeLongTaskThresholdMs?: number;
|
|
21
|
+
readonly nativeViewTracking?: boolean;
|
|
22
|
+
readonly actionEventMapper?: ActionEventMapper | null;
|
|
23
|
+
readonly errorEventMapper?: ErrorEventMapper | null;
|
|
24
|
+
readonly resourceEventMapper?: ResourceEventMapper | null;
|
|
25
|
+
readonly firstPartyHosts?: FirstPartyHost[];
|
|
26
|
+
};
|
|
27
|
+
readonly logsConfiguration: {
|
|
28
|
+
readonly logEventMapper?: LogEventMapper | null;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Parameters needed to start auto instrumentation. Includes default values.
|
|
33
|
+
*/
|
|
34
|
+
export type AutoInstrumentationParameters = {
|
|
35
|
+
readonly rumConfiguration?: {
|
|
36
|
+
readonly useAccessibilityLabel: boolean;
|
|
37
|
+
readonly trackInteractions: boolean;
|
|
38
|
+
readonly trackResources: boolean;
|
|
39
|
+
readonly trackErrors: boolean;
|
|
40
|
+
readonly actionNameAttribute?: string;
|
|
41
|
+
readonly resourceTraceSampleRate?: number;
|
|
42
|
+
readonly nativeCrashReportEnabled?: boolean;
|
|
43
|
+
readonly nativeLongTaskThresholdMs?: number;
|
|
44
|
+
readonly nativeViewTracking?: boolean;
|
|
45
|
+
readonly actionEventMapper: ActionEventMapper | null;
|
|
46
|
+
readonly errorEventMapper: ErrorEventMapper | null;
|
|
47
|
+
readonly resourceEventMapper: ResourceEventMapper | null;
|
|
48
|
+
readonly firstPartyHosts: FirstPartyHost[];
|
|
49
|
+
};
|
|
50
|
+
readonly logsConfiguration?: {
|
|
51
|
+
readonly logEventMapper: LogEventMapper | null;
|
|
52
|
+
};
|
|
53
|
+
readonly traceConfiguration?: TraceConfiguration;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* We could use `Proxy` instead of this function, but `Proxy` is not available on
|
|
57
|
+
* the older android jsc that can still be used.
|
|
58
|
+
*/
|
|
59
|
+
export declare const addDefaultValuesToAutoInstrumentationConfiguration: (features: AutoInstrumentationConfiguration) => AutoInstrumentationParameters;
|
|
60
|
+
//# sourceMappingURL=AutoInstrumentationConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoInstrumentationConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/config/async/AutoInstrumentationConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;GAGG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC3C,QAAQ,CAAC,gBAAgB,EAAE;QACvB,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;QACpC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;QACjC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;QAC9B,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;QACzC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;QACtC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC;QAC1C,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;QAC5C,QAAQ,CAAC,yBAAyB,CAAC,EAAE,MAAM,CAAC;QAC5C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;QACtC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;QACtD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;QACpD,QAAQ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C,KAC3C,6BAuDF,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { AttributeEncoder } from '../../sdk/AttributesEncoding/types';
|
|
2
|
+
import type { BatchProcessingLevel, BatchSize, ProxyConfiguration, SdkVerbosity, TrackingConsent, UploadFrequency, VitalsUpdateFrequency } from '../types';
|
|
3
|
+
export type PartialInitializationConfiguration = {
|
|
4
|
+
readonly additionalConfiguration?: {
|
|
5
|
+
[k: string]: any;
|
|
6
|
+
};
|
|
7
|
+
readonly attributeEncoders?: AttributeEncoder<any>[];
|
|
8
|
+
readonly clientToken: string;
|
|
9
|
+
readonly env: string;
|
|
10
|
+
readonly site?: string;
|
|
11
|
+
readonly trackingConsent?: TrackingConsent;
|
|
12
|
+
readonly verbosity?: SdkVerbosity | undefined;
|
|
13
|
+
readonly service?: string;
|
|
14
|
+
readonly version?: string;
|
|
15
|
+
versionSuffix?: string;
|
|
16
|
+
readonly proxyConfiguration?: ProxyConfiguration;
|
|
17
|
+
readonly uploadFrequency?: UploadFrequency;
|
|
18
|
+
readonly batchSize?: BatchSize;
|
|
19
|
+
readonly batchProcessingLevel?: BatchProcessingLevel;
|
|
20
|
+
readonly rumConfiguration?: {
|
|
21
|
+
readonly applicationId: string;
|
|
22
|
+
readonly sessionSampleRate?: number;
|
|
23
|
+
readonly nativeLongTaskThresholdMs?: number;
|
|
24
|
+
readonly nativeCrashReportEnabled?: boolean;
|
|
25
|
+
readonly nativeViewTracking?: boolean;
|
|
26
|
+
readonly nativeInteractionTracking?: boolean;
|
|
27
|
+
readonly longTaskThresholdMs?: number | false;
|
|
28
|
+
readonly vitalsUpdateFrequency?: VitalsUpdateFrequency;
|
|
29
|
+
readonly trackFrustrations?: boolean;
|
|
30
|
+
readonly trackBackgroundEvents?: boolean;
|
|
31
|
+
readonly initialResourceThreshold?: number;
|
|
32
|
+
readonly trackMemoryWarnings?: boolean;
|
|
33
|
+
readonly telemetrySampleRate?: number;
|
|
34
|
+
readonly customEndpoint?: string;
|
|
35
|
+
readonly trackNonFatalAnrs?: boolean;
|
|
36
|
+
readonly appHangThreshold?: number;
|
|
37
|
+
};
|
|
38
|
+
readonly logsConfiguration?: {
|
|
39
|
+
readonly bundleLogsWithRum?: boolean;
|
|
40
|
+
readonly bundleLogsWithTraces?: boolean;
|
|
41
|
+
readonly customEndpoint?: string;
|
|
42
|
+
};
|
|
43
|
+
readonly traceConfiguration?: {
|
|
44
|
+
readonly customEndpoint?: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=PartialInitializationConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartialInitializationConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/config/async/PartialInitializationConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EACR,oBAAoB,EACpB,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,qBAAqB,EACxB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,kCAAkC,GAAG;IAC7C,QAAQ,CAAC,uBAAuB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACxD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;IACrD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;IAC3C,QAAQ,CAAC,SAAS,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAA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AO,CAAC;QACrC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;QACxC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;KACpC,CAAC;IACF,QAAQ,CAAC,kBAAkB,CAAC,EAAE;QAC1B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;KACpC,CAAC;CACL,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CoreConfiguration } from '../features/CoreConfiguration';
|
|
2
|
+
import type { AutoInstrumentationConfiguration } from './AutoInstrumentationConfiguration';
|
|
3
|
+
import type { PartialInitializationConfiguration } from './PartialInitializationConfiguration';
|
|
4
|
+
export declare const buildConfigurationFromPartialConfiguration: (features: AutoInstrumentationConfiguration, configuration: PartialInitializationConfiguration) => CoreConfiguration;
|
|
5
|
+
//# sourceMappingURL=asyncInitializationHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncInitializationHelper.d.ts","sourceRoot":"","sources":["../../../../src/config/async/asyncInitializationHelper.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIlE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE/F,eAAO,MAAM,0CAA0C,aACzC,gCAAgC,iBAC3B,kCAAkC,KAClD,iBAmCF,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { AttributeEncoder } from '../../sdk/AttributesEncoding/types';
|
|
2
|
+
import type { SdkVerbosity, ProxyConfiguration } from '../types';
|
|
3
|
+
import { TrackingConsent, BatchProcessingLevel, BatchSize, UploadFrequency } from '../types';
|
|
4
|
+
import type { CoreConfigurationOptions, CoreConfigurationType } from './CoreConfiguration.type';
|
|
5
|
+
import { LogsConfiguration } from './LogsConfiguration';
|
|
6
|
+
import { RumConfiguration } from './RumConfiguration';
|
|
7
|
+
import { TraceConfiguration } from './TraceConfiguration';
|
|
8
|
+
declare const DEFAULTS: {
|
|
9
|
+
getAdditionalConfiguration: () => {};
|
|
10
|
+
attributeEncoders: AttributeEncoder<any>[];
|
|
11
|
+
batchProcessingLevel: BatchProcessingLevel;
|
|
12
|
+
batchSize: BatchSize;
|
|
13
|
+
logsConfiguration: undefined;
|
|
14
|
+
proxyConfiguration: undefined;
|
|
15
|
+
rumConfiguration: undefined;
|
|
16
|
+
service: undefined;
|
|
17
|
+
site: string;
|
|
18
|
+
traceConfiguration: undefined;
|
|
19
|
+
uploadFrequency: UploadFrequency;
|
|
20
|
+
verbosity: undefined;
|
|
21
|
+
version: undefined;
|
|
22
|
+
versionSuffix: undefined;
|
|
23
|
+
trackingConsent: TrackingConsent;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The Core configuration class.
|
|
27
|
+
* Used to configure the SDK functionality at initialization.
|
|
28
|
+
*/
|
|
29
|
+
declare class CoreConfiguration implements CoreConfigurationType {
|
|
30
|
+
readonly clientToken: string;
|
|
31
|
+
readonly env: string;
|
|
32
|
+
readonly trackingConsent: TrackingConsent;
|
|
33
|
+
additionalConfiguration?: {
|
|
34
|
+
[k: string]: any;
|
|
35
|
+
};
|
|
36
|
+
attributeEncoders: AttributeEncoder<any>[];
|
|
37
|
+
batchProcessingLevel: BatchProcessingLevel;
|
|
38
|
+
batchSize: BatchSize;
|
|
39
|
+
logsConfiguration?: LogsConfiguration;
|
|
40
|
+
proxyConfiguration?: ProxyConfiguration;
|
|
41
|
+
rumConfiguration?: RumConfiguration;
|
|
42
|
+
service?: string;
|
|
43
|
+
site: string;
|
|
44
|
+
traceConfiguration?: TraceConfiguration;
|
|
45
|
+
uploadFrequency: UploadFrequency;
|
|
46
|
+
verbosity?: SdkVerbosity;
|
|
47
|
+
version?: string;
|
|
48
|
+
versionSuffix?: string;
|
|
49
|
+
constructor(clientToken: string, env: string, trackingConsent?: TrackingConsent, options?: CoreConfigurationOptions);
|
|
50
|
+
}
|
|
51
|
+
export { DEFAULTS as CORE_DEFAULTS, CoreConfiguration };
|
|
52
|
+
//# sourceMappingURL=CoreConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoreConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/config/features/CoreConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EACH,eAAe,EACf,oBAAoB,EACpB,SAAS,EACT,eAAe,EAClB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EACR,wBAAwB,EACxB,qBAAqB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;CAgBb,CAAC;AAEF;;;GAGG;AACH,cAAM,iBAAkB,YAAW,qBAAqB;IAkDhD,QAAQ,CAAC,WAAW,EAAE,MAAM;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,QAAQ,CAAC,eAAe,EAAE,eAAe;IAlDtC,uBAAuB,CAAC,EAAE;QAC7B,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAyC;IAGnC,iBAAiB,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAClB;IAGxB,oBAAoB,EAAE,oBAAoB,CACf;IAG3B,SAAS,EAAE,SAAS,CAAsB;IAG1C,iBAAiB,CAAC,EAAE,iBAAiB,CAA8B;IAGnE,kBAAkB,CAAC,EAAE,kBAAkB,CACd;IAGzB,gBAAgB,CAAC,EAAE,gBAAgB,CAA6B;IAGhE,OAAO,CAAC,EAAE,MAAM,CAAoB;IAGpC,IAAI,EAAE,MAAM,CAAiB;IAG7B,kBAAkB,CAAC,EAAE,kBAAkB,CACd;IAGzB,eAAe,EAAE,eAAe,CAA4B;IAG5D,SAAS,CAAC,EAAE,YAAY,CAAsB;IAG9C,OAAO,CAAC,EAAE,MAAM,CAAoB;IAGpC,aAAa,CAAC,EAAE,MAAM,CAA0B;gBAG1C,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,EACX,eAAe,GAAE,eAA0C,EACpE,OAAO,GAAE,wBAA6B;CA8B7C;AAED,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { AttributeEncoder } from '../../sdk/AttributesEncoding/types';
|
|
2
|
+
import type { BatchProcessingLevel, BatchSize, ProxyConfiguration, SdkVerbosity, TrackingConsent, UploadFrequency } from '../types';
|
|
3
|
+
import type { LogsConfigurationType } from './LogsConfiguration.type';
|
|
4
|
+
import type { RumConfigurationType } from './RumConfiguration.type';
|
|
5
|
+
import type { TraceConfigurationType } from './TraceConfiguration.type';
|
|
6
|
+
/**
|
|
7
|
+
* Required core configuration values.
|
|
8
|
+
*/
|
|
9
|
+
export interface CoreConfigurationRequired {
|
|
10
|
+
/**
|
|
11
|
+
* The Datadog client token.
|
|
12
|
+
*/
|
|
13
|
+
clientToken: string;
|
|
14
|
+
/**
|
|
15
|
+
* The environment name (e.g. prod, staging).
|
|
16
|
+
*/
|
|
17
|
+
env: string;
|
|
18
|
+
/**
|
|
19
|
+
* Initial tracking consent value.
|
|
20
|
+
*/
|
|
21
|
+
trackingConsent: TrackingConsent;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Optional core configuration values.
|
|
25
|
+
*/
|
|
26
|
+
export interface CoreConfigurationOptions {
|
|
27
|
+
/**
|
|
28
|
+
* Additional arbitrary configuration values.
|
|
29
|
+
*/
|
|
30
|
+
additionalConfiguration?: {
|
|
31
|
+
[k: string]: any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Custom attribute encoders.
|
|
35
|
+
*/
|
|
36
|
+
attributeEncoders?: AttributeEncoder<any>[];
|
|
37
|
+
/**
|
|
38
|
+
* Batch size used when sending data.
|
|
39
|
+
*/
|
|
40
|
+
batchSize?: BatchSize;
|
|
41
|
+
/**
|
|
42
|
+
* Processing level used when batching data.
|
|
43
|
+
*/
|
|
44
|
+
batchProcessingLevel?: BatchProcessingLevel;
|
|
45
|
+
/**
|
|
46
|
+
* Logs feature configuration.
|
|
47
|
+
*/
|
|
48
|
+
logsConfiguration?: LogsConfigurationType;
|
|
49
|
+
/**
|
|
50
|
+
* Proxy configuration.
|
|
51
|
+
*/
|
|
52
|
+
proxyConfiguration?: ProxyConfiguration;
|
|
53
|
+
/**
|
|
54
|
+
* RUM feature configuration.
|
|
55
|
+
*/
|
|
56
|
+
rumConfiguration?: RumConfigurationType;
|
|
57
|
+
/**
|
|
58
|
+
* Name of the service.
|
|
59
|
+
*/
|
|
60
|
+
service?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Datadog site to send data to.
|
|
63
|
+
*/
|
|
64
|
+
site?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Trace feature configuration.
|
|
67
|
+
*/
|
|
68
|
+
traceConfiguration?: TraceConfigurationType;
|
|
69
|
+
/**
|
|
70
|
+
* Frequency used to upload data batches.
|
|
71
|
+
*/
|
|
72
|
+
uploadFrequency?: UploadFrequency;
|
|
73
|
+
/**
|
|
74
|
+
* Overrides the reported application version.
|
|
75
|
+
*/
|
|
76
|
+
version?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Suffix added to the reported application version.
|
|
79
|
+
*/
|
|
80
|
+
versionSuffix?: string;
|
|
81
|
+
/**
|
|
82
|
+
* SDK internal logging verbosity.
|
|
83
|
+
*/
|
|
84
|
+
verbosity?: SdkVerbosity;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Complete core configuration type.
|
|
88
|
+
*/
|
|
89
|
+
export type CoreConfigurationType = CoreConfigurationRequired & CoreConfigurationOptions;
|
|
90
|
+
//# sourceMappingURL=CoreConfiguration.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoreConfiguration.type.d.ts","sourceRoot":"","sources":["../../../../src/config/features/CoreConfiguration.type.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EACR,oBAAoB,EACpB,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,eAAe,EAClB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,eAAe,EAAE,eAAe,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,uBAAuB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAE/C;;OAEG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;IAE5C;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAE5C;;OAEG;IACH,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;IAE1C;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC;;OAEG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IAExC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,kBAAkB,CAAC,EAAE,sBAAsB,CAAC;IAE5C;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,yBAAyB,GACzD,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { AttributeEncoder } from '../../sdk/AttributesEncoding/types';
|
|
2
|
+
import type { BatchProcessingLevel } from '../types';
|
|
3
|
+
import type { LogsNativeConfiguration } from './LogsConfigurationNative';
|
|
4
|
+
import type { RumNativeConfiguration } from './RumConfigurationNative';
|
|
5
|
+
import type { TraceNativeConfiguration } from './TraceConfigurationNative';
|
|
6
|
+
/**
|
|
7
|
+
* A configuration object to initialize Datadog's features.
|
|
8
|
+
*/
|
|
9
|
+
export declare class DdSdkNativeConfiguration {
|
|
10
|
+
readonly additionalConfiguration: object;
|
|
11
|
+
readonly clientToken: string;
|
|
12
|
+
readonly env: string;
|
|
13
|
+
readonly site: string;
|
|
14
|
+
readonly service: string | undefined;
|
|
15
|
+
readonly verbosity: string | undefined;
|
|
16
|
+
readonly trackingConsent: string;
|
|
17
|
+
readonly uploadFrequency: string;
|
|
18
|
+
readonly batchSize: string;
|
|
19
|
+
readonly batchProcessingLevel: BatchProcessingLevel;
|
|
20
|
+
readonly proxyConfiguration: {
|
|
21
|
+
type: string;
|
|
22
|
+
address: string;
|
|
23
|
+
port: number;
|
|
24
|
+
username?: string;
|
|
25
|
+
password?: string;
|
|
26
|
+
} | undefined;
|
|
27
|
+
readonly attributeEncoders: AttributeEncoder<any>[];
|
|
28
|
+
readonly rumConfiguration: RumNativeConfiguration | undefined;
|
|
29
|
+
readonly logsConfiguration: LogsNativeConfiguration | undefined;
|
|
30
|
+
readonly traceConfiguration: TraceNativeConfiguration | undefined;
|
|
31
|
+
readonly configurationForTelemetry: {
|
|
32
|
+
initializationType: string;
|
|
33
|
+
trackErrors: boolean;
|
|
34
|
+
trackInteractions: boolean;
|
|
35
|
+
trackNetworkRequests: boolean;
|
|
36
|
+
reactVersion: string;
|
|
37
|
+
reactNativeVersion: string;
|
|
38
|
+
};
|
|
39
|
+
constructor(additionalConfiguration: object, clientToken: string, env: string, site: string, service: string | undefined, verbosity: string | undefined, trackingConsent: string, uploadFrequency: string, batchSize: string, batchProcessingLevel: BatchProcessingLevel, proxyConfiguration: {
|
|
40
|
+
type: string;
|
|
41
|
+
address: string;
|
|
42
|
+
port: number;
|
|
43
|
+
username?: string;
|
|
44
|
+
password?: string;
|
|
45
|
+
} | undefined, attributeEncoders: AttributeEncoder<any>[], rumConfiguration: RumNativeConfiguration | undefined, logsConfiguration: LogsNativeConfiguration | undefined, traceConfiguration: TraceNativeConfiguration | undefined, configurationForTelemetry: {
|
|
46
|
+
initializationType: string;
|
|
47
|
+
trackErrors: boolean;
|
|
48
|
+
trackInteractions: boolean;
|
|
49
|
+
trackNetworkRequests: boolean;
|
|
50
|
+
reactVersion: string;
|
|
51
|
+
reactNativeVersion: string;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=CoreConfigurationNative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoreConfigurationNative.d.ts","sourceRoot":"","sources":["../../../../src/config/features/CoreConfigurationNative.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAA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CAAC;QAC3B,oBAAoB,EAAE,OAAO,CAAC;QAC9B,YAAY,EAAE,MAAM,CAAC;QACrB,kBAAkB,EAAE,MAAM,CAAC;KAC9B;gBA9BQ,uBAAuB,EAAE,MAAM,EAC/B,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,MAAM,EACvB,SAAS,EAAE,MAAM,EACjB,oBAAoB,EAAE,oBAAoB,EAC1C,kBAAkB,EACrB;QACI,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACrB,GACD,SAAS,EACN,iBAAiB,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,EAC1C,gBAAgB,EAAE,sBAAsB,GAAG,SAAS,EACpD,iBAAiB,EAAE,uBAAuB,GAAG,SAAS,EACtD,kBAAkB,EAAE,wBAAwB,GAAG,SAAS,EACxD,yBAAyB,EAAE;QAChC,kBAAkB,EAAE,MAAM,CAAC;QAC3B,WAAW,EAAE,OAAO,CAAC;QACrB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,oBAAoB,EAAE,OAAO,CAAC;QAC9B,YAAY,EAAE,MAAM,CAAC;QACrB,kBAAkB,EAAE,MAAM,CAAC;KAC9B;CAER"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { LogEventMapper } from '../../types';
|
|
2
|
+
import type { LogsConfigurationOptions, LogsConfigurationType } from './LogsConfiguration.type';
|
|
3
|
+
declare const DEFAULTS: {
|
|
4
|
+
bundleLogsWithRum: boolean;
|
|
5
|
+
bundleLogsWithTraces: boolean;
|
|
6
|
+
customEndpoint: undefined;
|
|
7
|
+
logEventMapper: null;
|
|
8
|
+
};
|
|
9
|
+
export declare class LogsConfiguration implements LogsConfigurationType {
|
|
10
|
+
bundleLogsWithRum: boolean;
|
|
11
|
+
bundleLogsWithTraces: boolean;
|
|
12
|
+
customEndpoint?: string;
|
|
13
|
+
logEventMapper: LogEventMapper | null;
|
|
14
|
+
constructor(options?: LogsConfigurationOptions);
|
|
15
|
+
}
|
|
16
|
+
export { DEFAULTS as LOGS_DEFAULTS };
|
|
17
|
+
//# sourceMappingURL=LogsConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogsConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/config/features/LogsConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EACR,wBAAwB,EACxB,qBAAqB,EACxB,MAAM,0BAA0B,CAAC;AAElC,QAAA,MAAM,QAAQ;;;;;CAKb,CAAC;AAEF,qBAAa,iBAAkB,YAAW,qBAAqB;IAEpD,iBAAiB,EAAE,OAAO,CAA8B;IAGxD,oBAAoB,EAAE,OAAO,CAAiC;IAG9D,cAAc,CAAC,EAAE,MAAM,CAA2B;IAGlD,cAAc,EAAE,cAAc,GAAG,IAAI,CAA2B;gBAE3D,OAAO,GAAE,wBAA6B;CAGrD;AAED,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { LogEventMapper } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Logs configuration options.
|
|
4
|
+
*/
|
|
5
|
+
export interface LogsConfigurationType {
|
|
6
|
+
/**
|
|
7
|
+
* Enables correlation between logs and RUM.
|
|
8
|
+
*/
|
|
9
|
+
bundleLogsWithRum?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Enables correlation between logs and traces.
|
|
12
|
+
*/
|
|
13
|
+
bundleLogsWithTraces?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Sets a target custom server for Logs.
|
|
16
|
+
*/
|
|
17
|
+
customEndpoint?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Custom mapper to transform log events.
|
|
20
|
+
*/
|
|
21
|
+
logEventMapper?: LogEventMapper | null;
|
|
22
|
+
}
|
|
23
|
+
export type LogsConfigurationOptions = LogsConfigurationType;
|
|
24
|
+
//# sourceMappingURL=LogsConfiguration.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogsConfiguration.type.d.ts","sourceRoot":"","sources":["../../../../src/config/features/LogsConfiguration.type.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CAC1C;AAED,MAAM,MAAM,wBAAwB,GAAG,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogsConfigurationNative.d.ts","sourceRoot":"","sources":["../../../../src/config/features/LogsConfigurationNative.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,uBAAuB,GAAG;IAClC,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC;IACvC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ActionEventMapper } from '../../rum/eventMappers/actionEventMapper';
|
|
2
|
+
import type { ErrorEventMapper } from '../../rum/eventMappers/errorEventMapper';
|
|
3
|
+
import type { ResourceEventMapper } from '../../rum/eventMappers/resourceEventMapper';
|
|
4
|
+
import type { FirstPartyHost } from '../../rum/types';
|
|
5
|
+
import { VitalsUpdateFrequency } from '../types';
|
|
6
|
+
import type { RumConfigurationOptions, RumConfigurationType } from './RumConfiguration.type';
|
|
7
|
+
declare const DEFAULTS: {
|
|
8
|
+
actionEventMapper: null;
|
|
9
|
+
actionNameAttribute: undefined;
|
|
10
|
+
appHangThreshold: undefined;
|
|
11
|
+
customEndpoint: undefined;
|
|
12
|
+
errorEventMapper: null;
|
|
13
|
+
getFirstPartyHosts: () => never[];
|
|
14
|
+
initialResourceThreshold: undefined;
|
|
15
|
+
longTaskThresholdMs: number;
|
|
16
|
+
nativeCrashReportEnabled: boolean;
|
|
17
|
+
nativeInteractionTracking: boolean;
|
|
18
|
+
nativeLongTaskThresholdMs: number;
|
|
19
|
+
nativeViewTracking: boolean;
|
|
20
|
+
resourceEventMapper: null;
|
|
21
|
+
resourceTraceSampleRate: number;
|
|
22
|
+
sessionSampleRate: number;
|
|
23
|
+
telemetrySampleRate: number;
|
|
24
|
+
trackBackgroundEvents: boolean;
|
|
25
|
+
trackErrors: boolean;
|
|
26
|
+
trackFrustrations: boolean;
|
|
27
|
+
trackInteractions: boolean;
|
|
28
|
+
trackMemoryWarnings: boolean;
|
|
29
|
+
trackNonFatalAnrs: undefined;
|
|
30
|
+
trackResources: boolean;
|
|
31
|
+
trackWatchdogTerminations: boolean;
|
|
32
|
+
useAccessibilityLabel: boolean;
|
|
33
|
+
vitalsUpdateFrequency: VitalsUpdateFrequency;
|
|
34
|
+
};
|
|
35
|
+
export declare class RumConfiguration implements RumConfigurationType {
|
|
36
|
+
readonly applicationId: string;
|
|
37
|
+
readonly trackInteractions: boolean;
|
|
38
|
+
readonly trackResources: boolean;
|
|
39
|
+
readonly trackErrors: boolean;
|
|
40
|
+
actionEventMapper: ActionEventMapper | null;
|
|
41
|
+
actionNameAttribute?: string;
|
|
42
|
+
appHangThreshold?: number;
|
|
43
|
+
customEndpoint?: string;
|
|
44
|
+
errorEventMapper: ErrorEventMapper | null;
|
|
45
|
+
firstPartyHosts: FirstPartyHost[];
|
|
46
|
+
initialResourceThreshold?: number;
|
|
47
|
+
longTaskThresholdMs: number | 0 | false;
|
|
48
|
+
nativeCrashReportEnabled: boolean;
|
|
49
|
+
nativeInteractionTracking: boolean;
|
|
50
|
+
nativeLongTaskThresholdMs: number;
|
|
51
|
+
nativeViewTracking: boolean;
|
|
52
|
+
resourceEventMapper: ResourceEventMapper | null;
|
|
53
|
+
resourceTraceSampleRate: number;
|
|
54
|
+
sessionSampleRate: number;
|
|
55
|
+
telemetrySampleRate: number;
|
|
56
|
+
trackBackgroundEvents: boolean;
|
|
57
|
+
trackFrustrations: boolean;
|
|
58
|
+
trackMemoryWarnings: boolean;
|
|
59
|
+
trackNonFatalAnrs?: boolean;
|
|
60
|
+
trackWatchdogTerminations: boolean;
|
|
61
|
+
useAccessibilityLabel: boolean;
|
|
62
|
+
vitalsUpdateFrequency: VitalsUpdateFrequency;
|
|
63
|
+
constructor(applicationId: string, trackInteractions?: boolean, trackResources?: boolean, trackErrors?: boolean, options?: RumConfigurationOptions);
|
|
64
|
+
}
|
|
65
|
+
export { DEFAULTS as RUM_DEFAULTS };
|
|
66
|
+
//# sourceMappingURL=RumConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RumConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/config/features/RumConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,O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