@datadog/mobile-react-native 2.4.1 → 2.4.2
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/android/build.gradle +1 -0
- package/android/src/main/kotlin/com/datadog/reactnative/DdRumImplementation.kt +6 -0
- package/android/src/main/kotlin/com/datadog/reactnative/DdSdkImplementation.kt +31 -24
- package/android/src/main/kotlin/com/datadog/reactnative/FrameRateProvider.kt +63 -0
- package/android/src/main/kotlin/com/datadog/reactnative/SdkVersion.kt +1 -1
- package/android/src/main/kotlin/com/datadog/reactnative/UiThreadExecutor.kt +25 -0
- package/android/src/newarch/kotlin/com/datadog/reactnative/DdRum.kt +10 -1
- package/android/src/oldarch/kotlin/com/datadog/reactnative/DdRum.kt +10 -1
- package/android/src/test/kotlin/com/datadog/reactnative/DdRumTest.kt +29 -0
- package/android/src/test/kotlin/com/datadog/reactnative/DdSdkTest.kt +34 -14
- package/android/src/test/kotlin/com/datadog/tools/unit/TestUiThreadExecutor.kt +16 -0
- package/datadog-sourcemaps.gradle +3 -5
- package/ios/Sources/DdRum.mm +4 -3
- package/ios/Sources/DdRumImplementation.swift +15 -2
- package/ios/Sources/SdkVersion.swift +1 -1
- package/lib/commonjs/DdSdkReactNative.js +107 -145
- package/lib/commonjs/DdSdkReactNative.js.map +1 -1
- package/lib/commonjs/DdSdkReactNativeConfiguration.js +54 -119
- package/lib/commonjs/DdSdkReactNativeConfiguration.js.map +1 -1
- package/lib/commonjs/InternalLog.js +8 -19
- package/lib/commonjs/InternalLog.js.map +1 -1
- package/lib/commonjs/ProxyConfiguration.js +3 -15
- package/lib/commonjs/ProxyConfiguration.js.map +1 -1
- package/lib/commonjs/SdkVerbosity.js +3 -7
- package/lib/commonjs/SdkVerbosity.js.map +1 -1
- package/lib/commonjs/TrackingConsent.js +3 -7
- package/lib/commonjs/TrackingConsent.js.map +1 -1
- package/lib/commonjs/index.js +50 -66
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/logs/DdLogs.js +103 -123
- package/lib/commonjs/logs/DdLogs.js.map +1 -1
- package/lib/commonjs/logs/eventMapper.js +4 -11
- package/lib/commonjs/logs/eventMapper.js.map +1 -1
- package/lib/commonjs/logs/types.js +4 -0
- package/lib/commonjs/logs/types.js.map +1 -1
- package/lib/commonjs/nativeModulesTypes.js +4 -3
- package/lib/commonjs/nativeModulesTypes.js.map +1 -1
- package/lib/commonjs/polyfills.js +1 -4
- package/lib/commonjs/polyfills.js.map +1 -1
- package/lib/commonjs/rum/DdAttributes.js +26 -0
- package/lib/commonjs/rum/DdAttributes.js.map +1 -0
- package/lib/commonjs/rum/DdRum.js +143 -208
- package/lib/commonjs/rum/DdRum.js.map +1 -1
- package/lib/commonjs/rum/eventMappers/actionEventMapper.js +5 -8
- package/lib/commonjs/rum/eventMappers/actionEventMapper.js.map +1 -1
- package/lib/commonjs/rum/eventMappers/errorEventMapper.js +3 -7
- package/lib/commonjs/rum/eventMappers/errorEventMapper.js.map +1 -1
- package/lib/commonjs/rum/eventMappers/resourceEventMapper.js +5 -8
- package/lib/commonjs/rum/eventMappers/resourceEventMapper.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/DdRumErrorTracking.js +68 -89
- package/lib/commonjs/rum/instrumentation/DdRumErrorTracking.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdEventsInterceptor.js +13 -46
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdEventsInterceptor.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.js +52 -66
- package/lib/commonjs/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/interactionTracking/EventsInterceptor.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.js +3 -4
- package/lib/commonjs/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.js +0 -6
- package/lib/commonjs/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/interactionTracking/getJsxRuntime.js +18 -19
- package/lib/commonjs/rum/instrumentation/interactionTracking/getJsxRuntime.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/DdRumResourceTracking.js +6 -21
- package/lib/commonjs/rum/instrumentation/resourceTracking/DdRumResourceTracking.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.js +32 -55
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.js +1 -9
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.js +15 -41
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.js +3 -13
- package/lib/commonjs/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.js +5 -10
- package/lib/commonjs/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.js +16 -35
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.js +2 -5
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.js +4 -7
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.js +4 -10
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.js +25 -58
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.js +4 -26
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.js +1 -11
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.js +4 -0
- package/lib/commonjs/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.js.map +1 -1
- package/lib/commonjs/rum/types.js +15 -27
- package/lib/commonjs/rum/types.js.map +1 -1
- package/lib/commonjs/sdk/AttributesSingleton/AttributesSingleton.js +20 -30
- package/lib/commonjs/sdk/AttributesSingleton/AttributesSingleton.js.map +1 -1
- package/lib/commonjs/sdk/AttributesSingleton/types.js.map +1 -1
- package/lib/commonjs/sdk/DatadogProvider/Buffer/BoundedBuffer.js +112 -144
- package/lib/commonjs/sdk/DatadogProvider/Buffer/BoundedBuffer.js.map +1 -1
- package/lib/commonjs/sdk/DatadogProvider/Buffer/BufferSingleton.js +19 -22
- package/lib/commonjs/sdk/DatadogProvider/Buffer/BufferSingleton.js.map +1 -1
- package/lib/commonjs/sdk/DatadogProvider/Buffer/DatadogBuffer.js +1 -15
- package/lib/commonjs/sdk/DatadogProvider/Buffer/DatadogBuffer.js.map +1 -1
- package/lib/commonjs/sdk/DatadogProvider/Buffer/PassThroughBuffer.js +9 -16
- package/lib/commonjs/sdk/DatadogProvider/Buffer/PassThroughBuffer.js.map +1 -1
- package/lib/commonjs/sdk/DatadogProvider/Buffer/bufferNativeCall.js +2 -8
- package/lib/commonjs/sdk/DatadogProvider/Buffer/bufferNativeCall.js.map +1 -1
- package/lib/commonjs/sdk/DatadogProvider/DatadogProvider.js +8 -25
- package/lib/commonjs/sdk/DatadogProvider/DatadogProvider.js.map +1 -1
- package/lib/commonjs/sdk/DdSdk.js +2 -4
- package/lib/commonjs/sdk/DdSdk.js.map +1 -1
- package/lib/commonjs/sdk/EventMappers/EventMapper.js +31 -51
- package/lib/commonjs/sdk/EventMappers/EventMapper.js.map +1 -1
- package/lib/commonjs/sdk/EventMappers/utils/deepClone.js +9 -24
- package/lib/commonjs/sdk/EventMappers/utils/deepClone.js.map +1 -1
- package/lib/commonjs/sdk/FileBasedConfiguration/FileBasedConfiguration.js +6 -38
- package/lib/commonjs/sdk/FileBasedConfiguration/FileBasedConfiguration.js.map +1 -1
- package/lib/commonjs/sdk/GlobalState/GlobalState.js +6 -11
- package/lib/commonjs/sdk/GlobalState/GlobalState.js.map +1 -1
- package/lib/commonjs/sdk/UserInfoSingleton/UserInfoSingleton.js +17 -28
- package/lib/commonjs/sdk/UserInfoSingleton/UserInfoSingleton.js.map +1 -1
- package/lib/commonjs/sdk/UserInfoSingleton/types.js.map +1 -1
- package/lib/commonjs/specs/NativeDdLogs.js +4 -6
- package/lib/commonjs/specs/NativeDdLogs.js.map +1 -1
- package/lib/commonjs/specs/NativeDdRum.js +4 -6
- package/lib/commonjs/specs/NativeDdRum.js.map +1 -1
- package/lib/commonjs/specs/NativeDdSdk.js +4 -6
- package/lib/commonjs/specs/NativeDdSdk.js.map +1 -1
- package/lib/commonjs/specs/NativeDdTrace.js +4 -6
- package/lib/commonjs/specs/NativeDdTrace.js.map +1 -1
- package/lib/commonjs/trace/DdTrace.js +17 -29
- package/lib/commonjs/trace/DdTrace.js.map +1 -1
- package/lib/commonjs/types.js +4 -3
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/Timer.js +7 -22
- package/lib/commonjs/utils/Timer.js.map +1 -1
- package/lib/commonjs/utils/argsUtils.js +3 -11
- package/lib/commonjs/utils/argsUtils.js.map +1 -1
- package/lib/commonjs/utils/errorUtils.js +9 -22
- package/lib/commonjs/utils/errorUtils.js.map +1 -1
- package/lib/commonjs/utils/jsUtils.js +1 -2
- package/lib/commonjs/utils/jsUtils.js.map +1 -1
- package/lib/commonjs/utils/longTasksUtils.js +2 -7
- package/lib/commonjs/utils/longTasksUtils.js.map +1 -1
- package/lib/commonjs/utils/time-provider/DefaultTimeProvider.js +9 -15
- package/lib/commonjs/utils/time-provider/DefaultTimeProvider.js.map +1 -1
- package/lib/commonjs/utils/time-provider/TimeProvider.js +1 -11
- package/lib/commonjs/utils/time-provider/TimeProvider.js.map +1 -1
- package/lib/commonjs/version.js +1 -2
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/DdSdkReactNative.js +104 -116
- package/lib/module/DdSdkReactNative.js.map +1 -1
- package/lib/module/DdSdkReactNativeConfiguration.js +49 -101
- package/lib/module/DdSdkReactNativeConfiguration.js.map +1 -1
- package/lib/module/InternalLog.js +4 -15
- package/lib/module/InternalLog.js.map +1 -1
- package/lib/module/ProxyConfiguration.js +3 -14
- package/lib/module/ProxyConfiguration.js.map +1 -1
- package/lib/module/SdkVerbosity.js +3 -4
- package/lib/module/SdkVerbosity.js.map +1 -1
- package/lib/module/TrackingConsent.js +3 -4
- package/lib/module/TrackingConsent.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/logs/DdLogs.js +98 -117
- package/lib/module/logs/DdLogs.js.map +1 -1
- package/lib/module/logs/eventMapper.js +3 -1
- package/lib/module/logs/eventMapper.js.map +1 -1
- package/lib/module/logs/types.js +1 -1
- package/lib/module/logs/types.js.map +1 -1
- package/lib/module/nativeModulesTypes.js +5 -1
- package/lib/module/nativeModulesTypes.js.map +1 -1
- package/lib/module/polyfills.js +1 -3
- package/lib/module/polyfills.js.map +1 -1
- package/lib/module/rum/DdAttributes.js +20 -0
- package/lib/module/rum/DdAttributes.js.map +1 -0
- package/lib/module/rum/DdRum.js +138 -185
- package/lib/module/rum/DdRum.js.map +1 -1
- package/lib/module/rum/eventMappers/actionEventMapper.js +5 -5
- package/lib/module/rum/eventMappers/actionEventMapper.js.map +1 -1
- package/lib/module/rum/eventMappers/errorEventMapper.js +3 -4
- package/lib/module/rum/eventMappers/errorEventMapper.js.map +1 -1
- package/lib/module/rum/eventMappers/resourceEventMapper.js +5 -5
- package/lib/module/rum/eventMappers/resourceEventMapper.js.map +1 -1
- package/lib/module/rum/instrumentation/DdRumErrorTracking.js +64 -79
- package/lib/module/rum/instrumentation/DdRumErrorTracking.js.map +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/DdEventsInterceptor.js +7 -36
- package/lib/module/rum/instrumentation/interactionTracking/DdEventsInterceptor.js.map +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.js +49 -54
- package/lib/module/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.js.map +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/EventsInterceptor.js.map +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.js +3 -2
- package/lib/module/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.js.map +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.js +0 -4
- package/lib/module/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.js.map +1 -1
- package/lib/module/rum/instrumentation/interactionTracking/getJsxRuntime.js +16 -14
- package/lib/module/rum/instrumentation/interactionTracking/getJsxRuntime.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/DdRumResourceTracking.js +2 -12
- package/lib/module/rum/instrumentation/resourceTracking/DdRumResourceTracking.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.js +33 -45
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.js +1 -4
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.js +2 -10
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.js +3 -5
- package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.js +1 -0
- package/lib/module/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.js +12 -30
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.js +2 -3
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.js +4 -4
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.js +4 -5
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.js +20 -48
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.js +2 -20
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.js +1 -9
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.js.map +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.js +1 -1
- package/lib/module/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.js.map +1 -1
- package/lib/module/rum/types.js +14 -18
- package/lib/module/rum/types.js.map +1 -1
- package/lib/module/sdk/AttributesSingleton/AttributesSingleton.js +20 -28
- package/lib/module/sdk/AttributesSingleton/AttributesSingleton.js.map +1 -1
- package/lib/module/sdk/AttributesSingleton/types.js.map +1 -1
- package/lib/module/sdk/DatadogProvider/Buffer/BoundedBuffer.js +108 -137
- package/lib/module/sdk/DatadogProvider/Buffer/BoundedBuffer.js.map +1 -1
- package/lib/module/sdk/DatadogProvider/Buffer/BufferSingleton.js +14 -18
- package/lib/module/sdk/DatadogProvider/Buffer/BufferSingleton.js.map +1 -1
- package/lib/module/sdk/DatadogProvider/Buffer/DatadogBuffer.js +1 -13
- package/lib/module/sdk/DatadogProvider/Buffer/DatadogBuffer.js.map +1 -1
- package/lib/module/sdk/DatadogProvider/Buffer/PassThroughBuffer.js +5 -14
- package/lib/module/sdk/DatadogProvider/Buffer/PassThroughBuffer.js.map +1 -1
- package/lib/module/sdk/DatadogProvider/Buffer/bufferNativeCall.js +1 -0
- package/lib/module/sdk/DatadogProvider/Buffer/bufferNativeCall.js.map +1 -1
- package/lib/module/sdk/DatadogProvider/DatadogProvider.js +6 -14
- package/lib/module/sdk/DatadogProvider/DatadogProvider.js.map +1 -1
- package/lib/module/sdk/DdSdk.js +1 -1
- package/lib/module/sdk/DdSdk.js.map +1 -1
- package/lib/module/sdk/EventMappers/EventMapper.js +27 -41
- package/lib/module/sdk/EventMappers/EventMapper.js.map +1 -1
- package/lib/module/sdk/EventMappers/utils/deepClone.js +9 -22
- package/lib/module/sdk/EventMappers/utils/deepClone.js.map +1 -1
- package/lib/module/sdk/FileBasedConfiguration/FileBasedConfiguration.js +5 -29
- package/lib/module/sdk/FileBasedConfiguration/FileBasedConfiguration.js.map +1 -1
- package/lib/module/sdk/GlobalState/GlobalState.js +6 -9
- package/lib/module/sdk/GlobalState/GlobalState.js.map +1 -1
- package/lib/module/sdk/UserInfoSingleton/UserInfoSingleton.js +17 -26
- package/lib/module/sdk/UserInfoSingleton/UserInfoSingleton.js.map +1 -1
- package/lib/module/sdk/UserInfoSingleton/types.js.map +1 -1
- package/lib/module/specs/NativeDdLogs.js +2 -0
- package/lib/module/specs/NativeDdLogs.js.map +1 -1
- package/lib/module/specs/NativeDdRum.js +2 -0
- package/lib/module/specs/NativeDdRum.js.map +1 -1
- package/lib/module/specs/NativeDdSdk.js +2 -0
- package/lib/module/specs/NativeDdSdk.js.map +1 -1
- package/lib/module/specs/NativeDdTrace.js +2 -0
- package/lib/module/specs/NativeDdTrace.js.map +1 -1
- package/lib/module/trace/DdTrace.js +12 -19
- package/lib/module/trace/DdTrace.js.map +1 -1
- package/lib/module/types.js +5 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/Timer.js +3 -20
- package/lib/module/utils/Timer.js.map +1 -1
- package/lib/module/utils/argsUtils.js +3 -5
- package/lib/module/utils/argsUtils.js.map +1 -1
- package/lib/module/utils/errorUtils.js +6 -9
- package/lib/module/utils/errorUtils.js.map +1 -1
- package/lib/module/utils/jsUtils.js +1 -0
- package/lib/module/utils/jsUtils.js.map +1 -1
- package/lib/module/utils/longTasksUtils.js +2 -5
- package/lib/module/utils/longTasksUtils.js.map +1 -1
- package/lib/module/utils/time-provider/DefaultTimeProvider.js +5 -13
- package/lib/module/utils/time-provider/DefaultTimeProvider.js.map +1 -1
- package/lib/module/utils/time-provider/TimeProvider.js +1 -9
- package/lib/module/utils/time-provider/TimeProvider.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/DdSdkReactNative.d.ts +1 -0
- package/lib/typescript/DdSdkReactNative.d.ts.map +1 -0
- package/lib/typescript/DdSdkReactNativeConfiguration.d.ts +1 -0
- package/lib/typescript/DdSdkReactNativeConfiguration.d.ts.map +1 -0
- package/lib/typescript/InternalLog.d.ts +1 -0
- package/lib/typescript/InternalLog.d.ts.map +1 -0
- package/lib/typescript/ProxyConfiguration.d.ts +1 -0
- package/lib/typescript/ProxyConfiguration.d.ts.map +1 -0
- package/lib/typescript/SdkVerbosity.d.ts +1 -0
- package/lib/typescript/SdkVerbosity.d.ts.map +1 -0
- package/lib/typescript/TrackingConsent.d.ts +1 -0
- package/lib/typescript/TrackingConsent.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/logs/DdLogs.d.ts +1 -0
- package/lib/typescript/logs/DdLogs.d.ts.map +1 -0
- package/lib/typescript/logs/eventMapper.d.ts +1 -0
- package/lib/typescript/logs/eventMapper.d.ts.map +1 -0
- package/lib/typescript/logs/types.d.ts +6 -1
- package/lib/typescript/logs/types.d.ts.map +1 -0
- package/lib/typescript/nativeModulesTypes.d.ts +3 -1
- package/lib/typescript/nativeModulesTypes.d.ts.map +1 -0
- package/lib/typescript/rum/DdAttributes.d.ts +14 -0
- package/lib/typescript/rum/DdAttributes.d.ts.map +1 -0
- package/lib/typescript/rum/DdRum.d.ts +3 -2
- package/lib/typescript/rum/DdRum.d.ts.map +1 -0
- package/lib/typescript/rum/eventMappers/actionEventMapper.d.ts +1 -0
- package/lib/typescript/rum/eventMappers/actionEventMapper.d.ts.map +1 -0
- package/lib/typescript/rum/eventMappers/errorEventMapper.d.ts +3 -0
- package/lib/typescript/rum/eventMappers/errorEventMapper.d.ts.map +1 -0
- package/lib/typescript/rum/eventMappers/resourceEventMapper.d.ts +1 -0
- package/lib/typescript/rum/eventMappers/resourceEventMapper.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/DdRumErrorTracking.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/DdRumErrorTracking.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts +2 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts +2 -1
- package/lib/typescript/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.d.ts.map +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +1 -0
- package/lib/typescript/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts.map +1 -0
- package/lib/typescript/rum/types.d.ts +1 -0
- package/lib/typescript/rum/types.d.ts.map +1 -0
- package/lib/typescript/sdk/AttributesSingleton/AttributesSingleton.d.ts +1 -0
- package/lib/typescript/sdk/AttributesSingleton/AttributesSingleton.d.ts.map +1 -0
- package/lib/typescript/sdk/AttributesSingleton/types.d.ts +1 -0
- package/lib/typescript/sdk/AttributesSingleton/types.d.ts.map +1 -0
- package/lib/typescript/sdk/DatadogProvider/Buffer/BoundedBuffer.d.ts +1 -0
- package/lib/typescript/sdk/DatadogProvider/Buffer/BoundedBuffer.d.ts.map +1 -0
- package/lib/typescript/sdk/DatadogProvider/Buffer/BufferSingleton.d.ts +1 -0
- package/lib/typescript/sdk/DatadogProvider/Buffer/BufferSingleton.d.ts.map +1 -0
- package/lib/typescript/sdk/DatadogProvider/Buffer/DatadogBuffer.d.ts +1 -0
- package/lib/typescript/sdk/DatadogProvider/Buffer/DatadogBuffer.d.ts.map +1 -0
- package/lib/typescript/sdk/DatadogProvider/Buffer/PassThroughBuffer.d.ts +1 -0
- package/lib/typescript/sdk/DatadogProvider/Buffer/PassThroughBuffer.d.ts.map +1 -0
- package/lib/typescript/sdk/DatadogProvider/Buffer/bufferNativeCall.d.ts +1 -0
- package/lib/typescript/sdk/DatadogProvider/Buffer/bufferNativeCall.d.ts.map +1 -0
- package/lib/typescript/sdk/DatadogProvider/DatadogProvider.d.ts +1 -0
- package/lib/typescript/sdk/DatadogProvider/DatadogProvider.d.ts.map +1 -0
- package/lib/typescript/sdk/DdSdk.d.ts +1 -0
- package/lib/typescript/sdk/DdSdk.d.ts.map +1 -0
- package/lib/typescript/sdk/EventMappers/EventMapper.d.ts +1 -0
- package/lib/typescript/sdk/EventMappers/EventMapper.d.ts.map +1 -0
- package/lib/typescript/sdk/EventMappers/utils/deepClone.d.ts +1 -0
- package/lib/typescript/sdk/EventMappers/utils/deepClone.d.ts.map +1 -0
- package/lib/typescript/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts +1 -0
- package/lib/typescript/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts.map +1 -0
- package/lib/typescript/sdk/GlobalState/GlobalState.d.ts +1 -0
- package/lib/typescript/sdk/GlobalState/GlobalState.d.ts.map +1 -0
- package/lib/typescript/sdk/UserInfoSingleton/UserInfoSingleton.d.ts +1 -0
- package/lib/typescript/sdk/UserInfoSingleton/UserInfoSingleton.d.ts.map +1 -0
- package/lib/typescript/sdk/UserInfoSingleton/types.d.ts +1 -0
- package/lib/typescript/sdk/UserInfoSingleton/types.d.ts.map +1 -0
- package/lib/typescript/specs/NativeDdLogs.d.ts +1 -0
- package/lib/typescript/specs/NativeDdLogs.d.ts.map +1 -0
- package/lib/typescript/specs/NativeDdRum.d.ts +3 -1
- package/lib/typescript/specs/NativeDdRum.d.ts.map +1 -0
- package/lib/typescript/specs/NativeDdSdk.d.ts +1 -0
- package/lib/typescript/specs/NativeDdSdk.d.ts.map +1 -0
- package/lib/typescript/specs/NativeDdTrace.d.ts +1 -0
- package/lib/typescript/specs/NativeDdTrace.d.ts.map +1 -0
- package/lib/typescript/trace/DdTrace.d.ts +1 -0
- package/lib/typescript/trace/DdTrace.d.ts.map +1 -0
- package/lib/typescript/types.d.ts +1 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/lib/typescript/utils/Timer.d.ts +1 -0
- package/lib/typescript/utils/Timer.d.ts.map +1 -0
- package/lib/typescript/utils/argsUtils.d.ts +1 -0
- package/lib/typescript/utils/argsUtils.d.ts.map +1 -0
- package/lib/typescript/utils/errorUtils.d.ts +1 -0
- package/lib/typescript/utils/errorUtils.d.ts.map +1 -0
- package/lib/typescript/utils/jsUtils.d.ts +1 -0
- package/lib/typescript/utils/jsUtils.d.ts.map +1 -0
- package/lib/typescript/utils/longTasksUtils.d.ts +1 -0
- package/lib/typescript/utils/longTasksUtils.d.ts.map +1 -0
- package/lib/typescript/utils/time-provider/DefaultTimeProvider.d.ts +1 -0
- package/lib/typescript/utils/time-provider/DefaultTimeProvider.d.ts.map +1 -0
- package/lib/typescript/utils/time-provider/TimeProvider.d.ts +1 -0
- package/lib/typescript/utils/time-provider/TimeProvider.d.ts.map +1 -0
- package/lib/typescript/version.d.ts +2 -1
- package/lib/typescript/version.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/__tests__/DdSdkReactNative.test.tsx +2 -1
- package/src/__tests__/rum/instrumentation/DdRumErrorTracking.test.tsx +32 -16
- package/src/__tests__/rum/instrumentation/DdRumUserInteractionTracking.test.tsx +17 -15
- package/src/logs/DdLogs.ts +25 -8
- package/src/logs/__tests__/DdLogs.test.ts +122 -0
- package/src/logs/types.ts +5 -1
- package/src/nativeModulesTypes.ts +3 -1
- package/src/rum/DdAttributes.ts +20 -0
- package/src/rum/DdRum.ts +11 -6
- package/src/rum/__tests__/DdRum.test.ts +40 -4
- package/src/rum/eventMappers/errorEventMapper.ts +2 -0
- package/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx +33 -10
- package/src/rum/instrumentation/interactionTracking/getJsxRuntime.ts +10 -3
- package/src/sdk/DatadogProvider/__tests__/initialization.test.tsx +1 -1
- package/src/specs/NativeDdRum.ts +3 -1
- package/src/version.ts +1 -1
- package/android/src/main/kotlin/com/datadog/reactnative/VitalFrameCallback.kt +0 -41
|
@@ -3,39 +3,32 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
|
|
6
|
+
exports.getJSONConfiguration = exports.formatPropagatorType = exports.FileBasedConfiguration = void 0;
|
|
8
7
|
var _DdSdkReactNativeConfiguration = require("../../DdSdkReactNativeConfiguration");
|
|
9
|
-
|
|
10
8
|
var _SdkVerbosity = require("../../SdkVerbosity");
|
|
11
|
-
|
|
12
9
|
var _TrackingConsent = require("../../TrackingConsent");
|
|
13
|
-
|
|
14
10
|
var _types = require("../../rum/types");
|
|
15
|
-
|
|
16
11
|
/*
|
|
17
12
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
18
13
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
19
14
|
* Copyright 2016-Present Datadog, Inc.
|
|
20
15
|
*/
|
|
16
|
+
|
|
21
17
|
class FileBasedConfiguration extends _DdSdkReactNativeConfiguration.DatadogProviderConfiguration {
|
|
22
18
|
constructor(params) {
|
|
23
|
-
const configuration = getJSONConfiguration(params
|
|
19
|
+
const configuration = getJSONConfiguration(params?.configuration);
|
|
24
20
|
super(configuration.clientToken, configuration.env, configuration.applicationId, configuration.trackInteractions, configuration.trackResources, configuration.trackErrors, configuration.trackingConsent);
|
|
25
21
|
this.longTaskThresholdMs = configuration.longTaskThresholdMs || _DdSdkReactNativeConfiguration.DEFAULTS.longTaskThresholdMs;
|
|
26
22
|
this.verbosity = configuration.verbosity;
|
|
27
23
|
this.actionNameAttribute = configuration.actionNameAttribute;
|
|
28
24
|
this.resourceTracingSamplingRate = configuration.resourceTracingSamplingRate || _DdSdkReactNativeConfiguration.DEFAULTS.resourceTracingSamplingRate;
|
|
29
25
|
this.firstPartyHosts = configuration.firstPartyHosts || _DdSdkReactNativeConfiguration.DEFAULTS.getFirstPartyHosts();
|
|
30
|
-
this.errorEventMapper =
|
|
31
|
-
this.resourceEventMapper =
|
|
32
|
-
this.actionEventMapper =
|
|
26
|
+
this.errorEventMapper = params?.errorEventMapper || _DdSdkReactNativeConfiguration.DEFAULTS.errorEventMapper;
|
|
27
|
+
this.resourceEventMapper = params?.resourceEventMapper || _DdSdkReactNativeConfiguration.DEFAULTS.resourceEventMapper;
|
|
28
|
+
this.actionEventMapper = params?.actionEventMapper || _DdSdkReactNativeConfiguration.DEFAULTS.actionEventMapper;
|
|
33
29
|
}
|
|
34
|
-
|
|
35
30
|
}
|
|
36
|
-
|
|
37
31
|
exports.FileBasedConfiguration = FileBasedConfiguration;
|
|
38
|
-
|
|
39
32
|
const resolveJSONConfiguration = userSpecifiedConfiguration => {
|
|
40
33
|
if (userSpecifiedConfiguration === undefined || userSpecifiedConfiguration === null) {
|
|
41
34
|
try {
|
|
@@ -43,7 +36,6 @@ const resolveJSONConfiguration = userSpecifiedConfiguration => {
|
|
|
43
36
|
// /!\ We have to write the require this way as dynamic requires are not supported by Hermes.
|
|
44
37
|
// eslint-disable-next-line global-require, @typescript-eslint/no-var-requires
|
|
45
38
|
const jsonContent = require('../../../../../../datadog-configuration.json');
|
|
46
|
-
|
|
47
39
|
if (typeof jsonContent !== 'object' || !jsonContent['configuration']) {
|
|
48
40
|
console.error(`Failed to parse the Datadog configuration file located at the root of the project.
|
|
49
41
|
Your configuration must validate the node_modules/@datadog/mobile-react-native/datadog-configuration.schema.json JSON schema.
|
|
@@ -53,7 +45,6 @@ You can use VSCode to check your configuration by adding the following line to y
|
|
|
53
45
|
}`);
|
|
54
46
|
return {};
|
|
55
47
|
}
|
|
56
|
-
|
|
57
48
|
return jsonContent.configuration;
|
|
58
49
|
} catch (error) {
|
|
59
50
|
console.error(`Failed to read Datadog configuration file at the root of the project.
|
|
@@ -64,7 +55,6 @@ new FileBasedConfiguration({configuration: require('./file/to/configuration-file
|
|
|
64
55
|
return {};
|
|
65
56
|
}
|
|
66
57
|
}
|
|
67
|
-
|
|
68
58
|
if (typeof userSpecifiedConfiguration !== 'object' || !userSpecifiedConfiguration['configuration']) {
|
|
69
59
|
console.error(`Failed to parse the Datadog configuration file you provided.
|
|
70
60
|
Your configuration must validate the node_modules/@datadog/mobile-react-native/datadog-configuration.schema.json JSON schema.
|
|
@@ -74,10 +64,8 @@ You can use VSCode to check your configuration by adding the following line to y
|
|
|
74
64
|
}`);
|
|
75
65
|
return {};
|
|
76
66
|
}
|
|
77
|
-
|
|
78
67
|
return userSpecifiedConfiguration['configuration'];
|
|
79
68
|
};
|
|
80
|
-
|
|
81
69
|
const getJSONConfiguration = userSpecifiedConfiguration => {
|
|
82
70
|
const configuration = resolveJSONConfiguration(userSpecifiedConfiguration);
|
|
83
71
|
return {
|
|
@@ -95,14 +83,11 @@ const getJSONConfiguration = userSpecifiedConfiguration => {
|
|
|
95
83
|
firstPartyHosts: buildFirstPartyHosts(configuration.firstPartyHosts)
|
|
96
84
|
};
|
|
97
85
|
};
|
|
98
|
-
|
|
99
86
|
exports.getJSONConfiguration = getJSONConfiguration;
|
|
100
|
-
|
|
101
87
|
const buildFirstPartyHosts = firstPartyHosts => {
|
|
102
88
|
if (!firstPartyHosts) {
|
|
103
89
|
return undefined;
|
|
104
90
|
}
|
|
105
|
-
|
|
106
91
|
try {
|
|
107
92
|
return firstPartyHosts.map(({
|
|
108
93
|
match,
|
|
@@ -119,92 +104,75 @@ The first party hosts will not be set for this session.
|
|
|
119
104
|
return undefined;
|
|
120
105
|
}
|
|
121
106
|
};
|
|
122
|
-
|
|
123
107
|
const formatPropagatorType = propagatorType => {
|
|
124
108
|
switch (propagatorType.toLowerCase()) {
|
|
125
109
|
case 'b3':
|
|
126
110
|
{
|
|
127
111
|
return _types.PropagatorType.B3;
|
|
128
112
|
}
|
|
129
|
-
|
|
130
113
|
case 'b3multi':
|
|
131
114
|
{
|
|
132
115
|
return _types.PropagatorType.B3MULTI;
|
|
133
116
|
}
|
|
134
|
-
|
|
135
117
|
case 'datadog':
|
|
136
118
|
{
|
|
137
119
|
return _types.PropagatorType.DATADOG;
|
|
138
120
|
}
|
|
139
|
-
|
|
140
121
|
case 'tracecontext':
|
|
141
122
|
{
|
|
142
123
|
return _types.PropagatorType.TRACECONTEXT;
|
|
143
124
|
}
|
|
144
|
-
|
|
145
125
|
default:
|
|
146
126
|
{
|
|
147
127
|
throw new Error(`Failed to parse propagator type ${propagatorType}.`);
|
|
148
128
|
}
|
|
149
129
|
}
|
|
150
130
|
};
|
|
151
|
-
|
|
152
131
|
exports.formatPropagatorType = formatPropagatorType;
|
|
153
|
-
|
|
154
132
|
const buildTrackingConsent = trackingConsent => {
|
|
155
133
|
if (trackingConsent === undefined) {
|
|
156
134
|
return undefined;
|
|
157
135
|
}
|
|
158
|
-
|
|
159
136
|
switch (trackingConsent.toLowerCase()) {
|
|
160
137
|
case 'granted':
|
|
161
138
|
{
|
|
162
139
|
return _TrackingConsent.TrackingConsent.GRANTED;
|
|
163
140
|
}
|
|
164
|
-
|
|
165
141
|
case 'pending':
|
|
166
142
|
{
|
|
167
143
|
return _TrackingConsent.TrackingConsent.PENDING;
|
|
168
144
|
}
|
|
169
|
-
|
|
170
145
|
case 'not_granted':
|
|
171
146
|
{
|
|
172
147
|
return _TrackingConsent.TrackingConsent.NOT_GRANTED;
|
|
173
148
|
}
|
|
174
|
-
|
|
175
149
|
default:
|
|
176
150
|
{
|
|
177
151
|
return _DdSdkReactNativeConfiguration.DEFAULTS.trackingConsent;
|
|
178
152
|
}
|
|
179
153
|
}
|
|
180
154
|
};
|
|
181
|
-
|
|
182
155
|
const buildSdkVerbosity = verbosity => {
|
|
183
156
|
if (verbosity === undefined) {
|
|
184
157
|
return undefined;
|
|
185
158
|
}
|
|
186
|
-
|
|
187
159
|
switch (verbosity.toLowerCase()) {
|
|
188
160
|
case 'debug':
|
|
189
161
|
{
|
|
190
162
|
return _SdkVerbosity.SdkVerbosity.DEBUG;
|
|
191
163
|
}
|
|
192
|
-
|
|
193
164
|
case 'info':
|
|
194
165
|
{
|
|
195
166
|
return _SdkVerbosity.SdkVerbosity.INFO;
|
|
196
167
|
}
|
|
197
|
-
|
|
198
168
|
case 'warn':
|
|
199
169
|
{
|
|
200
170
|
return _SdkVerbosity.SdkVerbosity.WARN;
|
|
201
171
|
}
|
|
202
|
-
|
|
203
172
|
case 'error':
|
|
204
173
|
{
|
|
205
174
|
return _SdkVerbosity.SdkVerbosity.ERROR;
|
|
206
175
|
}
|
|
207
|
-
|
|
208
176
|
default:
|
|
209
177
|
{
|
|
210
178
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["FileBasedConfiguration.ts"],"names":["FileBasedConfiguration","DatadogProviderConfiguration","constructor","params","configuration","getJSONConfiguration","clientToken","env","applicationId","trackInteractions","trackResources","trackErrors","trackingConsent","longTaskThresholdMs","DEFAULTS","verbosity","actionNameAttribute","resourceTracingSamplingRate","firstPartyHosts","getFirstPartyHosts","errorEventMapper","resourceEventMapper","actionEventMapper","resolveJSONConfiguration","userSpecifiedConfiguration","undefined","jsonContent","require","console","error","buildTrackingConsent","buildSdkVerbosity","buildFirstPartyHosts","map","match","propagatorTypes","formatPropagatorType","message","propagatorType","toLowerCase","PropagatorType","B3","B3MULTI","DATADOG","TRACECONTEXT","Error","TrackingConsent","GRANTED","PENDING","NOT_GRANTED","SdkVerbosity","DEBUG","INFO","WARN","ERROR"],"mappings":";;;;;;;AAOA;;AAIA;;AACA;;AAIA;;AAhBA;AACA;AACA;AACA;AACA;AAcO,MAAMA,sBAAN,SAAqCC,2DAArC,CAAkE;AACrEC,EAAAA,WAAW,CAACC,MAAD,EAKR;AACC,UAAMC,aAAa,GAAGC,oBAAoB,CAACF,MAAD,aAACA,MAAD,uBAACA,MAAM,CAAEC,aAAT,CAA1C;AACA,UACIA,aAAa,CAACE,WADlB,EAEIF,aAAa,CAACG,GAFlB,EAGIH,aAAa,CAACI,aAHlB,EAIIJ,aAAa,CAACK,iBAJlB,EAKIL,aAAa,CAACM,cALlB,EAMIN,aAAa,CAACO,WANl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I,SAAK,OAAL;AAAc;AACV,eAAOW,2BAAaC,KAApB;AACH;;AACD,SAAK,MAAL;AAAa;AACT,eAAOD,2BAAaE,IAApB;AACH;;AACD,SAAK,MAAL;AAAa;AACT,eAAOF,2BAAaG,IAApB;AACH;;AACD,SAAK,OAAL;AAAc;AACV,eAAOH,2BAAaI,KAApB;AACH;;AACD;AAAS;AACL,eAAO7B,SAAP;AACH;AAfL;AAiBH,CAvBD","sourcesContent":["/*\n * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2016-Present Datadog, Inc.\n */\n\nimport type { FirstPartyHostsConfiguration } from '../../DdSdkReactNativeConfiguration';\nimport {\n DatadogProviderConfiguration,\n DEFAULTS\n} from '../../DdSdkReactNativeConfiguration';\nimport { SdkVerbosity } from '../../SdkVerbosity';\nimport { TrackingConsent } from '../../TrackingConsent';\nimport type { ActionEventMapper } from '../../rum/eventMappers/actionEventMapper';\nimport type { ErrorEventMapper } from '../../rum/eventMappers/errorEventMapper';\nimport type { ResourceEventMapper } from '../../rum/eventMappers/resourceEventMapper';\nimport { PropagatorType } from '../../rum/types';\n\nexport class FileBasedConfiguration extends DatadogProviderConfiguration {\n constructor(params?: {\n configuration?: unknown;\n errorEventMapper?: ErrorEventMapper;\n resourceEventMapper?: ResourceEventMapper;\n actionEventMapper?: ActionEventMapper;\n }) {\n const configuration = getJSONConfiguration(params?.configuration);\n super(\n configuration.clientToken,\n configuration.env,\n configuration.applicationId,\n configuration.trackInteractions,\n configuration.trackResources,\n configuration.trackErrors,\n configuration.trackingConsent\n );\n this.longTaskThresholdMs =\n configuration.longTaskThresholdMs || DEFAULTS.longTaskThresholdMs;\n this.verbosity = configuration.verbosity;\n this.actionNameAttribute = configuration.actionNameAttribute;\n this.resourceTracingSamplingRate =\n configuration.resourceTracingSamplingRate ||\n DEFAULTS.resourceTracingSamplingRate;\n this.firstPartyHosts =\n configuration.firstPartyHosts || DEFAULTS.getFirstPartyHosts();\n this.errorEventMapper =\n params?.errorEventMapper || DEFAULTS.errorEventMapper;\n this.resourceEventMapper =\n params?.resourceEventMapper || DEFAULTS.resourceEventMapper;\n this.actionEventMapper =\n params?.actionEventMapper || DEFAULTS.actionEventMapper;\n }\n}\n\nconst resolveJSONConfiguration = (\n userSpecifiedConfiguration: unknown\n): Record<string, any> => {\n if (\n userSpecifiedConfiguration === undefined ||\n userSpecifiedConfiguration === null\n ) {\n try {\n // This corresponds to a file located at the root of a RN project.\n // /!\\ We have to write the require this way as dynamic requires are not supported by Hermes.\n // eslint-disable-next-line global-require, @typescript-eslint/no-var-requires\n const jsonContent = require('../../../../../../datadog-configuration.json');\n\n if (\n typeof jsonContent !== 'object' ||\n !jsonContent['configuration']\n ) {\n console.error(`Failed to parse the Datadog configuration file located at the root of the project.\nYour configuration must validate the node_modules/@datadog/mobile-react-native/datadog-configuration.schema.json JSON schema.\nYou can use VSCode to check your configuration by adding the following line to your JSON file:\n{\n \"$schema\": \"./node_modules/@datadog/mobile-react-native/datadog-configuration.schema.json\",\n}`);\n\n return {};\n }\n\n return jsonContent.configuration as Record<string, any>;\n } catch (error) {\n console.error(`Failed to read Datadog configuration file at the root of the project.\nIf you don't have a datadog-configuration.json file at the same level as your node_modules directory,\\\nplease use the following syntax:\\n\nnew FileBasedConfiguration({configuration: require('./file/to/configuration-file.json')})\n`);\n return {};\n }\n }\n if (\n typeof userSpecifiedConfiguration !== 'object' ||\n !(userSpecifiedConfiguration as any)['configuration']\n ) {\n console.error(`Failed to parse the Datadog configuration file you provided.\nYour configuration must validate the node_modules/@datadog/mobile-react-native/datadog-configuration.schema.json JSON schema.\nYou can use VSCode to check your configuration by adding the following line to your JSON file:\n{\n \"$schema\": \"./node_modules/@datadog/mobile-react-native/datadog-configuration.schema.json\",\n}`);\n\n return {};\n }\n\n return (userSpecifiedConfiguration as any)['configuration'] as Record<\n string,\n any\n >;\n};\n\nexport const getJSONConfiguration = (\n userSpecifiedConfiguration: unknown\n): {\n clientToken: string;\n env: string;\n applicationId: string;\n trackInteractions: boolean | undefined;\n trackResources: boolean | undefined;\n trackErrors: boolean | undefined;\n trackingConsent: TrackingConsent | undefined;\n longTaskThresholdMs: number | undefined;\n verbosity: SdkVerbosity | undefined;\n actionNameAttribute: string | undefined;\n resourceTracingSamplingRate: number | undefined;\n firstPartyHosts: FirstPartyHostsConfiguration | undefined;\n} => {\n const configuration = resolveJSONConfiguration(userSpecifiedConfiguration);\n\n return {\n clientToken: configuration.clientToken,\n env: configuration.env,\n applicationId: configuration.applicationId,\n trackInteractions: configuration.trackInteractions,\n trackResources: configuration.trackResources,\n trackErrors: configuration.trackErrors,\n trackingConsent: buildTrackingConsent(configuration.trackingConsent),\n longTaskThresholdMs: configuration.longTaskThresholdMs,\n verbosity: buildSdkVerbosity(configuration.verbosity),\n actionNameAttribute: configuration.actionNameAttribute,\n resourceTracingSamplingRate: configuration.resourceTracingSamplingRate,\n firstPartyHosts: buildFirstPartyHosts(configuration.firstPartyHosts)\n };\n};\n\nconst buildFirstPartyHosts = (\n firstPartyHosts: { match: string; propagatorTypes: string[] }[] | undefined\n): FirstPartyHostsConfiguration | undefined => {\n if (!firstPartyHosts) {\n return undefined;\n }\n\n try {\n return firstPartyHosts.map(({ match, propagatorTypes }) => ({\n match,\n propagatorTypes: propagatorTypes.map(formatPropagatorType)\n }));\n } catch (error) {\n console.error(`Failed to parse the first party hosts from the Datadog configuration file you provided:\n${(error as any).message}\nThe first party hosts will not be set for this session.\n`);\n return undefined;\n }\n};\n\nexport const formatPropagatorType = (\n propagatorType: string\n): PropagatorType => {\n switch (propagatorType.toLowerCase()) {\n case 'b3': {\n return PropagatorType.B3;\n }\n case 'b3multi': {\n return PropagatorType.B3MULTI;\n }\n case 'datadog': {\n return PropagatorType.DATADOG;\n }\n case 'tracecontext': {\n return PropagatorType.TRACECONTEXT;\n }\n default: {\n throw new Error(\n `Failed to parse propagator type ${propagatorType}.`\n );\n }\n }\n};\n\nconst buildTrackingConsent = (\n trackingConsent: string | undefined\n): TrackingConsent | undefined => {\n if (trackingConsent === undefined) {\n return undefined;\n }\n switch (trackingConsent.toLowerCase()) {\n case 'granted': {\n return TrackingConsent.GRANTED;\n }\n case 'pending': {\n return TrackingConsent.PENDING;\n }\n case 'not_granted': {\n return TrackingConsent.NOT_GRANTED;\n }\n default: {\n return DEFAULTS.trackingConsent;\n }\n }\n};\n\nconst buildSdkVerbosity = (\n verbosity: string | undefined\n): SdkVerbosity | undefined => {\n if (verbosity === undefined) {\n return undefined;\n }\n switch (verbosity.toLowerCase()) {\n case 'debug': {\n return SdkVerbosity.DEBUG;\n }\n case 'info': {\n return SdkVerbosity.INFO;\n }\n case 'warn': {\n return SdkVerbosity.WARN;\n }\n case 'error': {\n return SdkVerbosity.ERROR;\n }\n default: {\n return undefined;\n }\n }\n};\n"]}
|
|
1
|
+
{"version":3,"names":["_DdSdkReactNativeConfiguration","require","_SdkVerbosity","_TrackingConsent","_types","FileBasedConfiguration","DatadogProviderConfiguration","constructor","params","configuration","getJSONConfiguration","clientToken","env","applicationId","trackInteractions","trackResources","trackErrors","trackingConsent","longTaskThresholdMs","DEFAULTS","verbosity","actionNameAttribute","resourceTracingSamplingRate","firstPartyHosts","getFirstPartyHosts","errorEventMapper","resourceEventMapper","actionEventMapper","exports","resolveJSONConfiguration","userSpecifiedConfiguration","undefined","jsonContent","console","error","buildTrackingConsent","buildSdkVerbosity","buildFirstPartyHosts","map","match","propagatorTypes","formatPropagatorType","message","propagatorType","toLowerCase","PropagatorType","B3","B3MULTI","DATADOG","TRACECONTEXT","Error","TrackingConsent","GRANTED","PENDING","NOT_GRANTED","SdkVerbosity","DEBUG","INFO","WARN","ERROR"],"sourceRoot":"../../../../src","sources":["sdk/FileBasedConfiguration/FileBasedConfiguration.ts"],"mappings":";;;;;;AAOA,IAAAA,8BAAA,GAAAC,OAAA;AAIA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AA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Ae,CAACC,OAAO;MAClC;IACA,KAAK,SAAS;MAAE;QACZ,OAAOD,gCAAe,CAACE,OAAO;MAClC;IACA,KAAK,aAAa;MAAE;QAChB,OAAOF,gCAAe,CAACG,WAAW;MACtC;IACA;MAAS;QACL,OAAOnC,uCAAQ,CAACF,eAAe;MACnC;EACJ;AACJ,CAAC;AAED,MAAMmB,iBAAiB,GACnBhB,SAA6B,IACF;EAC3B,IAAIA,SAAS,KAAKW,SAAS,EAAE;IACzB,OAAOA,SAAS;EACpB;EACA,QAAQX,SAAS,CAACwB,WAAW,CAAC,CAAC;IAC3B,KAAK,OAAO;MAAE;QACV,OAAOW,0BAAY,CAACC,KAAK;MAC7B;IACA,KAAK,MAAM;MAAE;QACT,OAAOD,0BAAY,CAACE,IAAI;MAC5B;IACA,KAAK,MAAM;MAAE;QACT,OAAOF,0BAAY,CAACG,IAAI;MAC5B;IACA,KAAK,OAAO;MAAE;QACV,OAAOH,0BAAY,CAACI,KAAK;MAC7B;IACA;MAAS;QACL,OAAO5B,SAAS;MACpB;EACJ;AACJ,CAAC","ignoreList":[]}
|
|
@@ -4,9 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.GlobalState = void 0;
|
|
7
|
-
|
|
8
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
-
|
|
10
7
|
/*
|
|
11
8
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
12
9
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
@@ -18,21 +15,19 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
18
15
|
* the SDK classes.
|
|
19
16
|
*/
|
|
20
17
|
class GlobalState {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
/**
|
|
19
|
+
* `true` if the SDK is initialized, `false` otherwise.
|
|
20
|
+
*/
|
|
21
|
+
isInitialized = false;
|
|
24
22
|
|
|
23
|
+
// Singleton implementation
|
|
24
|
+
static _instance = undefined;
|
|
25
25
|
static get instance() {
|
|
26
26
|
if (this._instance === undefined) {
|
|
27
27
|
this._instance = new GlobalState();
|
|
28
28
|
}
|
|
29
|
-
|
|
30
29
|
return this._instance;
|
|
31
30
|
}
|
|
32
|
-
|
|
33
31
|
}
|
|
34
|
-
|
|
35
32
|
exports.GlobalState = GlobalState;
|
|
36
|
-
|
|
37
|
-
_defineProperty(GlobalState, "_instance", undefined);
|
|
38
33
|
//# sourceMappingURL=GlobalState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["GlobalState","isInitialized","_instance","undefined","instance","exports"],"sourceRoot":"../../../../src","sources":["sdk/GlobalState/GlobalState.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACO,MAAMA,WAAW,CAAC;EACrB;AACJ;AACA;EACWC,aAAa,GAAG,KAAK;;EAE5B;EACA,OAAeC,SAAS,GAA4BC,SAAS;EAC7D,WAAkBC,QAAQA,CAAA,EAAgB;IACtC,IAAI,IAAI,CAACF,SAAS,KAAKC,SAAS,EAAE;MAC9B,IAAI,CAACD,SAAS,GAAG,IAAIF,WAAW,CAAC,CAAC;IACtC;IAEA,OAAO,IAAI,CAACE,SAAS;EACzB;AACJ;AAACG,OAAA,CAAAL,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -4,40 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UserInfoSingleton = void 0;
|
|
7
|
-
|
|
8
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
-
|
|
10
7
|
/*
|
|
11
8
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
12
9
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
13
10
|
* Copyright 2016-Present Datadog, Inc.
|
|
14
11
|
*/
|
|
15
|
-
class UserInfoProvider {
|
|
16
|
-
constructor() {
|
|
17
|
-
_defineProperty(this, "userInfo", {});
|
|
18
|
-
|
|
19
|
-
_defineProperty(this, "setUserInfo", userInfo => {
|
|
20
|
-
this.userInfo = userInfo;
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
_defineProperty(this, "getUserInfo", () => {
|
|
24
|
-
return this.userInfo;
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
12
|
|
|
13
|
+
class UserInfoProvider {
|
|
14
|
+
userInfo = {};
|
|
15
|
+
setUserInfo = userInfo => {
|
|
16
|
+
this.userInfo = userInfo;
|
|
17
|
+
};
|
|
18
|
+
getUserInfo = () => {
|
|
19
|
+
return this.userInfo;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
class UserInfoSingleton {
|
|
23
|
+
static userInfoProvider = new UserInfoProvider();
|
|
24
|
+
static getInstance = () => {
|
|
25
|
+
return UserInfoSingleton.userInfoProvider;
|
|
26
|
+
};
|
|
27
|
+
static reset = () => {
|
|
28
|
+
UserInfoSingleton.userInfoProvider = new UserInfoProvider();
|
|
29
|
+
};
|
|
28
30
|
}
|
|
29
|
-
|
|
30
|
-
class UserInfoSingleton {}
|
|
31
|
-
|
|
32
31
|
exports.UserInfoSingleton = UserInfoSingleton;
|
|
33
|
-
|
|
34
|
-
_defineProperty(UserInfoSingleton, "userInfoProvider", new UserInfoProvider());
|
|
35
|
-
|
|
36
|
-
_defineProperty(UserInfoSingleton, "getInstance", () => {
|
|
37
|
-
return UserInfoSingleton.userInfoProvider;
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
_defineProperty(UserInfoSingleton, "reset", () => {
|
|
41
|
-
UserInfoSingleton.userInfoProvider = new UserInfoProvider();
|
|
42
|
-
});
|
|
43
32
|
//# sourceMappingURL=UserInfoSingleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["UserInfoProvider","userInfo","setUserInfo","getUserInfo","UserInfoSingleton","userInfoProvider","getInstance","reset","exports"],"sourceRoot":"../../../../src","sources":["sdk/UserInfoSingleton/UserInfoSingleton.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;;AAIA,MAAMA,gBAAgB,CAAC;EACXC,QAAQ,GAAa,CAAC,CAAC;EAE/BC,WAAW,GAAID,QAAkB,IAAK;IAClC,IAAI,CAACA,QAAQ,GAAGA,QAAQ;EAC5B,CAAC;EAEDE,WAAW,GAAGA,CAAA,KAAgB;IAC1B,OAAO,IAAI,CAACF,QAAQ;EACxB,CAAC;AACL;AAEO,MAAMG,iBAAiB,CAAC;EAC3B,OAAeC,gBAAgB,GAAG,IAAIL,gBAAgB,CAAC,CAAC;EAExD,OAAOM,WAAW,GAAGA,CAAA,KAAwB;IACzC,OAAOF,iBAAiB,CAACC,gBAAgB;EAC7C,CAAC;EAED,OAAOE,KAAK,GAAGA,CAAA,KAAM;IACjBH,iBAAiB,CAACC,gBAAgB,GAAG,IAAIL,gBAAgB,CAAC,CAAC;EAC/D,CAAC;AACL;AAACQ,OAAA,CAAAJ,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["sdk/UserInfoSingleton/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -4,18 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
/*
|
|
11
9
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
12
10
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
13
11
|
* Copyright 2016-Present Datadog, Inc.
|
|
14
12
|
*/
|
|
15
|
-
|
|
16
13
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
14
|
+
/**
|
|
15
|
+
* Do not import this Spec directly, use DdNativeLogsType instead.
|
|
16
|
+
*/
|
|
17
17
|
// eslint-disable-next-line import/no-default-export
|
|
18
|
-
var _default = _reactNative.TurboModuleRegistry.get('DdLogs');
|
|
19
|
-
|
|
20
|
-
exports.default = _default;
|
|
18
|
+
var _default = exports.default = _reactNative.TurboModuleRegistry.get('DdLogs');
|
|
21
19
|
//# sourceMappingURL=NativeDdLogs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["specs/NativeDdLogs.ts"],"mappings":";;;;;;AAQA,IAAAA,YAAA,GAAAC,OAAA;AARA;AACA;AACA;AACA;AACA;AAEA;AAIA;AACA;AACA;AAiGA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACeC,gCAAmB,CAACC,GAAG,CAAO,QAAQ,CAAC","ignoreList":[]}
|
|
@@ -4,18 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
/*
|
|
11
9
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
12
10
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
13
11
|
* Copyright 2016-Present Datadog, Inc.
|
|
14
12
|
*/
|
|
15
|
-
|
|
16
13
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
14
|
+
/**
|
|
15
|
+
* Do not import this Spec directly, use DdNativeRumType instead.
|
|
16
|
+
*/
|
|
17
17
|
// eslint-disable-next-line import/no-default-export
|
|
18
|
-
var _default = _reactNative.TurboModuleRegistry.get('DdRum');
|
|
19
|
-
|
|
20
|
-
exports.default = _default;
|
|
18
|
+
var _default = exports.default = _reactNative.TurboModuleRegistry.get('DdRum');
|
|
21
19
|
//# sourceMappingURL=NativeDdRum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["specs/NativeDdRum.ts"],"mappings":";;;;;;AAQA,IAAAA,YAAA,GAAAC,OAAA;AARA;AACA;AACA;AACA;AACA;AAEA;AAIA;AACA;AACA;AAiJA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACeC,gCAAmB,CAACC,GAAG,CAAO,OAAO,CAAC","ignoreList":[]}
|
|
@@ -4,18 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
/*
|
|
11
9
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
12
10
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
13
11
|
* Copyright 2016-Present Datadog, Inc.
|
|
14
12
|
*/
|
|
15
|
-
|
|
16
13
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
14
|
+
/**
|
|
15
|
+
* Do not import this Spec directly, use DdNativeSdkType instead.
|
|
16
|
+
*/
|
|
17
17
|
// eslint-disable-next-line import/no-default-export
|
|
18
|
-
var _default = _reactNative.TurboModuleRegistry.get('DdSdk');
|
|
19
|
-
|
|
20
|
-
exports.default = _default;
|
|
18
|
+
var _default = exports.default = _reactNative.TurboModuleRegistry.get('DdSdk');
|
|
21
19
|
//# sourceMappingURL=NativeDdSdk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["specs/NativeDdSdk.ts"],"mappings":";;;;;;AAQA,IAAAA,YAAA,GAAAC,OAAA;AARA;AACA;AACA;AACA;AACA;AAEA;AAIA;AACA;AACA;AAsDA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACeC,gCAAmB,CAACC,GAAG,CAAO,OAAO,CAAC","ignoreList":[]}
|
|
@@ -4,18 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
/*
|
|
11
9
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
12
10
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
13
11
|
* Copyright 2016-Present Datadog, Inc.
|
|
14
12
|
*/
|
|
15
|
-
|
|
16
13
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
14
|
+
/**
|
|
15
|
+
* Do not import this Spec directly, use DdNativeTraceType instead.
|
|
16
|
+
*/
|
|
17
17
|
// eslint-disable-next-line import/no-default-export
|
|
18
|
-
var _default = _reactNative.TurboModuleRegistry.get('DdTrace');
|
|
19
|
-
|
|
20
|
-
exports.default = _default;
|
|
18
|
+
var _default = exports.default = _reactNative.TurboModuleRegistry.get('DdTrace');
|
|
21
19
|
//# sourceMappingURL=NativeDdTrace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["specs/NativeDdTrace.ts"],"mappings":";;;;;;AAQA,IAAAA,YAAA,GAAAC,OAAA;AARA;AACA;AACA;AACA;AACA;AAEA;AAIA;AACA;AACA;AA6BA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACeC,gCAAmB,CAACC,GAAG,CAAO,SAAS,CAAC","ignoreList":[]}
|
|
@@ -4,42 +4,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DdTrace = void 0;
|
|
7
|
-
|
|
8
7
|
var _InternalLog = require("../InternalLog");
|
|
9
|
-
|
|
10
8
|
var _SdkVerbosity = require("../SdkVerbosity");
|
|
11
|
-
|
|
12
9
|
var _bufferNativeCall = require("../sdk/DatadogProvider/Buffer/bufferNativeCall");
|
|
13
|
-
|
|
14
10
|
var _argsUtils = require("../utils/argsUtils");
|
|
15
|
-
|
|
16
11
|
var _DefaultTimeProvider = require("../utils/time-provider/DefaultTimeProvider");
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
/*
|
|
13
|
+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
14
|
+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
15
|
+
* Copyright 2016-Present Datadog, Inc.
|
|
16
|
+
*/
|
|
19
17
|
|
|
20
18
|
const timeProvider = new _DefaultTimeProvider.DefaultTimeProvider();
|
|
21
|
-
|
|
22
19
|
class DdTraceWrapper {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
_defineProperty(this, "finishSpan", (spanId, context = {}, timestampMs = timeProvider.now()) => {
|
|
35
|
-
_InternalLog.InternalLog.log(`Finishing span #${spanId}`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
36
|
-
|
|
37
|
-
return (0, _bufferNativeCall.bufferNativeCallWithId)(id => this.nativeTrace.finishSpan(id, (0, _argsUtils.validateContext)(context), timestampMs), spanId);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
|
|
20
|
+
// eslint-disable-next-line global-require, @typescript-eslint/no-var-requires
|
|
21
|
+
nativeTrace = require('../specs/NativeDdTrace').default;
|
|
22
|
+
startSpan = (operation, context = {}, timestampMs = timeProvider.now()) => {
|
|
23
|
+
const spanId = (0, _bufferNativeCall.bufferNativeCallReturningId)(() => this.nativeTrace.startSpan(operation, (0, _argsUtils.validateContext)(context), timestampMs));
|
|
24
|
+
_InternalLog.InternalLog.log(`Starting span “${operation}” #${spanId}`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
25
|
+
return spanId;
|
|
26
|
+
};
|
|
27
|
+
finishSpan = (spanId, context = {}, timestampMs = timeProvider.now()) => {
|
|
28
|
+
_InternalLog.InternalLog.log(`Finishing span #${spanId}`, _SdkVerbosity.SdkVerbosity.DEBUG);
|
|
29
|
+
return (0, _bufferNativeCall.bufferNativeCallWithId)(id => this.nativeTrace.finishSpan(id, (0, _argsUtils.validateContext)(context), timestampMs), spanId);
|
|
30
|
+
};
|
|
41
31
|
}
|
|
42
|
-
|
|
43
|
-
const DdTrace = new DdTraceWrapper();
|
|
44
|
-
exports.DdTrace = DdTrace;
|
|
32
|
+
const DdTrace = exports.DdTrace = new DdTraceWrapper();
|
|
45
33
|
//# sourceMappingURL=DdTrace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_InternalLog","require","_SdkVerbosity","_bufferNativeCall","_argsUtils","_DefaultTimeProvider","timeProvider","DefaultTimeProvider","DdTraceWrapper","nativeTrace","default","startSpan","operation","context","timestampMs","now","spanId","bufferNativeCallReturningId","validateContext","InternalLog","log","SdkVerbosity","DEBUG","finishSpan","bufferNativeCallWithId","id","DdTrace","exports"],"sourceRoot":"../../../src","sources":["trace/DdTrace.ts"],"mappings":";;;;;;AAMA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAEA,IAAA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
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DdSdkConfiguration = void 0;
|
|
7
|
-
|
|
8
7
|
/*
|
|
9
8
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
10
9
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
@@ -43,12 +42,14 @@ class DdSdkConfiguration {
|
|
|
43
42
|
this.bundleLogsWithRum = bundleLogsWithRum;
|
|
44
43
|
this.bundleLogsWithTraces = bundleLogsWithTraces;
|
|
45
44
|
}
|
|
46
|
-
|
|
47
45
|
}
|
|
46
|
+
|
|
48
47
|
/**
|
|
49
48
|
* The entry point to initialize Datadog's features.
|
|
50
49
|
*/
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
/**
|
|
52
|
+
* The entry point to use Datadog's Trace feature.
|
|
53
|
+
*/
|
|
53
54
|
exports.DdSdkConfiguration = DdSdkConfiguration;
|
|
54
55
|
//# sourceMappingURL=types.js.map
|