@datadog/mobile-react-native 2.14.1 → 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/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/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 +15 -25
- 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/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 +15 -24
- 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/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 +20 -32
- 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
package/lib/commonjs/index.js
CHANGED
|
@@ -6,13 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "BatchProcessingLevel", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _types.BatchProcessingLevel;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "BatchSize", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _types.BatchSize;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "CoreConfiguration", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _CoreConfiguration.CoreConfiguration;
|
|
16
22
|
}
|
|
17
23
|
});
|
|
18
24
|
Object.defineProperty(exports, "DATADOG_GRAPH_QL_OPERATION_NAME_HEADER", {
|
|
@@ -42,7 +48,7 @@ Object.defineProperty(exports, "DatadogProvider", {
|
|
|
42
48
|
Object.defineProperty(exports, "DatadogProviderConfiguration", {
|
|
43
49
|
enumerable: true,
|
|
44
50
|
get: function () {
|
|
45
|
-
return
|
|
51
|
+
return _DatadogProviderConfiguration.DatadogProviderConfiguration;
|
|
46
52
|
}
|
|
47
53
|
});
|
|
48
54
|
Object.defineProperty(exports, "DatadogTracingContext", {
|
|
@@ -87,12 +93,6 @@ Object.defineProperty(exports, "DdSdkReactNative", {
|
|
|
87
93
|
return _DdSdkReactNative.DdSdkReactNative;
|
|
88
94
|
}
|
|
89
95
|
});
|
|
90
|
-
Object.defineProperty(exports, "DdSdkReactNativeConfiguration", {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function () {
|
|
93
|
-
return _DdSdkReactNativeConfiguration.DdSdkReactNativeConfiguration;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
96
|
Object.defineProperty(exports, "DdTrace", {
|
|
97
97
|
enumerable: true,
|
|
98
98
|
get: function () {
|
|
@@ -108,7 +108,13 @@ Object.defineProperty(exports, "DefaultTimeProvider", {
|
|
|
108
108
|
Object.defineProperty(exports, "ErrorSource", {
|
|
109
109
|
enumerable: true,
|
|
110
110
|
get: function () {
|
|
111
|
-
return
|
|
111
|
+
return _types3.ErrorSource;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "FeatureOperationFailure", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _types3.FeatureOperationFailure;
|
|
112
118
|
}
|
|
113
119
|
});
|
|
114
120
|
Object.defineProperty(exports, "FileBasedConfiguration", {
|
|
@@ -120,7 +126,7 @@ Object.defineProperty(exports, "FileBasedConfiguration", {
|
|
|
120
126
|
Object.defineProperty(exports, "InitializationMode", {
|
|
121
127
|
enumerable: true,
|
|
122
128
|
get: function () {
|
|
123
|
-
return
|
|
129
|
+
return _types.InitializationMode;
|
|
124
130
|
}
|
|
125
131
|
});
|
|
126
132
|
Object.defineProperty(exports, "InternalLog", {
|
|
@@ -129,10 +135,16 @@ Object.defineProperty(exports, "InternalLog", {
|
|
|
129
135
|
return _InternalLog.InternalLog;
|
|
130
136
|
}
|
|
131
137
|
});
|
|
138
|
+
Object.defineProperty(exports, "LogsConfiguration", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _LogsConfiguration.LogsConfiguration;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
132
144
|
Object.defineProperty(exports, "PropagatorType", {
|
|
133
145
|
enumerable: true,
|
|
134
146
|
get: function () {
|
|
135
|
-
return
|
|
147
|
+
return _types2.PropagatorType;
|
|
136
148
|
}
|
|
137
149
|
});
|
|
138
150
|
Object.defineProperty(exports, "ProxyConfiguration", {
|
|
@@ -150,7 +162,13 @@ Object.defineProperty(exports, "ProxyType", {
|
|
|
150
162
|
Object.defineProperty(exports, "RumActionType", {
|
|
151
163
|
enumerable: true,
|
|
152
164
|
get: function () {
|
|
153
|
-
return
|
|
165
|
+
return _types2.RumActionType;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "RumConfiguration", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _RumConfiguration.RumConfiguration;
|
|
154
172
|
}
|
|
155
173
|
});
|
|
156
174
|
Object.defineProperty(exports, "SdkVerbosity", {
|
|
@@ -165,6 +183,12 @@ Object.defineProperty(exports, "TimeProvider", {
|
|
|
165
183
|
return _TimeProvider.TimeProvider;
|
|
166
184
|
}
|
|
167
185
|
});
|
|
186
|
+
Object.defineProperty(exports, "TraceConfiguration", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () {
|
|
189
|
+
return _TraceConfiguration.TraceConfiguration;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
168
192
|
Object.defineProperty(exports, "TracingIdFormat", {
|
|
169
193
|
enumerable: true,
|
|
170
194
|
get: function () {
|
|
@@ -186,13 +210,13 @@ Object.defineProperty(exports, "TrackingConsent", {
|
|
|
186
210
|
Object.defineProperty(exports, "UploadFrequency", {
|
|
187
211
|
enumerable: true,
|
|
188
212
|
get: function () {
|
|
189
|
-
return
|
|
213
|
+
return _types.UploadFrequency;
|
|
190
214
|
}
|
|
191
215
|
});
|
|
192
216
|
Object.defineProperty(exports, "VitalsUpdateFrequency", {
|
|
193
217
|
enumerable: true,
|
|
194
218
|
get: function () {
|
|
195
|
-
return
|
|
219
|
+
return _types.VitalsUpdateFrequency;
|
|
196
220
|
}
|
|
197
221
|
});
|
|
198
222
|
Object.defineProperty(exports, "__ddExtractText", {
|
|
@@ -201,12 +225,18 @@ Object.defineProperty(exports, "__ddExtractText", {
|
|
|
201
225
|
return _ddBabelUtils.__ddExtractText;
|
|
202
226
|
}
|
|
203
227
|
});
|
|
204
|
-
var _DdSdkReactNativeConfiguration = require("./DdSdkReactNativeConfiguration");
|
|
205
228
|
var _DdSdkReactNative = require("./DdSdkReactNative");
|
|
206
229
|
var _InternalLog = require("./InternalLog");
|
|
207
|
-
var
|
|
208
|
-
var
|
|
209
|
-
var
|
|
230
|
+
var _DatadogProviderConfiguration = require("./config/DatadogProviderConfiguration");
|
|
231
|
+
var _FileBasedConfiguration = require("./config/FileBasedConfiguration");
|
|
232
|
+
var _CoreConfiguration = require("./config/features/CoreConfiguration");
|
|
233
|
+
var _LogsConfiguration = require("./config/features/LogsConfiguration");
|
|
234
|
+
var _RumConfiguration = require("./config/features/RumConfiguration");
|
|
235
|
+
var _TraceConfiguration = require("./config/features/TraceConfiguration");
|
|
236
|
+
var _ProxyConfiguration = require("./config/types/ProxyConfiguration");
|
|
237
|
+
var _SdkVerbosity = require("./config/types/SdkVerbosity");
|
|
238
|
+
var _TrackingConsent = require("./config/types/TrackingConsent");
|
|
239
|
+
var _types = require("./config/types");
|
|
210
240
|
var _DdLogs = require("./logs/DdLogs");
|
|
211
241
|
var _DdRum = require("./rum/DdRum");
|
|
212
242
|
var _DdBabelInteractionTracking = require("./rum/instrumentation/interactionTracking/DdBabelInteractionTracking");
|
|
@@ -215,11 +245,11 @@ var _DatadogTracingContext = require("./rum/instrumentation/resourceTracking/dis
|
|
|
215
245
|
var _DatadogTracingIdentifier = require("./rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier");
|
|
216
246
|
var _TracingIdentifier = require("./rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier");
|
|
217
247
|
var _graphqlHeaders = require("./rum/instrumentation/resourceTracking/graphql/graphqlHeaders");
|
|
218
|
-
var
|
|
248
|
+
var _types2 = require("./rum/types");
|
|
219
249
|
var _DatadogProvider = require("./sdk/DatadogProvider/DatadogProvider");
|
|
220
250
|
var _DdSdk = require("./sdk/DdSdk");
|
|
221
|
-
var _FileBasedConfiguration = require("./sdk/FileBasedConfiguration/FileBasedConfiguration");
|
|
222
251
|
var _DdTrace = require("./trace/DdTrace");
|
|
252
|
+
var _types3 = require("./types");
|
|
223
253
|
var _DefaultTimeProvider = require("./utils/time-provider/DefaultTimeProvider");
|
|
224
254
|
var _TimeProvider = require("./utils/time-provider/TimeProvider");
|
|
225
255
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_DdSdkReactNative","require","_InternalLog","_DatadogProviderConfiguration","_FileBasedConfiguration","_CoreConfiguration","_LogsConfiguration","_RumConfiguration","_TraceConfiguration","_ProxyConfiguration","_SdkVerbosity","_TrackingConsent","_types","_DdLogs","_DdRum","_DdBabelInteractionTracking","_ddBabelUtils","_DatadogTracingContext","_DatadogTracingIdentifier","_TracingIdentifier","_graphqlHeaders","_types2","_DatadogProvider","_DdSdk","_DdTrace","_types3","_DefaultTimeProvider","_TimeProvider"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,6BAAA,GAAAF,OAAA;AACA,IAAAG,uBAAA,GAAAH,OAAA;AAIA,IAAAI,kBAAA,GAAAJ,OAAA;AAEA,IAAAK,kBAAA,GAAAL,OAAA;AAEA,IAAAM,iBAAA,GAAAN,OAAA;AAEA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,mBAAA,GAAAR,OAAA;AAIA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,gBAAA,GAAAV,OAAA;AACA,IAAAW,MAAA,GAAAX,OAAA;AAOA,IAAAY,OAAA,GAAAZ,OAAA;AACA,IAAAa,MAAA,GAAAb,OAAA;AACA,IAAAc,2BAAA,GAAAd,OAAA;AACA,IAAAe,aAAA,GAAAf,OAAA;AACA,IAAAgB,sBAAA,GAAAhB,OAAA;AACA,IAAAiB,yBAAA,GAAAjB,OAAA;AACA,IAAAkB,kBAAA,GAAAlB,OAAA;AAIA,IAAAmB,eAAA,GAAAnB,OAAA;AAMA,IAAAoB,OAAA,GAAApB,OAAA;AACA,IAAAqB,gBAAA,GAAArB,OAAA;AACA,IAAAsB,MAAA,GAAAtB,OAAA;AACA,IAAAuB,QAAA,GAAAvB,OAAA;AACA,IAAAwB,OAAA,GAAAxB,OAAA;AACA,IAAAyB,oBAAA,GAAAzB,OAAA;AAEA,IAAA0B,aAAA,GAAA1B,OAAA","ignoreList":[]}
|
|
@@ -4,11 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DdLogs = void 0;
|
|
7
|
+
var _DdAttributes = require("../DdAttributes");
|
|
7
8
|
var _InternalLog = require("../InternalLog");
|
|
8
|
-
var _SdkVerbosity = require("../SdkVerbosity");
|
|
9
|
+
var _SdkVerbosity = require("../config/types/SdkVerbosity");
|
|
9
10
|
var _debugIdResolver = require("../metro/debugIdResolver");
|
|
10
|
-
var
|
|
11
|
-
var
|
|
11
|
+
var _attributesEncoding = require("../sdk/AttributesEncoding/attributesEncoding");
|
|
12
|
+
var _singletonUtils = require("../utils/singletonUtils");
|
|
12
13
|
var _eventMapper = require("./eventMapper");
|
|
13
14
|
/*
|
|
14
15
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
@@ -16,6 +17,7 @@ var _eventMapper = require("./eventMapper");
|
|
|
16
17
|
* Copyright 2016-Present Datadog, Inc.
|
|
17
18
|
*/
|
|
18
19
|
|
|
20
|
+
const LOGS_MODULE = 'com.datadog.reactnative.logs';
|
|
19
21
|
const SDK_NOT_INITIALIZED_MESSAGE = 'DD_INTERNAL_LOG_SENT_BEFORE_SDK_INIT';
|
|
20
22
|
const generateEmptyPromise = () => new Promise(resolve => resolve());
|
|
21
23
|
|
|
@@ -24,7 +26,7 @@ const generateEmptyPromise = () => new Promise(resolve => resolve());
|
|
|
24
26
|
* then the log contains an error.
|
|
25
27
|
*/
|
|
26
28
|
const isLogWithError = args => {
|
|
27
|
-
return typeof args[1] === 'string' || typeof args[2] === 'string' || typeof args[3] === 'string' ||
|
|
29
|
+
return typeof args[1] === 'string' || typeof args[2] === 'string' || typeof args[3] === 'string' || args[4] !== undefined && args[4] !== null || typeof args[5] === 'string';
|
|
28
30
|
};
|
|
29
31
|
class DdLogsWrapper {
|
|
30
32
|
// eslint-disable-next-line global-require, @typescript-eslint/no-var-requires
|
|
@@ -80,10 +82,9 @@ class DdLogsWrapper {
|
|
|
80
82
|
this.printLogDroppedByMapper(message, status);
|
|
81
83
|
return generateEmptyPromise();
|
|
82
84
|
}
|
|
83
|
-
const validatedContext = (0, _argsUtils.validateContext)(event.context);
|
|
84
85
|
this.printLogTracked(event.message, status);
|
|
85
86
|
try {
|
|
86
|
-
return await this.nativeLogs[status](event.message,
|
|
87
|
+
return await this.nativeLogs[status](event.message, (0, _attributesEncoding.encodeAttributes)(event.context));
|
|
87
88
|
} catch (error) {
|
|
88
89
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
89
90
|
// @ts-ignore
|
|
@@ -112,8 +113,11 @@ class DdLogsWrapper {
|
|
|
112
113
|
}
|
|
113
114
|
this.printLogTracked(mappedEvent.message, status);
|
|
114
115
|
try {
|
|
115
|
-
const
|
|
116
|
-
updatedContext
|
|
116
|
+
const encodedContext = (0, _attributesEncoding.encodeAttributes)(mappedEvent.context);
|
|
117
|
+
const updatedContext = {
|
|
118
|
+
...encodedContext,
|
|
119
|
+
[_DdAttributes.DdAttributes.errorSourceType]: 'react-native'
|
|
120
|
+
};
|
|
117
121
|
if (fingerprint && fingerprint !== '') {
|
|
118
122
|
updatedContext[_DdAttributes.DdAttributes.errorFingerprint] = fingerprint;
|
|
119
123
|
}
|
|
@@ -139,5 +143,5 @@ class DdLogsWrapper {
|
|
|
139
143
|
this.logEventMapper = (0, _eventMapper.generateEventMapper)(undefined);
|
|
140
144
|
}
|
|
141
145
|
}
|
|
142
|
-
const DdLogs = exports.DdLogs = new DdLogsWrapper();
|
|
146
|
+
const DdLogs = exports.DdLogs = (0, _singletonUtils.getGlobalInstance)(LOGS_MODULE, () => new DdLogsWrapper());
|
|
143
147
|
//# sourceMappingURL=DdLogs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_DdAttributes","require","_InternalLog","_SdkVerbosity","_debugIdResolver","_attributesEncoding","_singletonUtils","_eventMapper","LOGS_MODULE","SDK_NOT_INITIALIZED_MESSAGE","generateEmptyPromise","Promise","resolve","isLogWithError","args","undefined","DdLogsWrapper","nativeLogs","default","logEventMapper","generateEventMapper","debug","logWithError","log","info","warn","error","printLogDroppedSdkNotInitialized","message","status","__DEV__","console","DATADOG_MESSAGE_PREFIX","printLogDroppedByMapper","InternalLog","SdkVerbosity","DEBUG","printLogTracked","context","event","applyEventMapper","encodeAttributes","errorKind","errorMessage","stacktrace","fingerprint","source","rawLogEvent","mappedEvent","encodedContext","updatedContext","DdAttributes","errorSourceType","errorFingerprint","_debugId","debugId","registerLogEventMapper","unregisterLogEventMapper","DdLogs","exports","getGlobalInstance"],"sourceRoot":"../../../src","sources":["logs/DdLogs.ts"],"mappings":";;;;;;AAMA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAEA,IAAAI,mBAAA,GAAAJ,OAAA;AAEA,IAAAK,eAAA,GAAAL,OAAA;AAEA,IAAAM,YAAA,GAAAN,OAAA;AAfA;AACA;AACA;AACA;AACA;;AAoBA,MAAMO,WAAW,GAAG,8BAA8B;AAClD,MAAMC,2BAA2B,GAAG,sCAAsC;AAE1E,MAAMC,oBAAoB,GAAGA,CAAA,KAAM,IAAIC,OAAO,CAAOC,OAAO,IAAIA,OAAO,CAAC,CAAC,CAAC;;AAE1E;AACA;AACA;AACA;AACA,MAAMC,cAAc,GAChBC,IAA0C,IACV;EAChC,OACI,OAAOA,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,IAC3B,OAAOA,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,IAC3B,OAAOA,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,IAC1BA,IAAI,CAAC,CAAC,CAAC,KAAKC,SAAS,IAAID,IAAI,CAAC,CAAC,CAAC,KAAK,IAAK,IAC3C,OAAOA,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;AAEnC,CAAC;AAED,MAAME,aAAa,CAAuB;EACtC;EACQC,UAAU,GAAqBhB,OAAO,CAAC,uBAAuB,CAAC,CAClEiB,OAAO;EACJC,cAAc,GAAG,IAAAC,gCAAmB,EAACL,SAAS,CAAC;EAEvDM,KAAK,GAAGA,CAAC,GAAGP,IAA0C,KAAoB;IACtE,IAAID,cAAc,CAACC,IAAI,CAAC,EAAE;MACtB,OAAO,IAAI,CAACQ,YAAY,CACpBR,IAAI,CAAC,CAAC,CAAC,EACPA,IAAI,CAAC,CAAC,CAA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};
|
|
21
21
|
exports.formatRawLogToNativeEvent = formatRawLogToNativeEvent;
|
|
22
22
|
const formatRawLogToLogEvent = (rawLog, additionalInformation) => {
|
|
23
|
+
const userInfo = additionalInformation?.userInfo;
|
|
23
24
|
return {
|
|
24
25
|
...rawLog,
|
|
25
|
-
userInfo
|
|
26
|
+
...(userInfo !== undefined ? {
|
|
27
|
+
userInfo
|
|
28
|
+
} : {}),
|
|
26
29
|
attributes: additionalInformation.attributes
|
|
27
30
|
};
|
|
28
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_EventMapper","require","formatLogEventToNativeLog","logEvent","exports","formatRawLogToNativeEvent","rawLog","formatRawLogToLogEvent","additionalInformation","userInfo","attributes","generateEventMapper","logEventMapper","EventMapper"],"sourceRoot":"../../../src","sources":["logs/eventMapper.ts"],"mappings":";;;;;;AAOA,IAAAA,YAAA,GAAAC,OAAA;AAPA;AACA;AACA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["_EventMapper","require","formatLogEventToNativeLog","logEvent","exports","formatRawLogToNativeEvent","rawLog","formatRawLogToLogEvent","additionalInformation","userInfo","undefined","attributes","generateEventMapper","logEventMapper","EventMapper"],"sourceRoot":"../../../src","sources":["logs/eventMapper.ts"],"mappings":";;;;;;AAOA,IAAAA,YAAA,GAAAC,OAAA;AAPA;AACA;AACA;AACA;AACA;;AAcO,MAAMC,yBAAyB,GAClCC,QAAkB,IACe;EACjC,OAAOA,QAAQ;AACnB,CAAC;AAACC,OAAA,CAAAF,yBAAA,GAAAA,yBAAA;AAEK,MAAMG,yBAAyB,GAClCC,MAAgC,IACC;EACjC,OAAOA,MAAM;AACjB,CAAC;AAACF,OAAA,CAAAC,yBAAA,GAAAA,yBAAA;AAEK,MAAME,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;AAACP,OAAA,CAAAG,sBAAA,GAAAA,sBAAA;AAEK,MAAMK,mBAAmB,GAC5BC,cAA0C,IAE1C,IAAIC,wBAAW,CACXD,cAAc,EACdN,sBAAsB,EACtBL,yBAAyB,EACzBG,yBACJ,CAAC;AAACD,OAAA,CAAAQ,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -3,49 +3,4 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.DdNativeSdkConfiguration = void 0;
|
|
7
|
-
/*
|
|
8
|
-
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
9
|
-
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
10
|
-
* Copyright 2016-Present Datadog, Inc.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* In this file, native modules types extend the specs for TurboModules.
|
|
15
|
-
* As we cannot use enums or classes in the specs, we override methods using them here.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The entry point to use Datadog's Logs feature.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The entry point to use Datadog's Trace feature.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* A configuration object to initialize Datadog's features.
|
|
28
|
-
*/
|
|
29
|
-
class DdNativeSdkConfiguration {
|
|
30
|
-
constructor(clientToken, env, applicationId, nativeCrashReportEnabled, sampleRate, site, trackingConsent, additionalConfiguration // eslint-disable-next-line no-empty-function
|
|
31
|
-
) {
|
|
32
|
-
this.clientToken = clientToken;
|
|
33
|
-
this.env = env;
|
|
34
|
-
this.applicationId = applicationId;
|
|
35
|
-
this.nativeCrashReportEnabled = nativeCrashReportEnabled;
|
|
36
|
-
this.sampleRate = sampleRate;
|
|
37
|
-
this.site = site;
|
|
38
|
-
this.trackingConsent = trackingConsent;
|
|
39
|
-
this.additionalConfiguration = additionalConfiguration;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The entry point to initialize Datadog's features.
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* The entry point to use Datadog's RUM feature.
|
|
49
|
-
*/
|
|
50
|
-
exports.DdNativeSdkConfiguration = DdNativeSdkConfiguration;
|
|
51
6
|
//# sourceMappingURL=nativeModulesTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["nativeModulesTypes.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -4,28 +4,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DdRum = void 0;
|
|
7
|
+
var _DdAttributes = require("../DdAttributes");
|
|
7
8
|
var _InternalLog = require("../InternalLog");
|
|
8
|
-
var _SdkVerbosity = require("../SdkVerbosity");
|
|
9
|
+
var _SdkVerbosity = require("../config/types/SdkVerbosity");
|
|
9
10
|
var _debugIdResolver = require("../metro/debugIdResolver");
|
|
11
|
+
var _attributesEncoding = require("../sdk/AttributesEncoding/attributesEncoding");
|
|
10
12
|
var _bufferNativeCall = require("../sdk/DatadogProvider/Buffer/bufferNativeCall");
|
|
11
|
-
var
|
|
13
|
+
var _DdSdkInternal = require("../sdk/DdSdkInternal");
|
|
12
14
|
var _GlobalState = require("../sdk/GlobalState/GlobalState");
|
|
13
|
-
var
|
|
15
|
+
var _singletonUtils = require("../utils/singletonUtils");
|
|
14
16
|
var _DefaultTimeProvider = require("../utils/time-provider/DefaultTimeProvider");
|
|
15
|
-
var _DdAttributes = require("./DdAttributes");
|
|
16
17
|
var _actionEventMapper = require("./eventMappers/actionEventMapper");
|
|
17
18
|
var _errorEventMapper = require("./eventMappers/errorEventMapper");
|
|
18
19
|
var _resourceEventMapper = require("./eventMappers/resourceEventMapper");
|
|
20
|
+
var _helper = require("./helper");
|
|
19
21
|
var _DatadogTracingIdentifier = require("./instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier");
|
|
20
22
|
var _TracingIdentifier = require("./instrumentation/resourceTracking/distributedTracing/TracingIdentifier");
|
|
21
23
|
var _distributedTracingHeaders = require("./instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders");
|
|
22
|
-
var _sessionIdHelper = require("./sessionId/sessionIdHelper");
|
|
23
24
|
/*
|
|
24
25
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
25
26
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
26
27
|
* Copyright 2016-Present Datadog, Inc.
|
|
27
28
|
*/
|
|
28
29
|
|
|
30
|
+
const RUM_MODULE = 'com.datadog.reactnative.rum';
|
|
29
31
|
const generateEmptyPromise = () => new Promise(resolve => resolve());
|
|
30
32
|
class DdRumWrapper {
|
|
31
33
|
// eslint-disable-next-line global-require, @typescript-eslint/no-var-requires
|
|
@@ -36,11 +38,11 @@ class DdRumWrapper {
|
|
|
36
38
|
timeProvider = new _DefaultTimeProvider.DefaultTimeProvider();
|
|
37
39
|
startView = (key, name, context = {}, timestampMs = this.timeProvider.now()) => {
|
|
38
40
|
_InternalLog.InternalLog.log(`Starting RUM View “${name}” #${key}`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
39
|
-
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.startView(key, name, (0,
|
|
41
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.startView(key, name, (0, _attributesEncoding.encodeAttributes)(context), timestampMs));
|
|
40
42
|
};
|
|
41
43
|
stopView = (key, context = {}, timestampMs = this.timeProvider.now()) => {
|
|
42
44
|
_InternalLog.InternalLog.log(`Stopping RUM View #${key}`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
43
|
-
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.stopView(key, (0,
|
|
45
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.stopView(key, (0, _attributesEncoding.encodeAttributes)(context), timestampMs));
|
|
44
46
|
};
|
|
45
47
|
startAction = (type, name, context = {}, timestampMs = this.timeProvider.now()) => {
|
|
46
48
|
_InternalLog.InternalLog.log(`Starting RUM Action “${name}” (${type})`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
@@ -48,7 +50,7 @@ class DdRumWrapper {
|
|
|
48
50
|
type,
|
|
49
51
|
name
|
|
50
52
|
};
|
|
51
|
-
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.startAction(type, name, (0,
|
|
53
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.startAction(type, name, (0, _attributesEncoding.encodeAttributes)(context), timestampMs));
|
|
52
54
|
};
|
|
53
55
|
stopAction = (...args) => {
|
|
54
56
|
_InternalLog.InternalLog.log('Stopping current RUM Action', _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
@@ -59,6 +61,18 @@ class DdRumWrapper {
|
|
|
59
61
|
}
|
|
60
62
|
return this.callNativeStopAction(...nativeCallArgs);
|
|
61
63
|
};
|
|
64
|
+
startFeatureOperation(name, operationKey, attributes) {
|
|
65
|
+
_InternalLog.InternalLog.log(`Starting feature operation “${name}” (${operationKey})`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
66
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.startFeatureOperation(name, operationKey, attributes));
|
|
67
|
+
}
|
|
68
|
+
succeedFeatureOperation(name, operationKey, attributes) {
|
|
69
|
+
_InternalLog.InternalLog.log(`Succeding feature operation “${name}” (${operationKey})`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
70
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.succeedFeatureOperation(name, operationKey, attributes));
|
|
71
|
+
}
|
|
72
|
+
failFeatureOperation(name, operationKey, reason, attributes) {
|
|
73
|
+
_InternalLog.InternalLog.log(`Failing feature operation “${name}” (${operationKey})`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
74
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.failFeatureOperation(name, operationKey, reason, attributes));
|
|
75
|
+
}
|
|
62
76
|
setTimeProvider = timeProvider => {
|
|
63
77
|
this.timeProvider = timeProvider;
|
|
64
78
|
};
|
|
@@ -73,13 +87,12 @@ class DdRumWrapper {
|
|
|
73
87
|
if (!mappedEvent) {
|
|
74
88
|
return generateEmptyPromise();
|
|
75
89
|
}
|
|
76
|
-
const validatedContext = (0, _argsUtils.validateContext)(mappedEvent.context);
|
|
77
90
|
_InternalLog.InternalLog.log(`Adding RUM Action “${name}” (${type})`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
78
|
-
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.addAction(mappedEvent.type, mappedEvent.name,
|
|
91
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.addAction(mappedEvent.type, mappedEvent.name, (0, _attributesEncoding.encodeAttributes)(mappedEvent.context), mappedEvent.timestampMs));
|
|
79
92
|
};
|
|
80
93
|
startResource = (key, method, url, context = {}, timestampMs = this.timeProvider.now()) => {
|
|
81
94
|
_InternalLog.InternalLog.log(`Starting RUM Resource #${key} ${method}: ${url}`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
82
|
-
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.startResource(key, method, url, (0,
|
|
95
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.startResource(key, method, url, (0, _attributesEncoding.encodeAttributes)(context), timestampMs));
|
|
83
96
|
};
|
|
84
97
|
stopResource = (key, statusCode, kind, size = -1, context = {}, timestampMs = this.timeProvider.now(), resourceContext) => {
|
|
85
98
|
const mappedEvent = this.resourceEventMapper.applyEventMapper({
|
|
@@ -101,9 +114,8 @@ class DdRumWrapper {
|
|
|
101
114
|
'_dd.resource.drop_resource': true
|
|
102
115
|
}, timestampMs));
|
|
103
116
|
}
|
|
104
|
-
const validatedContext = (0, _argsUtils.validateContext)(mappedEvent.context);
|
|
105
117
|
_InternalLog.InternalLog.log(`Stopping RUM Resource #${key} status:${statusCode}`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
106
|
-
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.stopResource(mappedEvent.key, mappedEvent.statusCode, mappedEvent.kind, mappedEvent.size,
|
|
118
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.stopResource(mappedEvent.key, mappedEvent.statusCode, mappedEvent.kind, mappedEvent.size, (0, _attributesEncoding.encodeAttributes)(mappedEvent.context), mappedEvent.timestampMs));
|
|
107
119
|
};
|
|
108
120
|
addError = (message, source, stacktrace, context = {}, timestampMs = this.timeProvider.now(), fingerprint) => {
|
|
109
121
|
const mappedEvent = this.errorEventMapper.applyEventMapper({
|
|
@@ -118,11 +130,10 @@ class DdRumWrapper {
|
|
|
118
130
|
return generateEmptyPromise();
|
|
119
131
|
}
|
|
120
132
|
_InternalLog.InternalLog.log(`Adding RUM Error “${message}”`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
121
|
-
const updatedContext = (0,
|
|
133
|
+
const updatedContext = (0, _attributesEncoding.encodeAttributes)(mappedEvent.context);
|
|
122
134
|
updatedContext[_DdAttributes.DdAttributes.errorSourceType] = 'react-native';
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
updatedContext[_DdAttributes.DdAttributes.debugId] = _debugId;
|
|
135
|
+
if (_debugIdResolver.debugId) {
|
|
136
|
+
updatedContext[_DdAttributes.DdAttributes.debugId] = _debugIdResolver.debugId;
|
|
126
137
|
}
|
|
127
138
|
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.addError(mappedEvent.message, mappedEvent.source, mappedEvent.stacktrace, updatedContext, mappedEvent.timestampMs, mappedEvent.fingerprint));
|
|
128
139
|
};
|
|
@@ -130,13 +141,31 @@ class DdRumWrapper {
|
|
|
130
141
|
_InternalLog.InternalLog.log(`Adding timing “${name}” to RUM View`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
131
142
|
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.addTiming(name));
|
|
132
143
|
};
|
|
144
|
+
addViewAttribute = (key, value) => {
|
|
145
|
+
_InternalLog.InternalLog.log(`Adding view attribute “${key}" with value “${JSON.stringify(value)}” to RUM View`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
146
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.addViewAttribute(key, {
|
|
147
|
+
value
|
|
148
|
+
}));
|
|
149
|
+
};
|
|
150
|
+
removeViewAttribute = key => {
|
|
151
|
+
_InternalLog.InternalLog.log(`Removing view attribute “${key}" from RUM View`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
152
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.removeViewAttribute(key));
|
|
153
|
+
};
|
|
154
|
+
addViewAttributes = attributes => {
|
|
155
|
+
_InternalLog.InternalLog.log(`Adding view attributes "${JSON.stringify(attributes)}” to RUM View`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
156
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.addViewAttributes(attributes));
|
|
157
|
+
};
|
|
158
|
+
removeViewAttributes = keys => {
|
|
159
|
+
_InternalLog.InternalLog.log(`Removing view attributes “${keys}" from RUM View`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
160
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.removeViewAttributes(keys));
|
|
161
|
+
};
|
|
133
162
|
addViewLoadingTime = overwrite => {
|
|
134
163
|
_InternalLog.InternalLog.log(overwrite ? 'Adding and overwriting view loading to RUM View' : 'Adding view loading to RUM View', _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
135
164
|
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.addViewLoadingTime(overwrite));
|
|
136
165
|
};
|
|
137
166
|
stopSession = () => {
|
|
138
167
|
_InternalLog.InternalLog.log('Stopping RUM Session', _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
139
|
-
(0,
|
|
168
|
+
(0, _helper.clearCachedSessionId)();
|
|
140
169
|
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.stopSession());
|
|
141
170
|
};
|
|
142
171
|
addFeatureFlagEvaluation = (name, value) => {
|
|
@@ -146,20 +175,20 @@ class DdRumWrapper {
|
|
|
146
175
|
}));
|
|
147
176
|
};
|
|
148
177
|
async getCurrentSessionId() {
|
|
149
|
-
if (!_GlobalState.GlobalState.
|
|
178
|
+
if (!_GlobalState.GlobalState.isInitialized) {
|
|
150
179
|
return undefined;
|
|
151
180
|
}
|
|
152
181
|
const sessionId = await this.nativeRum.getCurrentSessionId();
|
|
153
182
|
if (sessionId) {
|
|
154
|
-
(0,
|
|
183
|
+
(0, _helper.setCachedSessionId)(sessionId);
|
|
155
184
|
}
|
|
156
185
|
return sessionId;
|
|
157
186
|
}
|
|
158
187
|
getTracingContext = (url, tracingSamplingRate, firstPartyHosts) => {
|
|
159
|
-
return (0, _distributedTracingHeaders.getTracingContext)(url, tracingSamplingRate, firstPartyHosts, (0,
|
|
188
|
+
return (0, _distributedTracingHeaders.getTracingContext)(url, tracingSamplingRate, firstPartyHosts, (0, _helper.getCachedSessionId)(), (0, _helper.getCachedUserId)(), (0, _helper.getCachedAccountId)());
|
|
160
189
|
};
|
|
161
190
|
getTracingContextForPropagators = (propagators, tracingSamplingRate) => {
|
|
162
|
-
return (0, _distributedTracingHeaders.getTracingContextForPropagators)(propagators, tracingSamplingRate, (0,
|
|
191
|
+
return (0, _distributedTracingHeaders.getTracingContextForPropagators)(propagators, tracingSamplingRate, (0, _helper.getCachedSessionId)(), (0, _helper.getCachedUserId)(), (0, _helper.getCachedAccountId)());
|
|
163
192
|
};
|
|
164
193
|
generateTraceId() {
|
|
165
194
|
return new _DatadogTracingIdentifier.DatadogTracingIdentifier(_TracingIdentifier.TracingIdentifier.createTraceId());
|
|
@@ -197,21 +226,20 @@ class DdRumWrapper {
|
|
|
197
226
|
'_dd.action.drop_action': true
|
|
198
227
|
}, timestampMs));
|
|
199
228
|
}
|
|
200
|
-
|
|
201
|
-
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.stopAction(mappedEvent.type, mappedEvent.name, validatedContext, mappedEvent.timestampMs));
|
|
229
|
+
return (0, _bufferNativeCall.bufferVoidNativeCall)(() => this.nativeRum.stopAction(mappedEvent.type, mappedEvent.name, (0, _attributesEncoding.encodeAttributes)(mappedEvent.context), mappedEvent.timestampMs));
|
|
202
230
|
};
|
|
203
231
|
getStopActionNativeCallArgs = args => {
|
|
204
232
|
if (isNewStopActionAPI(args)) {
|
|
205
|
-
return [args[0], args[1], args[2]
|
|
233
|
+
return [args[0], args[1], args[2] ?? {}, args[3] || this.timeProvider.now()];
|
|
206
234
|
}
|
|
207
235
|
if (isOldStopActionAPI(args)) {
|
|
208
236
|
if (this.lastActionData) {
|
|
209
|
-
|
|
237
|
+
_DdSdkInternal.NativeDdSdk.telemetryDebug('DDdRum.stopAction called with the old signature');
|
|
210
238
|
const {
|
|
211
239
|
type,
|
|
212
240
|
name
|
|
213
241
|
} = this.lastActionData;
|
|
214
|
-
return [type, name, args[0]
|
|
242
|
+
return [type, name, args[0] ?? {}, args[1] || this.timeProvider.now()];
|
|
215
243
|
}
|
|
216
244
|
_InternalLog.InternalLog.log('DdRum.startAction needs to be called before DdRum.stopAction', _SdkVerbosity.SdkVerbosity.WARN);
|
|
217
245
|
} else {
|
|
@@ -226,5 +254,5 @@ const isNewStopActionAPI = args => {
|
|
|
226
254
|
const isOldStopActionAPI = args => {
|
|
227
255
|
return typeof args[0] === 'object' || typeof args[0] === 'undefined';
|
|
228
256
|
};
|
|
229
|
-
const DdRum = exports.DdRum = new DdRumWrapper();
|
|
257
|
+
const DdRum = exports.DdRum = (0, _singletonUtils.getGlobalInstance)(RUM_MODULE, () => new DdRumWrapper());
|
|
230
258
|
//# sourceMappingURL=DdRum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_InternalLog","require","_SdkVerbosity","_debugIdResolver","_bufferNativeCall","_DdSdk","_GlobalState","_argsUtils","_DefaultTimeProvider","_DdAttributes","_actionEventMapper","_errorEventMapper","_resourceEventMapper","_DatadogTracingIdentifier","_TracingIdentifier","_distributedTracingHeaders","_sessionIdHelper","generateEmptyPromise","Promise","resolve","DdRumWrapper","nativeRum","default","errorEventMapper","generateErrorEventMapper","undefined","resourceEventMapper","generateResourceEventMapper","actionEventMapper","generateActionEventMapper","timeProvider","DefaultTimeProvider","startView","key","name","context","timestampMs","now","InternalLog","log","SdkVerbosity","DEBUG","bufferVoidNativeCall","validateContext","stopView","startAction","type","lastActionData","stopAction","args","nativeCallArgs","getStopActionNativeCallArgs","callNativeStopAction","setTimeProvider","addAction","actionContext","mappedEvent","applyEventMapper","validatedContext","startResource","method","url","stopResource","statusCode","kind","size","resourceContext","addError","message","source","stacktrace","fingerprint","updatedContext","DdAttributes","errorSourceType","_debugId","debugId","addTiming","addViewLoadingTime","overwrite","stopSession","clearCachedSessionId","addFeatureFlagEvaluation","value","JSON","stringify","getCurrentSessionId","GlobalState","instance","isInitialized","sessionId","setCachedSessionId","getTracingContext","tracingSamplingRate","firstPartyHosts","getCachedSessionId","getTracingContextForPropagators","propagators","generateTraceId","DatadogTracingIdentifier","TracingIdentifier","createTraceId","generateSpanId","createSpanId","registerErrorEventMapper","unregisterErrorEventMapper","registerResourceEventMapper","unregisterResourceEventMapper","registerActionEventMapper","unregisterActionEventMapper","isNewStopActionAPI","isOldStopActionAPI","DdSdk","telemetryDebug","WARN","DdRum","exports"],"sourceRoot":"../../../src","sources":["rum/DdRum.ts"],"mappings":";;;;;;AAOA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AAEA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,oBAAA,GAAAP,OAAA;AAGA,IAAAQ,aAAA,GAAAR,OAAA;AACA,IAAAS,kBAAA,GAAAT,OAAA;AAEA,IAAAU,iBAAA,GAAAV,OAAA;AAEA,IAAAW,oBAAA,GAAAX,OAAA;AAGA,IAAAY,yBAAA,GAAAZ,OAAA;AACA,IAAAa,kBAAA,GAAAb,OAAA;AACA,IAAAc,0BAAA,GAAAd,OAAA;AAIA,IAAAe,gBAAA,GAAAf,OAAA;AAhCA;AACA;AACA;AACA;AACA;;AA0CA,MAAMgB,oBAAoB,GAAGA,CAAA,KAAM,IAAIC,OAAO,CAAOC,OAAO,IAAIA,OAAO,CAAC,CAAC,CAAC;AAE1E,MAAMC,YAAY,CAAsB;EACpC;EACQC,SAAS,GAAoBpB,OAAO,CAAC,sBAAsB,CAAC,CAC/DqB,OAAO;EAEJC,gBAAgB,GAAG,IAAAC,0CAAwB,EAACC,SAAS,CAAC;EACtDC,mBAAmB,GAAG,IAAAC,gDAA2B,EAACF,SAAS,CAAC;EAC5DG,iBAAiB,GAAG,IAAAC,4CAAyB,EAACJ,SAAS,CAAC;EACxDK,YAAY,GAAiB,IAAIC,wCAAmB,CAAC,CAAC;EAE9DC,SAAS,GAAGA,CACRC,GAAW,EACXC,IAAY,EACZC,OAAe,GAAG,CAAC,CAAC,EACpBC,WAAmB,GAAG,IAAI,CAACN,YAAY,CAACO,GAAG,CAA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I,CAACa,cAAc;QAC1C,OAAO,CACHD,IAAI,EACJZ,IAAI,EACJe,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EACbA,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAACnB,YAAY,CAACO,GAAG,CAAC,CAAC,CACrC;MACL;MACAC,wBAAW,CAACC,GAAG,CACX,8DAA8D,EAC9DC,0BAAY,CAAC0E,IACjB,CAAC;IACL,CAAC,MAAM;MACH5E,wBAAW,CAACC,GAAG,CACX,kDAAkD,EAClDC,0BAAY,CAAC0E,IACjB,CAAC;IACL;IAEA,OAAO,IAAI;EACf,CAAC;AACL;AAEA,MAAMJ,kBAAkB,GACpB7D,IAO8C,IAM7C;EACD,OAAO,OAAOA,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;AACtC,CAAC;AAED,MAAM8D,kBAAkB,GACpB9D,IAO8C,IACK;EACnD,OAAO,OAAOA,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,OAAOA,IAAI,CAAC,CAAC,CAAC,KAAK,WAAW;AACxE,CAAC;AAEM,MAAMkE,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG,IAAI/F,YAAY,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_DdAttributes","require","_InternalLog","_SdkVerbosity","_debugIdResolver","_attributesEncoding","_bufferNativeCall","_DdSdkInternal","_GlobalState","_singletonUtils","_DefaultTimeProvider","_actionEventMapper","_errorEventMapper","_resourceEventMapper","_helper","_DatadogTracingIdentifier","_TracingIdentifier","_distributedTracingHeaders","RUM_MODULE","generateEmptyPromise","Promise","resolve","DdRumWrapper","nativeRum","default","errorEventMapper","generateErrorEventMapper","undefined","resourceEventMapper","generateResourceEventMapper","actionEventMapper","generateActionEventMapper","timeProvider","DefaultTimeProvider","startView","key","name","context","timestampMs","now","InternalLog","log","SdkVerbosity","DEBUG","bufferVoidNativeCall","encodeAttributes","stopView","startAction","type","lastActionData","stopAction","args","nativeCallArgs","getStopActionNativeCallArgs","callNativeStopAction","startFeatureOperation","operationKey","attributes","succeedFeatureOperation","failFeatureOperation","reason","setTimeProvider","addAction","actionContext","mappedEvent","applyEventMapper","startResource","method","url","stopResource","statusCode","kind","size","resourceContext","addError","message","source","stacktrace","fingerprint","updatedContext","DdAttributes","errorSourceType","debugId","addTiming","addViewAttribute","value","JSON","stringify","removeViewAttribute","addViewAttributes","removeViewAttributes","keys","addViewLoadingTime","overwrite","stopSession","clearCachedSessionId","addFeatureFlagEvaluation","getCurrentSessionId","GlobalState","isInitialized","sessionId","setCachedSessionId","getTracingContext","tracingSamplingRate","firstPartyHosts","getCachedSessionId","getCachedUserId","getCachedAccountId","getTracingContextForPropagators","propagators","generateTraceId","DatadogTracingIdentifier","TracingIdentifier","createTraceId","generateSpanId","createSpanId","registerErrorEventMapper","unregisterErrorEventMapper","registerResourceEventMapper","unregisterResourceEventMapper","registerActionEventMapper","unregisterActionEventMapper","isNewStopActionAPI","isOldStopActionAPI","NativeDdSdk","telemetryDebug","WARN","DdRum","exports","getGlobalInstance"],"sourceRoot":"../../../src","sources":["rum/DdRum.ts"],"mappings":";;;;;;AAOA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAEA,IAAAI,mBAAA,GAAAJ,OAAA;AAEA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAEA,IAAAQ,eAAA,GAAAR,OAAA;AACA,IAAAS,oBAAA,GAAAT,OAAA;AAIA,IAAAU,kBAAA,GAAAV,OAAA;AAEA,IAAAW,iBAAA,GAAAX,OAAA;AAEA,IAAAY,oBAAA,GAAAZ,OAAA;AACA,IAAAa,OAAA,GAAAb,OAAA;AAQA,IAAAc,yBAAA,GAAAd,OAAA;AACA,IAAAe,kBAAA,GAAAf,OAA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