@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 @@
|
|
|
1
|
+
{"version":3,"names":["DEFAULTS","bundleLogsWithRum","bundleLogsWithTraces","customEndpoint","undefined","logEventMapper","LogsConfiguration","constructor","options","Object","assign","LOGS_DEFAULTS"],"sourceRoot":"../../../../src","sources":["config/features/LogsConfiguration.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAQA,MAAMA,QAAQ,GAAG;EACbC,iBAAiB,EAAE,IAAI;EACvBC,oBAAoB,EAAE,IAAI;EAC1BC,cAAc,EAAEC,SAAS;EACzBC,cAAc,EAAE;AACpB,CAAC;AAED,OAAO,MAAMC,iBAAiB,CAAkC;EAC5D;EACOL,iBAAiB,GAAYD,QAAQ,CAACC,iBAAiB;;EAE9D;EACOC,oBAAoB,GAAYF,QAAQ,CAACE,oBAAoB;;EAEpE;EACOC,cAAc,GAAYH,QAAQ,CAACG,cAAc;;EAExD;EACOE,cAAc,GAA0BL,QAAQ,CAACK,cAAc;EAEtEE,WAAWA,CAACC,OAAiC,GAAG,CAAC,CAAC,EAAE;IAChDC,MAAM,CAACC,MAAM,CAAC,IAAI,EAAEF,OAAO,CAAC;EAChC;AACJ;AAEA,SAASR,QAAQ,IAAIW,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["config/features/LogsConfiguration.type.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["config/features/LogsConfigurationNative.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
3
|
+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
|
+
* Copyright 2016-Present Datadog, Inc.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { VitalsUpdateFrequency } from '../types';
|
|
8
|
+
const DEFAULTS = {
|
|
9
|
+
actionEventMapper: null,
|
|
10
|
+
actionNameAttribute: undefined,
|
|
11
|
+
appHangThreshold: undefined,
|
|
12
|
+
customEndpoint: undefined,
|
|
13
|
+
errorEventMapper: null,
|
|
14
|
+
getFirstPartyHosts: () => [],
|
|
15
|
+
initialResourceThreshold: undefined,
|
|
16
|
+
longTaskThresholdMs: 0,
|
|
17
|
+
nativeCrashReportEnabled: false,
|
|
18
|
+
nativeInteractionTracking: false,
|
|
19
|
+
nativeLongTaskThresholdMs: 200,
|
|
20
|
+
nativeViewTracking: false,
|
|
21
|
+
resourceEventMapper: null,
|
|
22
|
+
resourceTraceSampleRate: 100.0,
|
|
23
|
+
sessionSampleRate: 100.0,
|
|
24
|
+
telemetrySampleRate: 20.0,
|
|
25
|
+
trackBackgroundEvents: false,
|
|
26
|
+
trackErrors: false,
|
|
27
|
+
trackFrustrations: true,
|
|
28
|
+
trackInteractions: false,
|
|
29
|
+
trackMemoryWarnings: true,
|
|
30
|
+
trackNonFatalAnrs: undefined,
|
|
31
|
+
trackResources: false,
|
|
32
|
+
trackWatchdogTerminations: false,
|
|
33
|
+
useAccessibilityLabel: true,
|
|
34
|
+
vitalsUpdateFrequency: VitalsUpdateFrequency.AVERAGE
|
|
35
|
+
};
|
|
36
|
+
export class RumConfiguration {
|
|
37
|
+
// Custom Action Event Mapper
|
|
38
|
+
actionEventMapper = DEFAULTS.actionEventMapper;
|
|
39
|
+
|
|
40
|
+
// Custom Action Name Attribute for interaction tracking
|
|
41
|
+
actionNameAttribute = DEFAULTS.actionNameAttribute;
|
|
42
|
+
|
|
43
|
+
// Custom App Hang Threshold
|
|
44
|
+
appHangThreshold = DEFAULTS.appHangThreshold;
|
|
45
|
+
|
|
46
|
+
// Custom Endpoint URL
|
|
47
|
+
customEndpoint = DEFAULTS.customEndpoint;
|
|
48
|
+
|
|
49
|
+
// Custom Error Event Mapper
|
|
50
|
+
errorEventMapper = DEFAULTS.errorEventMapper;
|
|
51
|
+
|
|
52
|
+
// List of First Party Hosts
|
|
53
|
+
firstPartyHosts = DEFAULTS.getFirstPartyHosts();
|
|
54
|
+
|
|
55
|
+
// Initial Resource Threshold
|
|
56
|
+
initialResourceThreshold = DEFAULTS.initialResourceThreshold;
|
|
57
|
+
|
|
58
|
+
// Long Task Threshold in milliseconds
|
|
59
|
+
longTaskThresholdMs = DEFAULTS.longTaskThresholdMs;
|
|
60
|
+
|
|
61
|
+
// Native Crash Report enabled
|
|
62
|
+
nativeCrashReportEnabled = DEFAULTS.nativeCrashReportEnabled;
|
|
63
|
+
|
|
64
|
+
// Native Interaction Tracking enabled
|
|
65
|
+
nativeInteractionTracking = DEFAULTS.nativeInteractionTracking;
|
|
66
|
+
|
|
67
|
+
// Native Long Task Threshold in milliseconds
|
|
68
|
+
nativeLongTaskThresholdMs = DEFAULTS.nativeLongTaskThresholdMs;
|
|
69
|
+
|
|
70
|
+
// Native View Tracking enabled
|
|
71
|
+
nativeViewTracking = DEFAULTS.nativeViewTracking;
|
|
72
|
+
|
|
73
|
+
// Custom Resource Event Mapper
|
|
74
|
+
resourceEventMapper = DEFAULTS.resourceEventMapper;
|
|
75
|
+
|
|
76
|
+
// Resource Trace Sample Rate for trackResources
|
|
77
|
+
resourceTraceSampleRate = DEFAULTS.resourceTraceSampleRate;
|
|
78
|
+
|
|
79
|
+
// Session Sample Rate for RUM
|
|
80
|
+
sessionSampleRate = DEFAULTS.sessionSampleRate;
|
|
81
|
+
|
|
82
|
+
// Telemetry Sample Rate
|
|
83
|
+
telemetrySampleRate = DEFAULTS.telemetrySampleRate;
|
|
84
|
+
|
|
85
|
+
// Track Background Events Enabled
|
|
86
|
+
trackBackgroundEvents = DEFAULTS.trackBackgroundEvents;
|
|
87
|
+
|
|
88
|
+
// Track Frustrations Enabled
|
|
89
|
+
trackFrustrations = DEFAULTS.trackFrustrations;
|
|
90
|
+
|
|
91
|
+
// Track Memory Warnings Enabled
|
|
92
|
+
trackMemoryWarnings = DEFAULTS.trackMemoryWarnings;
|
|
93
|
+
|
|
94
|
+
// Track non-fatal ANRs enabled
|
|
95
|
+
trackNonFatalAnrs = DEFAULTS.trackNonFatalAnrs;
|
|
96
|
+
|
|
97
|
+
// Track Watchdog Terminations enabled
|
|
98
|
+
trackWatchdogTerminations = DEFAULTS.trackWatchdogTerminations;
|
|
99
|
+
|
|
100
|
+
// Use Accessibility Label enabled for interaction tracking
|
|
101
|
+
useAccessibilityLabel = DEFAULTS.useAccessibilityLabel;
|
|
102
|
+
|
|
103
|
+
// Custom Vitals Update Frequency
|
|
104
|
+
vitalsUpdateFrequency = DEFAULTS.vitalsUpdateFrequency;
|
|
105
|
+
constructor(applicationId, trackInteractions = DEFAULTS.trackInteractions, trackResources = DEFAULTS.trackResources, trackErrors = DEFAULTS.trackErrors, options = {}) {
|
|
106
|
+
this.applicationId = applicationId;
|
|
107
|
+
this.trackInteractions = trackInteractions;
|
|
108
|
+
this.trackResources = trackResources;
|
|
109
|
+
this.trackErrors = trackErrors;
|
|
110
|
+
Object.assign(this, options);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
export { DEFAULTS as RUM_DEFAULTS };
|
|
114
|
+
//# sourceMappingURL=RumConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VitalsUpdateFrequency","DEFAULTS","actionEventMapper","actionNameAttribute","undefined","appHangThreshold","customEndpoint","errorEventMapper","getFirstPartyHosts","initialResourceThreshold","longTaskThresholdMs","nativeCrashReportEnabled","nativeInteractionTracking","nativeLongTaskThresholdMs","nativeViewTracking","resourceEventMapper","resourceTraceSampleRate","sessionSampleRate","telemetrySampleRate","trackBackgroundEvents","trackErrors","trackFrustrations","trackInteractions","trackMemoryWarnings","trackNonFatalAnrs","trackResources","trackWatchdogTerminations","useAccessibilityLabel","vitalsUpdateFrequency","AVERAGE","RumConfiguration","firstPartyHosts","constructor","applicationId","options","Object","assign","RUM_DEFAULTS"],"sourceRoot":"../../../../src","sources":["config/features/RumConfiguration.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAKA,SAASA,qBAAqB,QAAQ,UAAU;AAOhD,MAAMC,QAAQ,GAAG;EACbC,iBAAiB,EAAE,IAAI;EACvBC,mBAAmB,EAAEC,SAAS;EAC9BC,gBAAgB,EAAED,SAAS;EAC3BE,cAAc,EAAEF,SAAS;EACzBG,gBAAgB,EAAE,IAAI;EACtBC,kBAAkB,EAAEA,CAAA,KAAM,EAAE;EAC5BC,wBAAwB,EAAEL,SAAS;EACnCM,mBAAmB,EAAE,CAAC;EACtBC,wBAAwB,EAAE,KAAK;EAC/BC,yBAAyB,EAAE,KAAK;EAChCC,yBAAyB,EAAE,GAAG;EAC9BC,kBAAkB,EAAE,KAAK;EACzBC,mBAAmB,EAAE,IAAI;EACzBC,uBAAuB,EAAE,KAAK;EAC9BC,iBAAiB,EAAE,KAAK;EACxBC,mBAAmB,EAAE,IAAI;EACzBC,qBAAqB,EAAE,KAAK;EAC5BC,WAAW,EAAE,KAAK;EAClBC,iBAAiB,EAAE,IAAI;EACvBC,iBAAiB,E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ACsB,mBAAmB;;EAElE;EACOC,iBAAiB,GAAavB,QAAQ,CAACuB,iBAAiB;;EAE/D;EACOE,yBAAyB,GAC5BzB,QAAQ,CAACyB,yBAAyB;;EAEtC;EACOC,qBAAqB,GAAY1B,QAAQ,CAAC0B,qBAAqB;;EAEtE;EACOC,qBAAqB,GACxB3B,QAAQ,CAAC2B,qBAAqB;EAElCI,WAAWA,CACEC,aAAqB,EACrBX,iBAA0B,GAAGrB,QAAQ,CAACqB,iBAAiB,EACvDG,cAAuB,GAAGxB,QAAQ,CAACwB,cAAc,EACjDL,WAAoB,GAAGnB,QAAQ,CAACmB,WAAW,EACpDc,OAAgC,GAAG,CAAC,CAAC,EACvC;IAAA,KALWD,aAAqB,GAArBA,aAAqB;IAAA,KACrBX,iBAA0B,GAA1BA,iBAA0B;IAAA,KAC1BG,cAAuB,GAAvBA,cAAuB;IAAA,KACvBL,WAAoB,GAApBA,WAAoB;IAG7Be,MAAM,CAACC,MAAM,CAAC,IAAI,EAAEF,OAAO,CAAC;EAChC;AACJ;AAEA,SAASjC,QAAQ,IAAIoC,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["config/features/RumConfiguration.type.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["config/features/RumConfigurationNative.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
3
|
+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
|
+
* Copyright 2016-Present Datadog, Inc.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
const DEFAULTS = {
|
|
8
|
+
customEndpoint: undefined
|
|
9
|
+
};
|
|
10
|
+
export class TraceConfiguration {
|
|
11
|
+
// Custom Endpoint URL
|
|
12
|
+
customEndpoint = DEFAULTS.customEndpoint;
|
|
13
|
+
constructor(options = {}) {
|
|
14
|
+
Object.assign(this, options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export { DEFAULTS as TRACE_DEFAULTS };
|
|
18
|
+
//# sourceMappingURL=TraceConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DEFAULTS","customEndpoint","undefined","TraceConfiguration","constructor","options","Object","assign","TRACE_DEFAULTS"],"sourceRoot":"../../../../src","sources":["config/features/TraceConfiguration.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAMA,MAAMA,QAAQ,GAAG;EACbC,cAAc,EAAEC;AACpB,CAAC;AAED,OAAO,MAAMC,kBAAkB,CAAmC;EAC9D;EACOF,cAAc,GAAYD,QAAQ,CAACC,cAAc;EAExDG,WAAWA,CAACC,OAAkC,GAAG,CAAC,CAAC,EAAE;IACjDC,MAAM,CAACC,MAAM,CAAC,IAAI,EAAEF,OAAO,CAAC;EAChC;AACJ;AAEA,SAASL,QAAQ,IAAIQ,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["config/features/TraceConfiguration.type.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["config/features/TraceConfigurationNative.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
3
|
+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
|
+
* Copyright 2016-Present Datadog, Inc.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Enum specifying the preferred level for processing batches of data.
|
|
9
|
+
*/
|
|
10
|
+
export let BatchProcessingLevel = /*#__PURE__*/function (BatchProcessingLevel) {
|
|
11
|
+
/**
|
|
12
|
+
* Only 1 batch will be sent in a single upload cycle.
|
|
13
|
+
*/
|
|
14
|
+
BatchProcessingLevel["LOW"] = "LOW";
|
|
15
|
+
/**
|
|
16
|
+
* 10 batches will be sent in a single upload cycle
|
|
17
|
+
*/
|
|
18
|
+
BatchProcessingLevel["MEDIUM"] = "MEDIUM";
|
|
19
|
+
/**
|
|
20
|
+
* 100 batches will be sent in a single upload cycle.
|
|
21
|
+
*/
|
|
22
|
+
BatchProcessingLevel["HIGH"] = "HIGH";
|
|
23
|
+
return BatchProcessingLevel;
|
|
24
|
+
}({});
|
|
25
|
+
//# sourceMappingURL=BatchProcessingLevel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BatchProcessingLevel"],"sourceRoot":"../../../../src","sources":["config/types/BatchProcessingLevel.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAYA,oBAAoB,0BAApBA,oBAAoB;EAC5B;AACJ;AACA;EAHYA,oBAAoB;EAK5B;AACJ;AACA;EAPYA,oBAAoB;EAS5B;AACJ;AACA;EAXYA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
3
|
+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
|
+
* Copyright 2016-Present Datadog, Inc.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Enum specifying the Datadog SDK policy when batching data together before uploading it to Datadog servers.
|
|
9
|
+
* Smaller batches mean smaller but more network requests, whereas larger batches mean fewer but larger network requests.
|
|
10
|
+
*/
|
|
11
|
+
export let BatchSize = /*#__PURE__*/function (BatchSize) {
|
|
12
|
+
/**
|
|
13
|
+
* Upload less frequent, larger batches of data
|
|
14
|
+
*/
|
|
15
|
+
BatchSize["LARGE"] = "LARGE";
|
|
16
|
+
/**
|
|
17
|
+
* Use default size for batches of data
|
|
18
|
+
*/
|
|
19
|
+
BatchSize["MEDIUM"] = "MEDIUM";
|
|
20
|
+
/**
|
|
21
|
+
* Upload more frequent, smaller batches of data
|
|
22
|
+
*/
|
|
23
|
+
BatchSize["SMALL"] = "SMALL";
|
|
24
|
+
return BatchSize;
|
|
25
|
+
}({});
|
|
26
|
+
//# sourceMappingURL=BatchSize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BatchSize"],"sourceRoot":"../../../../src","sources":["config/types/BatchSize.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAYA,SAAS,0BAATA,SAAS;EACjB;AACJ;AACA;EAHYA,SAAS;EAKjB;AACJ;AACA;EAPYA,SAAS;EASjB;AACJ;AACA;EAXYA,SAAS;EAAA,OAATA,SAAS;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
3
|
+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
|
+
* Copyright 2016-Present Datadog, Inc.
|
|
5
|
+
*/
|
|
6
|
+
export let InitializationMode = /*#__PURE__*/function (InitializationMode) {
|
|
7
|
+
InitializationMode["SYNC"] = "SYNC";
|
|
8
|
+
InitializationMode["ASYNC"] = "ASYNC";
|
|
9
|
+
return InitializationMode;
|
|
10
|
+
}({});
|
|
11
|
+
//# sourceMappingURL=InitializationMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["InitializationMode"],"sourceRoot":"../../../../src","sources":["config/types/InitializationMode.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,WAAYA,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["config/types/InitializationModeForTelemetry.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
3
|
+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
|
+
* Copyright 2016-Present Datadog, Inc.
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
/**
|
|
2
8
|
* Proxy server configuration.
|
|
3
9
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ProxyConfiguration","constructor","type","address","port","username","password","ProxyType","SOCKS","console","warn"],"sourceRoot":"../../../../src","sources":["config/types/ProxyConfiguration.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;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;AAAC,IAEIC,SAAS,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA,EAATA,SAAS;AAMd,SAASP,kBAAkB,EAAEO,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SdkVerbosity"],"sourceRoot":"../../../../src","sources":["config/types/SdkVerbosity.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAYA,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TrackingConsent"],"sourceRoot":"../../../../src","sources":["config/types/TrackingConsent.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAYA,eAAe,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
3
|
+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
|
+
* Copyright 2016-Present Datadog, Inc.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Enum specifying preferred frequency for uploading batches of data.
|
|
9
|
+
*/
|
|
10
|
+
export let UploadFrequency = /*#__PURE__*/function (UploadFrequency) {
|
|
11
|
+
/**
|
|
12
|
+
* Upload data every 1000ms.
|
|
13
|
+
*/
|
|
14
|
+
UploadFrequency["FREQUENT"] = "FREQUENT";
|
|
15
|
+
/**
|
|
16
|
+
* Upload data every 5000ms.
|
|
17
|
+
*/
|
|
18
|
+
UploadFrequency["AVERAGE"] = "AVERAGE";
|
|
19
|
+
/**
|
|
20
|
+
* Upload data every 10000ms.
|
|
21
|
+
*/
|
|
22
|
+
UploadFrequency["RARE"] = "RARE";
|
|
23
|
+
return UploadFrequency;
|
|
24
|
+
}({});
|
|
25
|
+
//# sourceMappingURL=UploadFrequency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["UploadFrequency"],"sourceRoot":"../../../../src","sources":["config/types/UploadFrequency.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAYA,eAAe,0BAAfA,eAAe;EACvB;AACJ;AACA;EAHYA,eAAe;EAKvB;AACJ;AACA;EAPYA,eAAe;EASvB;AACJ;AACA;EAXYA,eAAe;EAAA,OAAfA,eAAe;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
3
|
+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
|
+
* Copyright 2016-Present Datadog, Inc.
|
|
5
|
+
*/
|
|
6
|
+
export let VitalsUpdateFrequency = /*#__PURE__*/function (VitalsUpdateFrequency) {
|
|
7
|
+
VitalsUpdateFrequency["FREQUENT"] = "FREQUENT";
|
|
8
|
+
VitalsUpdateFrequency["AVERAGE"] = "AVERAGE";
|
|
9
|
+
VitalsUpdateFrequency["RARE"] = "RARE";
|
|
10
|
+
VitalsUpdateFrequency["NEVER"] = "NEVER";
|
|
11
|
+
return VitalsUpdateFrequency;
|
|
12
|
+
}({});
|
|
13
|
+
//# sourceMappingURL=VitalsUpdateFrequency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VitalsUpdateFrequency"],"sourceRoot":"../../../../src","sources":["config/types/VitalsUpdateFrequency.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,WAAYA,qBAAqB,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
3
|
+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
|
+
* Copyright 2016-Present Datadog, Inc.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export { BatchProcessingLevel } from './BatchProcessingLevel';
|
|
8
|
+
export { BatchSize } from './BatchSize';
|
|
9
|
+
export { ProxyConfiguration, ProxyType } from './ProxyConfiguration';
|
|
10
|
+
export { SdkVerbosity } from './SdkVerbosity';
|
|
11
|
+
export { TrackingConsent } from './TrackingConsent';
|
|
12
|
+
export { UploadFrequency } from './UploadFrequency';
|
|
13
|
+
export { VitalsUpdateFrequency } from './VitalsUpdateFrequency';
|
|
14
|
+
export { InitializationMode } from './InitializationMode';
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BatchProcessingLevel","BatchSize","ProxyConfiguration","ProxyType","SdkVerbosity","TrackingConsent","UploadFrequency","VitalsUpdateFrequency","InitializationMode"],"sourceRoot":"../../../../src","sources":["config/types/index.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,kBAAkB,EAAEC,SAAS,QAAQ,sBAAsB;AACpE,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,kBAAkB,QAAQ,sBAAsB","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -3,12 +3,18 @@
|
|
|
3
3
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
4
|
* Copyright 2016-Present Datadog, Inc.
|
|
5
5
|
*/
|
|
6
|
-
import { BatchProcessingLevel, BatchSize, DatadogProviderConfiguration, DdSdkReactNativeConfiguration, InitializationMode, UploadFrequency, VitalsUpdateFrequency } from './DdSdkReactNativeConfiguration';
|
|
7
6
|
import { DdSdkReactNative } from './DdSdkReactNative';
|
|
8
7
|
import { InternalLog } from './InternalLog';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { DatadogProviderConfiguration } from './config/DatadogProviderConfiguration';
|
|
9
|
+
import { FileBasedConfiguration } from './config/FileBasedConfiguration';
|
|
10
|
+
import { CoreConfiguration } from './config/features/CoreConfiguration';
|
|
11
|
+
import { LogsConfiguration } from './config/features/LogsConfiguration';
|
|
12
|
+
import { RumConfiguration } from './config/features/RumConfiguration';
|
|
13
|
+
import { TraceConfiguration } from './config/features/TraceConfiguration';
|
|
14
|
+
import { ProxyConfiguration, ProxyType } from './config/types/ProxyConfiguration';
|
|
15
|
+
import { SdkVerbosity } from './config/types/SdkVerbosity';
|
|
16
|
+
import { TrackingConsent } from './config/types/TrackingConsent';
|
|
17
|
+
import { BatchProcessingLevel, BatchSize, InitializationMode, UploadFrequency, VitalsUpdateFrequency } from './config/types';
|
|
12
18
|
import { DdLogs } from './logs/DdLogs';
|
|
13
19
|
import { DdRum } from './rum/DdRum';
|
|
14
20
|
import { DdBabelInteractionTracking } from './rum/instrumentation/interactionTracking/DdBabelInteractionTracking';
|
|
@@ -17,12 +23,12 @@ import { DatadogTracingContext } from './rum/instrumentation/resourceTracking/di
|
|
|
17
23
|
import { DatadogTracingIdentifier } from './rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier';
|
|
18
24
|
import { TracingIdFormat, TracingIdType } from './rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier';
|
|
19
25
|
import { DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER } from './rum/instrumentation/resourceTracking/graphql/graphqlHeaders';
|
|
20
|
-
import {
|
|
26
|
+
import { PropagatorType, RumActionType } from './rum/types';
|
|
21
27
|
import { DatadogProvider } from './sdk/DatadogProvider/DatadogProvider';
|
|
22
28
|
import { DdSdk } from './sdk/DdSdk';
|
|
23
|
-
import { FileBasedConfiguration } from './sdk/FileBasedConfiguration/FileBasedConfiguration';
|
|
24
29
|
import { DdTrace } from './trace/DdTrace';
|
|
30
|
+
import { ErrorSource, FeatureOperationFailure } from './types';
|
|
25
31
|
import { DefaultTimeProvider } from './utils/time-provider/DefaultTimeProvider';
|
|
26
32
|
import { TimeProvider } from './utils/time-provider/TimeProvider';
|
|
27
|
-
export { DatadogProvider, DatadogProviderConfiguration, FileBasedConfiguration, InitializationMode, DdLogs, DdTrace, DdRum, RumActionType, ErrorSource,
|
|
33
|
+
export { DatadogProvider, DatadogProviderConfiguration, FileBasedConfiguration, InitializationMode, DdLogs, DdTrace, DdRum, RumActionType, ErrorSource, FeatureOperationFailure, CoreConfiguration, RumConfiguration, LogsConfiguration, TraceConfiguration, DdSdkReactNative, DdSdk, InternalLog, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity, VitalsUpdateFrequency, PropagatorType, UploadFrequency, BatchSize, BatchProcessingLevel, TimeProvider, DefaultTimeProvider, DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER, TracingIdType, TracingIdFormat, DatadogTracingIdentifier, DatadogTracingContext, DdBabelInteractionTracking, __ddExtractText };
|
|
28
34
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["DdSdkReactNative","InternalLog","DatadogProviderConfiguration","FileBasedConfiguration","CoreConfiguration","LogsConfiguration","RumConfiguration","TraceConfiguration","ProxyConfiguration","ProxyType","SdkVerbosity","TrackingConsent","BatchProcessingLevel","BatchSize","InitializationMode","UploadFrequency","VitalsUpdateFrequency","DdLogs","DdRum","DdBabelInteractionTracking","__ddExtractText","DatadogTracingContext","DatadogTracingIdentifier","TracingIdFormat","TracingIdType","DATADOG_GRAPH_QL_OPERATION_NAME_HEADER","DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER","DATADOG_GRAPH_QL_VARIABLES_HEADER","PropagatorType","RumActionType","DatadogProvider","DdSdk","DdTrace","ErrorSource","FeatureOperationFailure","DefaultTimeProvider","TimeProvider"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,SAASA,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,4BAA4B,QAAQ,uCAAuC;AACpF,SAASC,sBAAsB,QAAQ,iCAAiC;AAIxE,SAASC,iBAAiB,QAAQ,qCAAqC;AAEvE,SAASC,iBAAiB,QAAQ,qCAAqC;AAEvE,SAASC,gBAAgB,QAAQ,oCAAoC;AAErE,SAASC,kBAAkB,QAAQ,sCAAsC;AACzE,SACIC,kBAAkB,EAClBC,SAAS,QACN,mCAAmC;AAC1C,SAASC,YAAY,QAAQ,6BAA6B;AAC1D,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SACIC,oBAAoB,EACpBC,SAAS,EACTC,kBAAkB,EAClBC,eAAe,EACfC,qBAAqB,QAClB,gBAAgB;AACvB,SAASC,MAAM,QAAQ,eAAe;AACtC,SAASC,KAAK,QAAQ,aAAa;AACnC,SAASC,0BAA0B,QAAQ,sEAAsE;AACjH,SAASC,eAAe,QAAQ,wDAAwD;AACxF,SAASC,qBAAqB,QAAQ,iFAAiF;AACvH,SAASC,wBAAwB,QAAQ,oFAAoF;AAC7H,SACIC,eAAe,EACfC,aAAa,QACV,6EAA6E;AACpF,SACIC,sCAAsC,EACtCC,sCAAsC,EACtCC,iCAAiC,QAC9B,+DAA+D;AAEtE,SAASC,cAAc,EAAEC,aAAa,QAAQ,aAAa;AAC3D,SAASC,eAAe,QAAQ,uCAAuC;AACvE,SAASC,KAAK,QAAQ,aAAa;AACnC,SAASC,OAAO,QAAQ,iBAAiB;AACzC,SAASC,WAAW,EAAEC,uBAAuB,QAAQ,SAAS;AAC9D,SAASC,mBAAmB,QAAQ,2CAA2C;AAE/E,SAASC,YAAY,QAAQ,oCAAoC;AAEjE,SACIN,eAAe,EACf5B,4BAA4B,EAC5BC,sBAAsB,EACtBW,kBAAkB,EAClBG,MAAM,EACNe,OAAO,EACPd,KAAK,EACLW,aAAa,EACbI,WAAW,EACXC,uBAAuB,EACvB9B,iBAAiB,EACjBE,gBAAgB,EAChBD,iBAAiB,EACjBE,kBAAkB,EAClBP,gBAAgB,EAChB+B,KAAK,EACL9B,WAAW,EACXO,kBAAkB,EAClBC,SAAS,EACTE,eAAe,EACfD,YAAY,EACZM,qBAAqB,EACrBY,cAAc,EACdb,eAAe,EACfF,SAAS,EACTD,oBAAoB,EACpBwB,YAAY,EACZD,mBAAmB,EACnBT,sCAAsC,EACtCD,sCAAsC,EACtCE,iCAAiC,EACjCH,aAAa,EACbD,eAAe,EACfD,wBAAwB,EACxBD,qBAAqB,EACrBF,0BAA0B,EAC1BC,eAAe","ignoreList":[]}
|
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
* Copyright 2016-Present Datadog, Inc.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import { DdAttributes } from '../DdAttributes';
|
|
7
8
|
import { DATADOG_MESSAGE_PREFIX, InternalLog } from '../InternalLog';
|
|
8
|
-
import { SdkVerbosity } from '../SdkVerbosity';
|
|
9
|
+
import { SdkVerbosity } from '../config/types/SdkVerbosity';
|
|
9
10
|
import { debugId } from '../metro/debugIdResolver';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
11
|
+
import { encodeAttributes } from '../sdk/AttributesEncoding/attributesEncoding';
|
|
12
|
+
import { getGlobalInstance } from '../utils/singletonUtils';
|
|
12
13
|
import { generateEventMapper } from './eventMapper';
|
|
14
|
+
const LOGS_MODULE = 'com.datadog.reactnative.logs';
|
|
13
15
|
const SDK_NOT_INITIALIZED_MESSAGE = 'DD_INTERNAL_LOG_SENT_BEFORE_SDK_INIT';
|
|
14
16
|
const generateEmptyPromise = () => new Promise(resolve => resolve());
|
|
15
17
|
|
|
@@ -18,7 +20,7 @@ const generateEmptyPromise = () => new Promise(resolve => resolve());
|
|
|
18
20
|
* then the log contains an error.
|
|
19
21
|
*/
|
|
20
22
|
const isLogWithError = args => {
|
|
21
|
-
return typeof args[1] === 'string' || typeof args[2] === 'string' || typeof args[3] === 'string' ||
|
|
23
|
+
return typeof args[1] === 'string' || typeof args[2] === 'string' || typeof args[3] === 'string' || args[4] !== undefined && args[4] !== null || typeof args[5] === 'string';
|
|
22
24
|
};
|
|
23
25
|
class DdLogsWrapper {
|
|
24
26
|
// eslint-disable-next-line global-require, @typescript-eslint/no-var-requires
|
|
@@ -74,10 +76,9 @@ class DdLogsWrapper {
|
|
|
74
76
|
this.printLogDroppedByMapper(message, status);
|
|
75
77
|
return generateEmptyPromise();
|
|
76
78
|
}
|
|
77
|
-
const validatedContext = validateContext(event.context);
|
|
78
79
|
this.printLogTracked(event.message, status);
|
|
79
80
|
try {
|
|
80
|
-
return await this.nativeLogs[status](event.message,
|
|
81
|
+
return await this.nativeLogs[status](event.message, encodeAttributes(event.context));
|
|
81
82
|
} catch (error) {
|
|
82
83
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
83
84
|
// @ts-ignore
|
|
@@ -106,8 +107,11 @@ class DdLogsWrapper {
|
|
|
106
107
|
}
|
|
107
108
|
this.printLogTracked(mappedEvent.message, status);
|
|
108
109
|
try {
|
|
109
|
-
const
|
|
110
|
-
updatedContext
|
|
110
|
+
const encodedContext = encodeAttributes(mappedEvent.context);
|
|
111
|
+
const updatedContext = {
|
|
112
|
+
...encodedContext,
|
|
113
|
+
[DdAttributes.errorSourceType]: 'react-native'
|
|
114
|
+
};
|
|
111
115
|
if (fingerprint && fingerprint !== '') {
|
|
112
116
|
updatedContext[DdAttributes.errorFingerprint] = fingerprint;
|
|
113
117
|
}
|
|
@@ -133,5 +137,5 @@ class DdLogsWrapper {
|
|
|
133
137
|
this.logEventMapper = generateEventMapper(undefined);
|
|
134
138
|
}
|
|
135
139
|
}
|
|
136
|
-
export const DdLogs = new DdLogsWrapper();
|
|
140
|
+
export const DdLogs = getGlobalInstance(LOGS_MODULE, () => new DdLogsWrapper());
|
|
137
141
|
//# sourceMappingURL=DdLogs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DATADOG_MESSAGE_PREFIX","InternalLog","SdkVerbosity","debugId","
|
|
1
|
+
{"version":3,"names":["DdAttributes","DATADOG_MESSAGE_PREFIX","InternalLog","SdkVerbosity","debugId","encodeAttributes","getGlobalInstance","generateEventMapper","LOGS_MODULE","SDK_NOT_INITIALIZED_MESSAGE","generateEmptyPromise","Promise","resolve","isLogWithError","args","undefined","DdLogsWrapper","nativeLogs","require","default","logEventMapper","debug","logWithError","log","info","warn","error","printLogDroppedSdkNotInitialized","message","status","__DEV__","console","printLogDroppedByMapper","DEBUG","printLogTracked","context","event","applyEventMapper","errorKind","errorMessage","stacktrace","fingerprint","source","rawLogEvent","mappedEvent","encodedContext","updatedContext","errorSourceType","errorFingerprint","_debugId","registerLogEventMapper","unregisterLogEventMapper","DdLogs"],"sourceRoot":"../../../src","sources":["logs/DdLogs.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,YAAY,QAAQ,iBAAiB;AAC9C,SAASC,sBAAsB,EAAEC,WAAW,QAAQ,gBAAgB;AACpE,SAASC,YAAY,QAAQ,8BAA8B;AAC3D,SAASC,OAAO,QAAQ,0BAA0B;AAElD,SAASC,gBAAgB,QAAQ,8CAA8C;AAE/E,SAASC,iBAAiB,QAAQ,yBAAyB;AAE3D,SAASC,mBAAmB,Q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AG6C,QAAQ;MACnD;MAEA,OAAO,MAAM,IAAI,CAAChC,UAAU,CAAC,GAAGY,MAAM,WAAW,CAAC,CAC9Ce,WAAW,CAAChB,OAAO,EAClBgB,WAAW,CAAwBN,SAAS,EAC5CM,WAAW,CAAwBL,YAAY,EAC/CK,WAAW,CAAwBJ,UAAU,EAC9CM,cACJ,CAAC;IACL,CAAC,CAAC,OAAOpB,KAAK,EAAE;MACZ;MACA;MACA,IAAIA,KAAK,CAACE,OAAO,KAAKnB,2BAA2B,EAAE;QAC/C,IAAI,CAACkB,gCAAgC,CAACC,OAAO,EAAEC,MAAM,CAAC;QACtD,OAAOnB,oBAAoB,CAAC,CAAC;MACjC;MAEA,MAAMgB,KAAK;IACf;EACJ,CAAC;EAEDwB,sBAAsBA,CAAC9B,cAA8B,EAAE;IACnD,IAAI,CAACA,cAAc,GAAGb,mBAAmB,CAACa,cAAc,CAAC;EAC7D;EAEA+B,wBAAwBA,CAAA,EAAG;IACvB,IAAI,CAAC/B,cAAc,GAAGb,mBAAmB,CAACQ,SAAS,CAAC;EACxD;AACJ;AAEA,OAAO,MAAMqC,MAAM,GAAG9C,iBAAiB,CAACE,WAAW,EAAE,MAAM,IAAIQ,aAAa,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -12,9 +12,12 @@ export const formatRawLogToNativeEvent = rawLog => {
|
|
|
12
12
|
return rawLog;
|
|
13
13
|
};
|
|
14
14
|
export const formatRawLogToLogEvent = (rawLog, additionalInformation) => {
|
|
15
|
+
const userInfo = additionalInformation?.userInfo;
|
|
15
16
|
return {
|
|
16
17
|
...rawLog,
|
|
17
|
-
userInfo
|
|
18
|
+
...(userInfo !== undefined ? {
|
|
19
|
+
userInfo
|
|
20
|
+
} : {}),
|
|
18
21
|
attributes: additionalInformation.attributes
|
|
19
22
|
};
|
|
20
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EventMapper","formatLogEventToNativeLog","logEvent","formatRawLogToNativeEvent","rawLog","formatRawLogToLogEvent","additionalInformation","userInfo","attributes","generateEventMapper","logEventMapper"],"sourceRoot":"../../../src","sources":["logs/eventMapper.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAGA,SAASA,WAAW,QAAQ,iCAAiC;
|
|
1
|
+
{"version":3,"names":["EventMapper","formatLogEventToNativeLog","logEvent","formatRawLogToNativeEvent","rawLog","formatRawLogToLogEvent","additionalInformation","userInfo","undefined","attributes","generateEventMapper","logEventMapper"],"sourceRoot":"../../../src","sources":["logs/eventMapper.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAGA,SAASA,WAAW,QAAQ,iCAAiC;AAW7D,OAAO,MAAMC,yBAAyB,GAClCC,QAAkB,IACe;EACjC,OAAOA,QAAQ;AACnB,CAAC;AAED,OAAO,MAAMC,yBAAyB,GAClCC,MAAgC,IACC;EACjC,OAAOA,MAAM;AACjB,CAAC;AAED,OAAO,MAAMC,sBAAsB,GAAGA,CAClCD,MAAgC,EAChCE,qBAGC,KACU;EACX,MAAMC,QAAQ,GAAGD,qBAAqB,EAAEC,QAAQ;EAEhD,OAAO;IACH,GAAGH,MAAM;IACT,IAAIG,QAAQ,KAAKC,SAAS,GAAG;MAAED;IAAS,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/CE,UAAU,EAAEH,qBAAqB,CAACG;EACtC,CAAC;AACL,CAAC;AAED,OAAO,MAAMC,mBAAmB,GAC5BC,cAA0C,IAE1C,IAAIX,WAAW,CACXW,cAAc,EACdN,sBAAsB,EACtBJ,yBAAyB,EACzBE,yBACJ,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DEBUG_ID_PLACEHOLDER","addDebugIdModule","checkIfDebugIdModuleExists","createDebugIdFromBundle","createDebugIdModule","getDebugIdFromBundleSource","injectDebugIdInCode","injectDebugIdInCodeAndSourceMap","getBaseJSBundleFunction","getBundleToStringFunction","convertSerializerOutput","getMetroBundleWithMap","getSortedModules","getSourceMapStringFunction","createDatadogMetroSerializer","customSerializer","serializer","createDefaultMetroSerializer","entryPoint","preModules","graph","options","transformOptions","hot","debugIdModule","datadogBundleCallback","createDatadogBundleCallback","preModulesWithDebugId","serializerOutput","code","map","debugId","Error","result","baseJSBundle","bundle","bundleToString","sourceMapString","processModuleFilter","shouldAddToIgnoreList","getSource","toString","setSource","pre","unstable_beforeAssetSerializationPlugin","premodules"],"sourceRoot":"../../../../src","sources":["metro/plugin/metroSerializer.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SACIA,oBAAoB,EACpBC,gBAAgB,EAChBC,0BAA0B,EAC1BC,uBAAuB,EACvBC,mBAAmB,EACnBC,0BAA0B,EAC1BC,mBAAmB,EACnBC,+BAA+B,QAC5B,iBAAiB;AAUxB,SACIC,uBAAuB,EACvBC,yBAAyB,EACzBC,uBAAuB,IAAIC,qBAAqB,EAChDC,gBAAgB,EAChBC,0BAA0B,QACvB,SAAS;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,4BAA4B,GACrCC,gBAAkC,IACT;EACzB,MAAMC,UAAU,GAAGD,gBAAgB,IAAIE,4BAA4B,CAAC,CAAC;EACrE,OAAO,OAAOC,UAAU,EAAEC,UAAU,EAAEC,KAAK,EAAEC,OAAO,KAAK;IACrD;IACA,
|
|
1
|
+
{"version":3,"names":["DEBUG_ID_PLACEHOLDER","addDebugIdModule","checkIfDebugIdModuleExists","createDebugIdFromBundle","createDebugIdModule","getDebugIdFromBundleSource","injectDebugIdInCode","injectDebugIdInCodeAndSourceMap","getBaseJSBundleFunction","getBundleToStringFunction","convertSerializerOutput","getMetroBundleWithMap","getSortedModules","getSourceMapStringFunction","createDatadogMetroSerializer","customSerializer","serializer","createDefaultMetroSerializer","entryPoint","preModules","graph","options","transformOptions","hot","debugIdModule","datadogBundleCallback","createDatadogBundleCallback","preModulesWithDebugId","serializerOutput","code","map","debugId","Error","result","baseJSBundle","bundle","bundleToString","sourceMapString","processModuleFilter","shouldAddToIgnoreList","getSource","toString","setSource","pre","unstable_beforeAssetSerializationPlugin","premodules"],"sourceRoot":"../../../../src","sources":["metro/plugin/metroSerializer.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SACIA,oBAAoB,EACpBC,gBAAgB,EAChBC,0BAA0B,EAC1BC,uBAAuB,EACvBC,mBAAmB,EACnBC,0BAA0B,EAC1BC,mBAAmB,EACnBC,+BAA+B,QAC5B,iBAAiB;AAUxB,SACIC,uBAAuB,EACvBC,yBAAyB,EACzBC,uBAAuB,IAAIC,qBAAqB,EAChDC,gBAAgB,EAChBC,0BAA0B,QACvB,SAAS;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,4BAA4B,GACrCC,gBAAkC,IACT;EACzB,MAAMC,UAAU,GAAGD,gBAAgB,IAAIE,4BAA4B,CAAC,CAAC;EACrE,OAAO,OAAOC,UAAU,EAAEC,UAAU,EAAEC,KAAK,EAAEC,OAAO,KAAK;IACrD;IACA,IAAKD,KAAK,CAACE,gBAAgB,CAASC,GAAG,EAAE;MACrC,OAAOP,UAAU,CAACE,UAAU,EAAEC,UAAU,EAAEC,KAAK,EAAEC,OAAO,CAAC;IAC7D;;IAEA;IACA,IAAInB,0BAA0B,CAACiB,UAAU,CAAC,EAAE;MACxC,OAAOH,UAAU,CAACE,UAAU,EAAEC,UAAU,EAAEC,KAAK,EAAEC,OAAO,CAAC;IAC7D;;IAEA;IACA,MAAMG,aAAa,GAAGpB,mBAAmB,CAACJ,oBAAoB,CAAC;;IAE/D;IACAqB,OAAO,CAACI,qBAAqB,GAAGC,2BAA2B,CACvDF,aACJ,CAAC;;IAED;IACA,MAAMG,qBAAqB,GAAG1B,gBAAgB,CAC1CkB,UAAU,EACVK,aACJ,CAAC;;IAED;IACA,MAAMI,gBAAgB,GAAGZ,UAAU,CAC/BE,UAAU,EACVS,qBAAqB,EACrBP,KAAK,EACLC,OACJ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