@datadog/mobile-react-native 2.4.1 → 2.4.3
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 +12 -4
- 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,10 +3,11 @@
|
|
|
3
3
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
4
|
* Copyright 2016-Present Datadog, Inc.
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
export default class NoOpEventsInterceptor {
|
|
7
8
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8
|
-
interceptOnPress(..._args) {
|
|
9
|
+
interceptOnPress(..._args) {
|
|
10
|
+
// NoOp
|
|
9
11
|
}
|
|
10
|
-
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=NoOpEventsInterceptor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["NoOpEventsInterceptor","interceptOnPress","_args"],"sourceRoot":"../../../../../src","sources":["rum/instrumentation/interactionTracking/NoOpEventsInterceptor.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAIA,eAAe,MAAMA,qBAAqB,CAA8B;EACpE;EACAC,gBAAgBA,CAAC,GAAGC,KAAY,EAAQ;IACpC;EAAA;AAER","ignoreList":[]}
|
|
@@ -15,19 +15,15 @@ export const areObjectShallowEqual = (objectA, objectB) => {
|
|
|
15
15
|
if (!objectA || !objectB) {
|
|
16
16
|
return objectA === objectB;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
18
|
const keys = Object.keys(objectA);
|
|
20
|
-
|
|
21
19
|
if (keys.length !== Object.keys(objectB).length) {
|
|
22
20
|
return false;
|
|
23
21
|
}
|
|
24
|
-
|
|
25
22
|
for (const key of keys) {
|
|
26
23
|
if (objectA[key] !== objectB[key]) {
|
|
27
24
|
return false;
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
|
-
|
|
31
27
|
return true;
|
|
32
28
|
};
|
|
33
29
|
//# sourceMappingURL=ShallowObjectEqualityChecker.js.map
|
package/lib/module/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["areObjectShallowEqual","objectA","objectB","keys","Object","length","key"],"sourceRoot":"../../../../../src","sources":["rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,qBAAqB,GAAGA,CACjCC,OAAmD,EACnDC,OAAmD,KACzC;EACV;EACA,IAAI,CAACD,OAAO,IAAI,CAACC,OAAO,EAAE;IACtB,OAAOD,OAAO,KAAKC,OAAO;EAC9B;EAEA,MAAMC,IAAI,GAAGC,MAAM,CAACD,IAAI,CAACF,OAAO,CAAC;EACjC,IAAIE,IAAI,CAACE,MAAM,KAAKD,MAAM,CAACD,IAAI,CAACD,OAAO,CAAC,CAACG,MAAM,EAAE;IAC7C,OAAO,KAAK;EAChB;EACA,KAAK,MAAMC,GAAG,IAAIH,IAAI,EAAE;IACpB,IAAIF,OAAO,CAACK,GAAG,CAAC,KAAKJ,OAAO,CAACI,GAAG,CAAC,EAAE;MAC/B,OAAO,KAAK;IAChB;EACJ;EACA,OAAO,IAAI;AACf,CAAC","ignoreList":[]}
|
|
@@ -3,46 +3,48 @@
|
|
|
3
3
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
4
|
* Copyright 2016-Present Datadog, Inc.
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
export const getJsxRuntimes = () => {
|
|
7
8
|
// eslint-disable-next-line global-require, @typescript-eslint/no-var-requires
|
|
8
|
-
const [major, minor] = require('react/package.json').version.split('.');
|
|
9
|
+
const [major, minor] = require('react/package.json').version.split('.');
|
|
10
|
+
// We need to check on the version of React before requiring 'react/jsx-runtime') as
|
|
9
11
|
// it might crash other exports if the export does not exist (even if there is a try/catch).
|
|
10
12
|
// See: https://github.com/facebook/metro/issues/836
|
|
11
|
-
|
|
12
|
-
|
|
13
13
|
if (!isJsxExportedInReactVersion(major, minor)) {
|
|
14
14
|
throw new Error('React version does not support new jsx transform');
|
|
15
|
-
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// /!\/!\/!\/!\/!\/!\
|
|
16
18
|
// We have to use inline require here because older React versions (below 16.14) don't have jsx-runtime.
|
|
17
19
|
// metro does not support dynamic require, so 'react/jsx-runtime' is replaced by 'react' on postinstall
|
|
18
20
|
// when react is equal or above 16.14 to avoid this require call to fail during the import phase and then
|
|
19
21
|
// disable all further imports.
|
|
20
22
|
// /!\/!\/!\/!\/!\/!\
|
|
21
23
|
//
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
let jsxDevRuntime;
|
|
25
|
+
if (__DEV__) {
|
|
26
|
+
// eslint-disable-next-line global-require, @typescript-eslint/no-var-requires
|
|
27
|
+
jsxDevRuntime = require('react/jsx-dev-runtime');
|
|
28
|
+
}
|
|
24
29
|
|
|
30
|
+
// eslint-disable-next-line global-require, @typescript-eslint/no-var-requires
|
|
25
31
|
const jsxRuntime = require('react/jsx-runtime');
|
|
26
|
-
|
|
27
|
-
if (!jsxRuntime.jsx) {
|
|
32
|
+
if (!jsxRuntime.jsx && !__DEV__) {
|
|
28
33
|
throw new Error('React jsx runtime does not export new jsx transform');
|
|
29
34
|
}
|
|
30
|
-
|
|
31
|
-
return jsxRuntime;
|
|
35
|
+
return [jsxRuntime, jsxDevRuntime];
|
|
32
36
|
};
|
|
37
|
+
|
|
33
38
|
/**
|
|
34
39
|
* JSX Transform is available for React 16.14.0 (last React 16 version) and above
|
|
35
40
|
*/
|
|
36
|
-
|
|
37
41
|
const isJsxExportedInReactVersion = (major, minor) => {
|
|
38
42
|
if (Number(major) > 16) {
|
|
39
43
|
return true;
|
|
40
44
|
}
|
|
41
|
-
|
|
42
45
|
if (Number(major) === 16 && Number(minor) > 13) {
|
|
43
46
|
return true;
|
|
44
47
|
}
|
|
45
|
-
|
|
46
48
|
return false;
|
|
47
49
|
};
|
|
48
50
|
//# sourceMappingURL=getJsxRuntime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["getJsxRuntimes","major","minor","require","version","split","isJsxExportedInReactVersion","Error","jsxDevRuntime","__DEV__","jsxRuntime","jsx","Number"],"sourceRoot":"../../../../../src","sources":["rum/instrumentation/interactionTracking/getJsxRuntime.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,cAAc,GAAGA,CAAA,KAAM;EAChC;EACA,MAAM,CAACC,KAAK,EAAEC,KAAK,CAAC,GAAGC,OAAO,CAAC,oBAAoB,CAAC,CAACC,OAAO,CAACC,KAAK,CAAC,GAAG,CAAC;EACvE;EACA;EACA;EACA,IAAI,CAACC,2BAA2B,CAACL,KAAK,EAAEC,KAAK,CAAC,EAAE;IAC5C,MAAM,IAAIK,KAAK,CAAC,kDAAkD,CAAC;EACvE;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,IAAIC,aAAa;EACjB,IAAIC,OAAO,EAAE;IACT;IACAD,aAAa,GAAGL,OAAO,CAAC,uBAAuB,CAAC;EACpD;;EAEA;EACA,MAAMO,UAAU,GAAGP,OAAO,CAAC,mBAAmB,CAAC;EAC/C,IAAI,CAACO,UAAU,CAACC,GAAG,IAAI,CAACF,OAAO,EAAE;IAC7B,MAAM,IAAIF,KAAK,CAAC,qDAAqD,CAAC;EAC1E;EAEA,OAAO,CAACG,UAAU,EAAEF,aAAa,CAAC;AACtC,CAAC;;AAED;AACA;AACA;AACA,MAAMF,2BAA2B,GAAGA,CAACL,KAAa,EAAEC,KAAa,KAAc;EAC3E,IAAIU,MAAM,CAACX,KAAK,CAAC,GAAG,EAAE,EAAE;IACpB,OAAO,IAAI;EACf;EACA,IAAIW,MAAM,CAACX,KAAK,CAAC,KAAK,EAAE,IAAIW,MAAM,CAACV,KAAK,CAAC,GAAG,EAAE,EAAE;IAC5C,OAAO,IAAI;EACf;EACA,OAAO,KAAK;AAChB,CAAC","ignoreList":[]}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
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; }
|
|
2
|
-
|
|
3
1
|
/*
|
|
4
2
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
5
3
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
6
4
|
* Copyright 2016-Present Datadog, Inc.
|
|
7
5
|
*/
|
|
6
|
+
|
|
8
7
|
import { InternalLog } from '../../../InternalLog';
|
|
9
8
|
import { SdkVerbosity } from '../../../SdkVerbosity';
|
|
10
9
|
import { firstPartyHostsRegexMapBuilder } from './distributedTracing/firstPartyHosts';
|
|
11
10
|
import { ResourceReporter } from './requestProxy/XHRProxy/DatadogRumResource/ResourceReporter';
|
|
12
11
|
import { filterDevResource } from './requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist';
|
|
13
12
|
import { XHRProxy } from './requestProxy/XHRProxy/XHRProxy';
|
|
14
|
-
|
|
15
13
|
/**
|
|
16
14
|
* Provides RUM auto-instrumentation feature to track resources (fetch, XHR, axios) as RUM events.
|
|
17
15
|
*/
|
|
18
16
|
export class DdRumResourceTracking {
|
|
17
|
+
static isTracking = false;
|
|
19
18
|
/**
|
|
20
19
|
* Starts tracking resources and sends a RUM Resource event every time a network request is detected.
|
|
21
20
|
*/
|
|
@@ -28,7 +27,6 @@ export class DdRumResourceTracking {
|
|
|
28
27
|
InternalLog.log('Datadog SDK is already tracking XHR resources', SdkVerbosity.WARN);
|
|
29
28
|
return;
|
|
30
29
|
}
|
|
31
|
-
|
|
32
30
|
this.requestProxy = new XHRProxy({
|
|
33
31
|
xhrType: XMLHttpRequest,
|
|
34
32
|
resourceReporter: new ResourceReporter([filterDevResource])
|
|
@@ -40,22 +38,14 @@ export class DdRumResourceTracking {
|
|
|
40
38
|
InternalLog.log('Datadog SDK is tracking XHR resources', SdkVerbosity.INFO);
|
|
41
39
|
DdRumResourceTracking.isTracking = true;
|
|
42
40
|
}
|
|
43
|
-
|
|
44
41
|
static stopTracking() {
|
|
45
42
|
if (DdRumResourceTracking.isTracking) {
|
|
46
43
|
DdRumResourceTracking.isTracking = false;
|
|
47
|
-
|
|
48
44
|
if (this.requestProxy) {
|
|
49
45
|
this.requestProxy.onTrackingStop();
|
|
50
46
|
}
|
|
51
|
-
|
|
52
47
|
this.requestProxy = null;
|
|
53
48
|
}
|
|
54
49
|
}
|
|
55
|
-
|
|
56
50
|
}
|
|
57
|
-
|
|
58
|
-
_defineProperty(DdRumResourceTracking, "isTracking", false);
|
|
59
|
-
|
|
60
|
-
_defineProperty(DdRumResourceTracking, "requestProxy", void 0);
|
|
61
51
|
//# sourceMappingURL=DdRumResourceTracking.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["InternalLog","SdkVerbosity","firstPartyHostsRegexMapBuilder","ResourceReporter","filterDevResource","XHRProxy","DdRumResourceTracking","isTracking","startTracking","tracingSamplingRate","firstPartyHosts","log","WARN","requestProxy","xhrType","XMLHttpRequest","resourceReporter","onTrackingStart","firstPartyHostsRegexMap","INFO","stopTracking","onTrackingStop"],"sourceRoot":"../../../../../src","sources":["rum/instrumentation/resourceTracking/DdRumResourceTracking.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,QAAQ,sBAAsB;AAClD,SAASC,YAAY,QAAQ,uBAAuB;AAGpD,SAASC,8BAA8B,QAAQ,sCAAsC;AACrF,SAASC,gBAAgB,QAAQ,6DAA6D;AAC9F,SAASC,iBAAiB,QAAQ,yEAAyE;AAC3G,SAASC,QAAQ,QAAQ,kCAAkC;AAG3D;AACA;AACA;AACA,OAAO,MAAMC,qBAAqB,CAAC;EAC/B,OAAeC,UAAU,GAAG,KAAK;EAGjC;AACJ;AACA;EACI,OAAOC,aAAaA,CAAC;IACjBC,mBAAmB;IACnBC;EAIJ,CAAC,EAAQ;IACL;IACA,IAAIJ,qBAAqB,CAACC,UAAU,EAAE;MAClCP,WAAW,CAACW,GAAG,CACX,+CAA+C,EAC/CV,YAAY,CAACW,IACjB,CAAC;MACD;IACJ;IAEA,IAAI,CAACC,YAAY,GAAG,IAAIR,QAAQ,CAAC;MAC7BS,OAAO,EAAEC,cAAc;MACvBC,gBAAgB,EAAE,IAAIb,gBAAgB,CAAC,CAACC,iBAAiB,CAAC;IAC9D,CAAC,CAAC;IACF,IAAI,CAACS,YAAY,CAACI,eAAe,CAAC;MAC9BR,mBAAmB;MACnBS,uBAAuB,EAAEhB,8BAA8B,CACnDQ,eACJ;IACJ,CAAC,CAAC;IAEFV,WAAW,CAACW,GAAG,CACX,uCAAuC,EACvCV,YAAY,CAACkB,IACjB,CAAC;IACDb,qBAAqB,CAACC,UAAU,GAAG,IAAI;EAC3C;EAEA,OAAOa,YAAYA,CAAA,EAAS;IACxB,IAAId,qBAAqB,CAACC,UAAU,EAAE;MAClCD,qBAAqB,CAACC,UAAU,GAAG,KAAK;MACxC,IAAI,IAAI,CAACM,YAAY,EAAE;QACnB,IAAI,CAACA,YAAY,CAACQ,cAAc,CAAC,CAAC;MACtC;MACA,IAAI,CAACR,YAAY,GAAG,IAAI;IAC5B;EACJ;AACJ","ignoreList":[]}
|
package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
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; }
|
|
2
|
-
|
|
3
1
|
/*
|
|
4
2
|
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
|
|
5
3
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
@@ -9,12 +7,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9
7
|
/**
|
|
10
8
|
* Available formats for representing the {@link TracingIdentifier} as a string.
|
|
11
9
|
*/
|
|
12
|
-
export let TracingIdFormat
|
|
13
|
-
/**
|
|
14
|
-
* A {@link TracingIdentifier} used for Traces (128 bit).
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
(function (TracingIdFormat) {
|
|
10
|
+
export let TracingIdFormat = /*#__PURE__*/function (TracingIdFormat) {
|
|
18
11
|
TracingIdFormat[TracingIdFormat["decimal"] = 0] = "decimal";
|
|
19
12
|
TracingIdFormat[TracingIdFormat["lowDecimal"] = 1] = "lowDecimal";
|
|
20
13
|
TracingIdFormat[TracingIdFormat["highDecimal"] = 2] = "highDecimal";
|
|
@@ -24,27 +17,36 @@ export let TracingIdFormat;
|
|
|
24
17
|
TracingIdFormat[TracingIdFormat["paddedHex"] = 6] = "paddedHex";
|
|
25
18
|
TracingIdFormat[TracingIdFormat["paddedLowHex"] = 7] = "paddedLowHex";
|
|
26
19
|
TracingIdFormat[TracingIdFormat["paddedHighHex"] = 8] = "paddedHighHex";
|
|
27
|
-
|
|
20
|
+
return TracingIdFormat;
|
|
21
|
+
}({});
|
|
28
22
|
|
|
29
23
|
/**
|
|
30
|
-
*
|
|
24
|
+
* A {@link TracingIdentifier} used for Traces (128 bit).
|
|
31
25
|
*/
|
|
32
|
-
|
|
26
|
+
|
|
33
27
|
/**
|
|
34
|
-
*
|
|
28
|
+
* A {@link TracingIdentifier} used for Spans (64 bit).
|
|
35
29
|
*/
|
|
36
30
|
|
|
37
|
-
|
|
31
|
+
/**
|
|
32
|
+
* The tracing identifier type.
|
|
33
|
+
*/
|
|
34
|
+
export let TracingIdType = /*#__PURE__*/function (TracingIdType) {
|
|
38
35
|
TracingIdType[TracingIdType["trace"] = 0] = "trace";
|
|
39
36
|
TracingIdType[TracingIdType["span"] = 1] = "span";
|
|
40
|
-
|
|
37
|
+
return TracingIdType;
|
|
38
|
+
}({});
|
|
41
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Value used to mask the low 64 bits of the trace identifier.
|
|
42
|
+
*/
|
|
42
43
|
const LOW_64BIT_MASK = (BigInt('0xffffffff') << BigInt(32)) + BigInt('0xffffffff');
|
|
44
|
+
|
|
43
45
|
/**
|
|
44
46
|
* Value used to mask the low 32 bits of the trace identifier.
|
|
45
47
|
*/
|
|
46
|
-
|
|
47
48
|
const LOW_32BIT_MASK = (BigInt('0xffff') << BigInt(16)) + BigInt('0xffff');
|
|
49
|
+
|
|
48
50
|
/**
|
|
49
51
|
* A {@link TracingIdentifier} is a unique UUID that can be 64bit or 128bit, and provides
|
|
50
52
|
* convenient methods to represent it as a HEX or DECIMAL string, and it allows the masking
|
|
@@ -53,7 +55,6 @@ const LOW_32BIT_MASK = (BigInt('0xffff') << BigInt(16)) + BigInt('0xffff');
|
|
|
53
55
|
* Create a new identifier by calling {@link TracingIdentifier.createTraceId()} or
|
|
54
56
|
* {@link TracingIdentifier.createSpanId()}.
|
|
55
57
|
*/
|
|
56
|
-
|
|
57
58
|
export class TracingIdentifier {
|
|
58
59
|
/**
|
|
59
60
|
* Read-only generated ID as a {@link bigint}.
|
|
@@ -70,100 +71,87 @@ export class TracingIdentifier {
|
|
|
70
71
|
static createTraceId() {
|
|
71
72
|
return new TracingIdentifier(TracingIdType.trace);
|
|
72
73
|
}
|
|
74
|
+
|
|
73
75
|
/**
|
|
74
76
|
* Creates a new unique Span ID.
|
|
75
77
|
* @returns the generated {@link SpanId}.
|
|
76
78
|
*/
|
|
77
|
-
|
|
78
|
-
|
|
79
79
|
static createSpanId() {
|
|
80
80
|
return new TracingIdentifier(TracingIdType.span);
|
|
81
81
|
}
|
|
82
|
+
|
|
82
83
|
/**
|
|
83
84
|
* Private constructor to initialize the {@link TracingIdentifier} based on the given
|
|
84
85
|
* {@link TracingIdType}.
|
|
85
86
|
*/
|
|
86
|
-
|
|
87
|
-
|
|
88
87
|
constructor(type) {
|
|
89
|
-
_defineProperty(this, "id", void 0);
|
|
90
|
-
|
|
91
|
-
_defineProperty(this, "type", void 0);
|
|
92
|
-
|
|
93
88
|
this.id = this.generateUUID(type);
|
|
94
89
|
this.type = type;
|
|
95
90
|
}
|
|
91
|
+
|
|
96
92
|
/**
|
|
97
93
|
* Generates a unique ID with the given format.
|
|
98
94
|
* @param format - the desired format (64bit or 128bit).
|
|
99
95
|
* @returns the generated UUID as a {@link bigint}.
|
|
100
96
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
103
97
|
generateUUID(type) {
|
|
104
98
|
// Get the current Unix timestamp in seconds
|
|
105
|
-
const unixSeconds = Math.floor(Date.now() / 1000);
|
|
99
|
+
const unixSeconds = Math.floor(Date.now() / 1000);
|
|
106
100
|
|
|
107
|
-
|
|
101
|
+
// Ensure the Unix timestamp is 32 bits
|
|
102
|
+
const unixSeconds32 = unixSeconds & 0xffffffff;
|
|
108
103
|
|
|
109
|
-
|
|
104
|
+
// 32 bits of zero
|
|
105
|
+
const zeros32 = 0;
|
|
110
106
|
|
|
107
|
+
// Generate 64 random bits using Math.random()
|
|
111
108
|
const random32Bit1 = Math.floor(Math.random() * 0xffffffff);
|
|
112
109
|
const random32Bit2 = Math.floor(Math.random() * 0xffffffff);
|
|
113
|
-
const random64Hex = random32Bit1.toString(16).padStart(8, '0') + random32Bit2.toString(16).padStart(8, '0');
|
|
110
|
+
const random64Hex = random32Bit1.toString(16).padStart(8, '0') + random32Bit2.toString(16).padStart(8, '0');
|
|
114
111
|
|
|
112
|
+
// If type is 'span' we return the generated 64 bit ID
|
|
115
113
|
if (type === TracingIdType.span) {
|
|
116
114
|
return BigInt(`0x${random64Hex}`);
|
|
117
|
-
}
|
|
118
|
-
|
|
115
|
+
}
|
|
119
116
|
|
|
117
|
+
// Convert parts to hexadecimal strings
|
|
120
118
|
const unixSecondsHex = unixSeconds32.toString(16).padStart(8, '0');
|
|
121
|
-
const zerosHex = zeros32.toString(16).padStart(8, '0');
|
|
119
|
+
const zerosHex = zeros32.toString(16).padStart(8, '0');
|
|
122
120
|
|
|
121
|
+
// Combine parts to form the 128-bit ID
|
|
123
122
|
const hex128BitID = unixSecondsHex + zerosHex + random64Hex;
|
|
124
123
|
return BigInt(`0x${hex128BitID}`);
|
|
125
124
|
}
|
|
125
|
+
|
|
126
126
|
/**
|
|
127
127
|
* Returns a string representation of the Tracing ID.
|
|
128
128
|
* @param format - The type of representation to use.
|
|
129
129
|
* @returns The ID as a string in the specified representation type.
|
|
130
130
|
*/
|
|
131
|
-
|
|
132
|
-
|
|
133
131
|
toString(format) {
|
|
134
132
|
const lowTraceMask = this.type === TracingIdType.trace ? LOW_64BIT_MASK : LOW_32BIT_MASK;
|
|
135
133
|
const highTraceMask = this.type === TracingIdType.trace ? BigInt(64) : BigInt(32);
|
|
136
134
|
const padding = this.type === TracingIdType.trace ? 32 : 16;
|
|
137
|
-
|
|
138
135
|
switch (format) {
|
|
139
136
|
case TracingIdFormat.decimal:
|
|
140
137
|
return this.id.toString(10);
|
|
141
|
-
|
|
142
138
|
case TracingIdFormat.lowDecimal:
|
|
143
139
|
return (this.id & lowTraceMask).toString(10);
|
|
144
|
-
|
|
145
140
|
case TracingIdFormat.highDecimal:
|
|
146
141
|
return (this.id >> highTraceMask).toString(10);
|
|
147
|
-
|
|
148
142
|
case TracingIdFormat.hex:
|
|
149
143
|
return this.id.toString(16);
|
|
150
|
-
|
|
151
144
|
case TracingIdFormat.lowHex:
|
|
152
145
|
return (this.id & lowTraceMask).toString(16);
|
|
153
|
-
|
|
154
146
|
case TracingIdFormat.highHex:
|
|
155
147
|
return (this.id >> highTraceMask).toString(16);
|
|
156
|
-
|
|
157
148
|
case TracingIdFormat.paddedHex:
|
|
158
149
|
return this.toString(TracingIdFormat.hex).padStart(padding, '0');
|
|
159
|
-
|
|
160
150
|
case TracingIdFormat.paddedLowHex:
|
|
161
151
|
return this.toString(TracingIdFormat.lowHex).padStart(padding / 2, '0');
|
|
162
|
-
|
|
163
152
|
case TracingIdFormat.paddedHighHex:
|
|
164
153
|
return this.toString(TracingIdFormat.highHex).padStart(padding / 2, '0');
|
|
165
154
|
}
|
|
166
155
|
}
|
|
167
|
-
|
|
168
156
|
}
|
|
169
157
|
//# sourceMappingURL=TracingIdentifier.js.map
|
package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["TracingIdentifier.tsx"],"names":["TracingIdFormat","TracingIdType","LOW_64BIT_MASK","BigInt","LOW_32BIT_MASK","TracingIdentifier","createTraceId","trace","createSpanId","span","constructor","type","id","generateUUID","unixSeconds","Math","floor","Date","now","unixSeconds32","zeros32","random32Bit1","random","random32Bit2","random64Hex","toString","padStart","unixSecondsHex","zerosHex","hex128BitID","format","lowTraceMask","highTraceMask","padding","decimal","lowDecimal","highDecimal","hex","lowHex","highHex","paddedHex","paddedLowHex","paddedHighHex"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAYA,eAAZ;AA+CA;AACA;AACA;;WAjDYA,e;AAAAA,EAAAA,e,CAAAA,e;AAAAA,EAAAA,e,CAAAA,e;AAAAA,EAAAA,e,CAAAA,e;AAAAA,EAAAA,e,CAAAA,e;AAAAA,EAAAA,e,CAAAA,e;AAAAA,EAAAA,e,CAAAA,e;AAAAA,EAAAA,e,CAAAA,e;AAAAA,EAAAA,e,CAAAA,e;AAAAA,EAAAA,e,CAAAA,e;GAAAA,e,KAAAA,e;;AA6DZ;AACA;AACA;AACA,WAAYC,aAAZ;AAWA;AACA;AACA;;WAbYA,a;AAAAA,EAAAA,a,CAAAA,a;AAAAA,EAAAA,a,CAAAA,a;GAAAA,a,KAAAA,a;;AAcZ,MAAMC,cAAc,GAChB,CAACC,MAAM,CAAC,YAAD,CAAN,IAAwBA,MAAM,CAAC,EAAD,CAA/B,IAAuCA,MAAM,CAAC,YAAD,CADjD;AAGA;AACA;AACA;;AACA,MAAMC,cAAc,GAAG,CAACD,MAAM,CAAC,QAAD,CAAN,IAAoBA,MAAM,CAAC,EAAD,CAA3B,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CAACqC,GAArB;AACI,eAAO,KAAKzB,EAAL,CAAQa,QAAR,CAAiB,EAAjB,CAAP;;AAEJ,WAAKzB,eAAe,CAACsC,MAArB;AACI,eAAO,CAAC,KAAK1B,EAAL,GAAUmB,YAAX,EAAyBN,QAAzB,CAAkC,EAAlC,CAAP;;AAEJ,WAAKzB,eAAe,CAACuC,OAArB;AACI,eAAO,CAAC,KAAK3B,EAAL,IAAWoB,aAAZ,EAA2BP,QAA3B,CAAoC,EAApC,CAAP;;AAEJ,WAAKzB,eAAe,CAACwC,SAArB;AACI,eAAO,KAAKf,QAAL,CAAczB,eAAe,CAACqC,GAA9B,EAAmCX,QAAnC,CACHO,OADG,EAEH,GAFG,CAAP;;AAKJ,WAAKjC,eAAe,CAACyC,YAArB;AACI,eAAO,KAAKhB,QAAL,CAAczB,eAAe,CAACsC,MAA9B,EAAsCZ,QAAtC,CACHO,OAAO,GAAG,CADP,EAEH,GAFG,CAAP;;AAKJ,WAAKjC,eAAe,CAAC0C,aAArB;AACI,eAAO,KAAKjB,QAAL,CAAczB,eAAe,CAACuC,OAA9B,EAAuCb,QAAvC,CACHO,OAAO,GAAG,CADP,EAEH,GAFG,CAAP;AAhCR;AAqCH;;AA1H0B","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\n/**\n * Available formats for representing the {@link TracingIdentifier} as a string.\n */\nexport enum TracingIdFormat {\n /**\n * Decimal string representation of the full tracing id.\n */\n decimal,\n\n /**\n * The low bits of the tracing id as a decimal.\n */\n lowDecimal,\n\n /**\n * The high bits of the tracing id as a decimal.\n */\n highDecimal,\n\n /**\n * Hexadecimal string representation of the full tracing id.\n */\n hex,\n\n /**\n * Hexadecimal string representation of the low bits of the tracing id.\n */\n lowHex,\n\n /**\n * Hexadecimal string representation of the high bits of the tracing id.\n */\n highHex,\n\n /**\n * Padded hexadecimal string representation of the full tracing id.\n */\n paddedHex,\n\n /**\n * Padded hexadecimal string representation of the low bits of the tracing id.\n */\n paddedLowHex,\n\n /**\n * Padded hexadecimal string representation of the high bits of the tracing id.\n */\n paddedHighHex\n}\n\n/**\n * A {@link TracingIdentifier} used for Traces (128 bit).\n */\nexport type TraceId = TracingIdentifier & {\n _brand: 'traceId';\n};\n\n/**\n * A {@link TracingIdentifier} used for Spans (64 bit).\n */\nexport type SpanId = TracingIdentifier & {\n _brand: 'spanId';\n};\n\n/**\n * The tracing identifier type.\n */\nexport enum TracingIdType {\n /**\n * 128-bit UUID.\n */\n trace,\n /**\n * 64-bit UUID.\n */\n span\n}\n\n/**\n * Value used to mask the low 64 bits of the trace identifier.\n */\nconst LOW_64BIT_MASK =\n (BigInt('0xffffffff') << BigInt(32)) + BigInt('0xffffffff');\n\n/**\n * Value used to mask the low 32 bits of the trace identifier.\n */\nconst LOW_32BIT_MASK = (BigInt('0xffff') << BigInt(16)) + BigInt('0xffff');\n\n/**\n * A {@link TracingIdentifier} is a unique UUID that can be 64bit or 128bit, and provides\n * convenient methods to represent it as a HEX or DECIMAL string, and it allows the masking\n * of its low or high bits.\n *\n * Create a new identifier by calling {@link TracingIdentifier.createTraceId()} or\n * {@link TracingIdentifier.createSpanId()}.\n */\nexport class TracingIdentifier {\n /**\n * Read-only generated ID as a {@link bigint}.\n */\n readonly id: bigint;\n\n /**\n * Read-only type to determine whether the identifier is a {@link TraceId} or a {@link SpanId}.\n */\n readonly type: TracingIdType;\n\n /**\n * Creates a new unique Trace ID.\n * @returns the generated {@link TraceId}.\n */\n public static createTraceId(): TraceId {\n return new TracingIdentifier(TracingIdType.trace) as TraceId;\n }\n\n /**\n * Creates a new unique Span ID.\n * @returns the generated {@link SpanId}.\n */\n public static createSpanId(): SpanId {\n return new TracingIdentifier(TracingIdType.span) as SpanId;\n }\n\n /**\n * Private constructor to initialize the {@link TracingIdentifier} based on the given\n * {@link TracingIdType}.\n */\n private constructor(type: TracingIdType) {\n this.id = this.generateUUID(type);\n this.type = type;\n }\n\n /**\n * Generates a unique ID with the given format.\n * @param format - the desired format (64bit or 128bit).\n * @returns the generated UUID as a {@link bigint}.\n */\n private generateUUID(type: TracingIdType): bigint {\n // Get the current Unix timestamp in seconds\n const unixSeconds = Math.floor(Date.now() / 1000);\n\n // Ensure the Unix timestamp is 32 bits\n const unixSeconds32 = unixSeconds & 0xffffffff;\n\n // 32 bits of zero\n const zeros32 = 0;\n\n // Generate 64 random bits using Math.random()\n const random32Bit1 = Math.floor(Math.random() * 0xffffffff);\n const random32Bit2 = Math.floor(Math.random() * 0xffffffff);\n const random64Hex =\n random32Bit1.toString(16).padStart(8, '0') +\n random32Bit2.toString(16).padStart(8, '0');\n\n // If type is 'span' we return the generated 64 bit ID\n if (type === TracingIdType.span) {\n return BigInt(`0x${random64Hex}`);\n }\n\n // Convert parts to hexadecimal strings\n const unixSecondsHex = unixSeconds32.toString(16).padStart(8, '0');\n const zerosHex = zeros32.toString(16).padStart(8, '0');\n\n // Combine parts to form the 128-bit ID\n const hex128BitID = unixSecondsHex + zerosHex + random64Hex;\n\n return BigInt(`0x${hex128BitID}`);\n }\n\n /**\n * Returns a string representation of the Tracing ID.\n * @param format - The type of representation to use.\n * @returns The ID as a string in the specified representation type.\n */\n public toString(format: TracingIdFormat): string {\n const lowTraceMask =\n this.type === TracingIdType.trace ? LOW_64BIT_MASK : LOW_32BIT_MASK;\n const highTraceMask =\n this.type === TracingIdType.trace ? BigInt(64) : BigInt(32);\n const padding = this.type === TracingIdType.trace ? 32 : 16;\n\n switch (format) {\n case TracingIdFormat.decimal:\n return this.id.toString(10);\n\n case TracingIdFormat.lowDecimal:\n return (this.id & lowTraceMask).toString(10);\n\n case TracingIdFormat.highDecimal:\n return (this.id >> highTraceMask).toString(10);\n\n case TracingIdFormat.hex:\n return this.id.toString(16);\n\n case TracingIdFormat.lowHex:\n return (this.id & lowTraceMask).toString(16);\n\n case TracingIdFormat.highHex:\n return (this.id >> highTraceMask).toString(16);\n\n case TracingIdFormat.paddedHex:\n return this.toString(TracingIdFormat.hex).padStart(\n padding,\n '0'\n );\n\n case TracingIdFormat.paddedLowHex:\n return this.toString(TracingIdFormat.lowHex).padStart(\n padding / 2,\n '0'\n );\n\n case TracingIdFormat.paddedHighHex:\n return this.toString(TracingIdFormat.highHex).padStart(\n padding / 2,\n '0'\n );\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"names":["TracingIdFormat","TracingIdType","LOW_64BIT_MASK","BigInt","LOW_32BIT_MASK","TracingIdentifier","createTraceId","trace","createSpanId","span","constructor","type","id","generateUUID","unixSeconds","Math","floor","Date","now","unixSeconds32","zeros32","random32Bit1","random","random32Bit2","random64Hex","toString","padStart","unixSecondsHex","zerosHex","hex128BitID","format","lowTraceMask","highTraceMask","padding","decimal","lowDecimal","highDecimal","hex","lowHex","highHex","paddedHex","paddedLowHex","paddedHighHex"],"sourceRoot":"../../../../../../src","sources":["rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAYA,eAAe,0BAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;;AA+C3B;AACA;AACA;;AAKA;AACA;AACA;;AAKA;AACA;AACA;AACA,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;;AAWzB;AACA;AACA;AACA,MAAMC,cAAc,GAChB,CAACC,MAAM,CAAC,YAAY,CAAC,IAAIA,MAAM,CAAC,EAAE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AAW;QAC5B,OAAO,CAAC,IAAI,CAACxB,EAAE,IAAIoB,aAAa,EAAEP,QAAQ,CAAC,EAAE,CAAC;MAElD,KAAKzB,eAAe,CAACqC,GAAG;QACpB,OAAO,IAAI,CAACzB,EAAE,CAACa,QAAQ,CAAC,EAAE,CAAC;MAE/B,KAAKzB,eAAe,CAACsC,MAAM;QACvB,OAAO,CAAC,IAAI,CAAC1B,EAAE,GAAGmB,YAAY,EAAEN,QAAQ,CAAC,EAAE,CAAC;MAEhD,KAAKzB,eAAe,CAACuC,OAAO;QACxB,OAAO,CAAC,IAAI,CAAC3B,EAAE,IAAIoB,aAAa,EAAEP,QAAQ,CAAC,EAAE,CAAC;MAElD,KAAKzB,eAAe,CAACwC,SAAS;QAC1B,OAAO,IAAI,CAACf,QAAQ,CAACzB,eAAe,CAACqC,GAAG,CAAC,CAACX,QAAQ,CAC9CO,OAAO,EACP,GACJ,CAAC;MAEL,KAAKjC,eAAe,CAACyC,YAAY;QAC7B,OAAO,IAAI,CAAChB,QAAQ,CAACzB,eAAe,CAACsC,MAAM,CAAC,CAACZ,QAAQ,CACjDO,OAAO,GAAG,CAAC,EACX,GACJ,CAAC;MAEL,KAAKjC,eAAe,CAAC0C,aAAa;QAC9B,OAAO,IAAI,CAACjB,QAAQ,CAACzB,eAAe,CAACuC,OAAO,CAAC,CAACb,QAAQ,CAClDO,OAAO,GAAG,CAAC,EACX,GACJ,CAAC;IACT;EACJ;AACJ","ignoreList":[]}
|
package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
4
|
* Copyright 2016-Present Datadog, Inc.
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
import { TracingIdentifier } from './TracingIdentifier';
|
|
7
8
|
import { getPropagatorsForHost } from './firstPartyHosts';
|
|
8
9
|
const DISCARDED_TRACE_ATTRIBUTES = {
|
|
@@ -17,16 +18,12 @@ export const getTracingAttributes = ({
|
|
|
17
18
|
if (hostname === null) {
|
|
18
19
|
return DISCARDED_TRACE_ATTRIBUTES;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
21
|
const propagatorsForHost = getPropagatorsForHost(hostname, firstPartyHostsRegexMap);
|
|
22
|
-
|
|
23
22
|
if (propagatorsForHost) {
|
|
24
23
|
return generateTracingAttributesWithSampling(tracingSamplingRate, propagatorsForHost);
|
|
25
24
|
}
|
|
26
|
-
|
|
27
25
|
return DISCARDED_TRACE_ATTRIBUTES;
|
|
28
26
|
};
|
|
29
|
-
|
|
30
27
|
const generateTracingAttributesWithSampling = (tracingSamplingRate, propagatorTypes) => {
|
|
31
28
|
const isSampled = Math.random() * 100 <= tracingSamplingRate;
|
|
32
29
|
const tracingAttributes = {
|
package/lib/module/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["TracingIdentifier","getPropagatorsForHost","DISCARDED_TRACE_ATTRIBUTES","samplingPriorityHeader","tracingStrategy","getTracingAttributes","hostname","firstPartyHostsRegexMap","tracingSamplingRate","propagatorsForHost","generateTracingAttributesWithSampling","propagatorTypes","isSampled","Math","random","tracingAttributes","traceId","createTraceId","spanId","createSpanId","rulePsr"],"sourceRoot":"../../../../../../src","sources":["rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAKA,SAASA,iBAAiB,QAAQ,qBAAqB;AAGvD,SAASC,qBAAqB,QAAQ,mBAAmB;AAkBzD,MAAMC,0BAA0D,GAAG;EAC/DC,sBAAsB,EAAE,GAAG;EAC3BC,eAAe,EAAE;AACrB,CAAC;AAED,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EACjCC,QAAQ;EACRC,uBAAuB;EACvBC;AAKJ,CAAC,KAAqC;EAClC,IAAIF,QAAQ,KAAK,IAAI,EAAE;IACnB,OAAOJ,0BAA0B;EACrC;EACA,MAAMO,kBAAkB,GAAGR,qBAAqB,CAC5CK,QAAQ,EACRC,uBACJ,CAAC;EACD,IAAIE,kBAAkB,EAAE;IACpB,OAAOC,qCAAqC,CACxCF,mBAAmB,EACnBC,kBACJ,CAAC;EACL;EACA,OAAOP,0BAA0B;AACrC,CAAC;AAED,MAAMQ,qCAAqC,GAAGA,CAC1CF,mBAA2B,EAC3BG,eAAiC,KACA;EACjC,MAAMC,SAAS,GAAGC,IAAI,CAACC,MAAM,CAAC,CAAC,GAAG,GAAG,IAAIN,mBAAmB;EAC5D,MAAMO,iBAAiD,GAAG;IACtDC,OAAO,EAAEhB,iBAAiB,CAACiB,aAAa,CAAC,CAAC;IAC1CC,MAAM,EAAElB,iBAAiB,CAACmB,YAAY,CAAC,CAAC;IACxChB,sBAAsB,EAAES,SAAS,GAAG,GAAG,GAAG,GAAG;IAC7CR,eAAe,EAAE,MAAM;IACvBgB,OAAO,EAAEZ,mBAAmB,GAAG,GAAG;IAClCG;EACJ,CAAC;EAED,OAAOI,iBAAiB;AAC5B,CAAC","ignoreList":[]}
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
4
4
|
* Copyright 2016-Present Datadog, Inc.
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
import { PropagatorType } from '../../../types';
|
|
7
8
|
import { TracingIdFormat } from './TracingIdentifier';
|
|
8
9
|
export const SAMPLING_PRIORITY_HEADER_KEY = 'x-datadog-sampling-priority';
|
|
9
10
|
/**
|
|
10
11
|
* Datadog headers
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
13
|
export const ORIGIN_HEADER_KEY = 'x-datadog-origin';
|
|
14
14
|
export const ORIGIN_RUM = 'rum';
|
|
15
15
|
export const TRACE_ID_HEADER_KEY = 'x-datadog-trace-id';
|
|
16
16
|
export const PARENT_ID_HEADER_KEY = 'x-datadog-parent-id';
|
|
17
17
|
export const TAGS_HEADER_KEY = 'x-datadog-tags';
|
|
18
18
|
export const DD_TRACE_ID_TAG = '_dd.p.tid';
|
|
19
|
+
|
|
19
20
|
/**
|
|
20
21
|
* OTel headers
|
|
21
22
|
*/
|
|
22
|
-
|
|
23
23
|
export const TRACECONTEXT_HEADER_KEY = 'traceparent';
|
|
24
24
|
export const TRACESTATE_HEADER_KEY = 'tracestate';
|
|
25
25
|
export const B3_HEADER_KEY = 'b3';
|
|
@@ -28,11 +28,9 @@ export const B3_MULTI_SPAN_ID_HEADER_KEY = 'X-B3-SpanId';
|
|
|
28
28
|
export const B3_MULTI_SAMPLED_HEADER_KEY = 'X-B3-Sampled';
|
|
29
29
|
export const getTracingHeaders = tracingAttributes => {
|
|
30
30
|
const headers = [];
|
|
31
|
-
|
|
32
31
|
if (tracingAttributes.tracingStrategy === 'DISCARD') {
|
|
33
32
|
return headers;
|
|
34
33
|
}
|
|
35
|
-
|
|
36
34
|
tracingAttributes.propagatorTypes.forEach(propagator => {
|
|
37
35
|
switch (propagator) {
|
|
38
36
|
case PropagatorType.DATADOG:
|
|
@@ -55,7 +53,6 @@ export const getTracingHeaders = tracingAttributes => {
|
|
|
55
53
|
});
|
|
56
54
|
break;
|
|
57
55
|
}
|
|
58
|
-
|
|
59
56
|
case PropagatorType.TRACECONTEXT:
|
|
60
57
|
{
|
|
61
58
|
headers.push({
|
|
@@ -75,7 +72,6 @@ export const getTracingHeaders = tracingAttributes => {
|
|
|
75
72
|
});
|
|
76
73
|
break;
|
|
77
74
|
}
|
|
78
|
-
|
|
79
75
|
case PropagatorType.B3:
|
|
80
76
|
{
|
|
81
77
|
headers.push({
|
|
@@ -88,7 +84,6 @@ export const getTracingHeaders = tracingAttributes => {
|
|
|
88
84
|
});
|
|
89
85
|
break;
|
|
90
86
|
}
|
|
91
|
-
|
|
92
87
|
case PropagatorType.B3MULTI:
|
|
93
88
|
{
|
|
94
89
|
headers.push({
|
|
@@ -106,7 +101,6 @@ export const getTracingHeaders = tracingAttributes => {
|
|
|
106
101
|
});
|
|
107
102
|
return headers;
|
|
108
103
|
};
|
|
109
|
-
|
|
110
104
|
const generateTraceContextHeader = ({
|
|
111
105
|
version,
|
|
112
106
|
traceId,
|
|
@@ -116,7 +110,6 @@ const generateTraceContextHeader = ({
|
|
|
116
110
|
const flags = isSampled ? '01' : '00';
|
|
117
111
|
return `${version}-${traceId.toString(TracingIdFormat.paddedHex)}-${parentId.toString(TracingIdFormat.paddedHex)}-${flags}`;
|
|
118
112
|
};
|
|
119
|
-
|
|
120
113
|
const generateTraceStateHeader = ({
|
|
121
114
|
parentId,
|
|
122
115
|
isSampled
|
|
@@ -126,7 +119,6 @@ const generateTraceStateHeader = ({
|
|
|
126
119
|
const parent = `p:${parentId.toString(TracingIdFormat.paddedHex)}`;
|
|
127
120
|
return `dd=${sampled};${origin};${parent}`;
|
|
128
121
|
};
|
|
129
|
-
|
|
130
122
|
const generateB3Header = ({
|
|
131
123
|
traceId,
|
|
132
124
|
spanId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["distributedTracingHeaders.ts"],"names":["PropagatorType","TracingIdFormat","SAMPLING_PRIORITY_HEADER_KEY","ORIGIN_HEADER_KEY","ORIGIN_RUM","TRACE_ID_HEADER_KEY","PARENT_ID_HEADER_KEY","TAGS_HEADER_KEY","DD_TRACE_ID_TAG","TRACECONTEXT_HEADER_KEY","TRACESTATE_HEADER_KEY","B3_HEADER_KEY","B3_MULTI_TRACE_ID_HEADER_KEY","B3_MULTI_SPAN_ID_HEADER_KEY","B3_MULTI_SAMPLED_HEADER_KEY","getTracingHeaders","tracingAttributes","headers","tracingStrategy","propagatorTypes","forEach","propagator","DATADOG","push","header","value","samplingPriorityHeader","traceId","toString","lowDecimal","spanId","decimal","paddedHighHex","TRACECONTEXT","generateTraceContextHeader","version","parentId","isSampled","generateTraceStateHeader","B3","generateB3Header","B3MULTI","paddedHex","flags","sampled","origin","parent","join"],"mappings":"AAAA;AACA;A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B,eAAe,CAACyC,SAAlC,CAA6C,EAAjE;AAEA,SAAQ,MAAKE,OAAQ,IAAGC,MAAO,IAAGC,MAAO,EAAzC;AACH,CAZD;;AAcA,MAAMN,gBAAgB,GAAG,CAAC;AACtBb,EAAAA,OADsB;AAEtBG,EAAAA,MAFsB;AAGtBO,EAAAA;AAHsB,CAAD,KAQnB;AACF,SAAO,CACHV,OAAO,CAACC,QAAR,CAAiB3B,eAAe,CAACyC,SAAjC,CADG,EAEHZ,MAAM,CAACF,QAAP,CAAgB3B,eAAe,CAACyC,SAAhC,CAFG,EAGHL,SAAS,GAAG,GAAH,GAAS,GAHf,EAILU,IAJK,CAIA,GAJA,CAAP;AAKH,CAdD","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 { PropagatorType } from '../../../types';\n\nimport { TracingIdFormat } from './TracingIdentifier';\nimport type { TraceId, SpanId } from './TracingIdentifier';\nimport type { DdRumResourceTracingAttributes } from './distributedTracing';\n\nexport const SAMPLING_PRIORITY_HEADER_KEY = 'x-datadog-sampling-priority';\n/**\n * Datadog headers\n */\nexport const ORIGIN_HEADER_KEY = 'x-datadog-origin';\nexport const ORIGIN_RUM = 'rum';\nexport const TRACE_ID_HEADER_KEY = 'x-datadog-trace-id';\nexport const PARENT_ID_HEADER_KEY = 'x-datadog-parent-id';\nexport const TAGS_HEADER_KEY = 'x-datadog-tags';\nexport const DD_TRACE_ID_TAG = '_dd.p.tid';\n\n/**\n * OTel headers\n */\nexport const TRACECONTEXT_HEADER_KEY = 'traceparent';\nexport const TRACESTATE_HEADER_KEY = 'tracestate';\nexport const B3_HEADER_KEY = 'b3';\nexport const B3_MULTI_TRACE_ID_HEADER_KEY = 'X-B3-TraceId';\nexport const B3_MULTI_SPAN_ID_HEADER_KEY = 'X-B3-SpanId';\nexport const B3_MULTI_SAMPLED_HEADER_KEY = 'X-B3-Sampled';\n\nexport const getTracingHeaders = (\n tracingAttributes: DdRumResourceTracingAttributes\n): { header: string; value: string }[] => {\n const headers: { header: string; value: string }[] = [];\n if (tracingAttributes.tracingStrategy === 'DISCARD') {\n return headers;\n }\n tracingAttributes.propagatorTypes.forEach(propagator => {\n switch (propagator) {\n case PropagatorType.DATADOG: {\n headers.push(\n {\n header: ORIGIN_HEADER_KEY,\n value: ORIGIN_RUM\n },\n {\n header: SAMPLING_PRIORITY_HEADER_KEY,\n value: tracingAttributes.samplingPriorityHeader\n },\n {\n header: TRACE_ID_HEADER_KEY,\n value: tracingAttributes.traceId.toString(\n TracingIdFormat.lowDecimal\n )\n },\n {\n header: PARENT_ID_HEADER_KEY,\n value: tracingAttributes.spanId.toString(\n TracingIdFormat.decimal\n )\n },\n {\n header: TAGS_HEADER_KEY,\n value: `${DD_TRACE_ID_TAG}=${tracingAttributes.traceId.toString(\n TracingIdFormat.paddedHighHex\n )}`\n }\n );\n break;\n }\n case PropagatorType.TRACECONTEXT: {\n headers.push(\n {\n header: TRACECONTEXT_HEADER_KEY,\n value: generateTraceContextHeader({\n version: '00',\n traceId: tracingAttributes.traceId,\n parentId: tracingAttributes.spanId,\n isSampled:\n tracingAttributes.samplingPriorityHeader === '1'\n })\n },\n {\n header: TRACESTATE_HEADER_KEY,\n value: generateTraceStateHeader({\n parentId: tracingAttributes.spanId,\n isSampled:\n tracingAttributes.samplingPriorityHeader === '1'\n })\n }\n );\n break;\n }\n case PropagatorType.B3: {\n headers.push({\n header: B3_HEADER_KEY,\n value: generateB3Header({\n traceId: tracingAttributes.traceId,\n spanId: tracingAttributes.spanId,\n isSampled:\n tracingAttributes.samplingPriorityHeader === '1'\n })\n });\n break;\n }\n case PropagatorType.B3MULTI: {\n headers.push(\n {\n header: B3_MULTI_TRACE_ID_HEADER_KEY,\n value: tracingAttributes.traceId.toString(\n TracingIdFormat.paddedHex\n )\n },\n {\n header: B3_MULTI_SPAN_ID_HEADER_KEY,\n value: tracingAttributes.spanId.toString(\n TracingIdFormat.paddedHex\n )\n },\n {\n header: B3_MULTI_SAMPLED_HEADER_KEY,\n value: tracingAttributes.samplingPriorityHeader\n }\n );\n }\n }\n });\n\n return headers;\n};\n\nconst generateTraceContextHeader = ({\n version,\n traceId,\n parentId,\n isSampled\n}: {\n version: string;\n traceId: TraceId;\n parentId: SpanId;\n isSampled: boolean;\n}) => {\n const flags = isSampled ? '01' : '00';\n return `${version}-${traceId.toString(\n TracingIdFormat.paddedHex\n )}-${parentId.toString(TracingIdFormat.paddedHex)}-${flags}`;\n};\n\nconst generateTraceStateHeader = ({\n parentId,\n isSampled\n}: {\n parentId: SpanId;\n isSampled: boolean;\n}) => {\n const sampled = `s:${isSampled ? '1' : '0'}`;\n const origin = 'o:rum';\n const parent = `p:${parentId.toString(TracingIdFormat.paddedHex)}`;\n\n return `dd=${sampled};${origin};${parent}`;\n};\n\nconst generateB3Header = ({\n traceId,\n spanId,\n isSampled\n}: {\n traceId: TraceId;\n spanId: SpanId;\n isSampled: boolean;\n}) => {\n return [\n traceId.toString(TracingIdFormat.paddedHex),\n spanId.toString(TracingIdFormat.paddedHex),\n isSampled ? '1' : '0'\n ].join('-');\n};\n"]}
|
|
1
|
+
{"version":3,"names":["PropagatorType","TracingIdFormat","SAMPLING_PRIORITY_HEADER_KEY","ORIGIN_HEADER_KEY","ORIGIN_RUM","TRACE_ID_HEADER_KEY","PARENT_ID_HEADER_KEY","TAGS_HEADER_KEY","DD_TRACE_ID_TAG","TRACECONTEXT_HEADER_KEY","TRACESTATE_HEADER_KEY","B3_HEADER_KEY","B3_MULTI_TRACE_ID_HEADER_KEY","B3_MULTI_SPAN_ID_HEADER_KEY","B3_MULTI_SAMPLED_HEADER_KEY","getTracingHeaders","tracingAttributes","headers","tracingStrategy","propagatorTypes","forEach","propagator","DATADOG","push","header","value","samplingPriorityHeader","traceId","toString","lowDecimal","spanId","decimal","paddedHighHex","TRACECONTEXT","generateTraceContextHeader","version","parentId","isSampled","generateTraceStateHeader","B3","generateB3Header","B3MULTI","paddedHex","flags","sampled","origin","parent","join"],"sourceRoot":"../../../../../../src","sources":["rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,gBAAgB;AAE/C,SAASC,eAAe,QAAQ,qBAAqB;AAIrD,OAAO,MAAMC,4BAA4B,GAAG,6BAA6B;AACzE;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAG,kBAAkB;AACnD,OAAO,MAAMC,UAAU,GAAG,KAAK;AAC/B,OAAO,MAAMC,mBAAmB,GAAG,oBAAoB;AACvD,OAAO,MAAMC,oBAAoB,GAAG,qBAAqB;AACzD,OAAO,MAAMC,eAAe,GAAG,gBAAgB;AAC/C,OAAO,MAAMC,eAAe,GAAG,WAAW;;AAE1C;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAG,aAAa;AACpD,OAAO,MAAMC,qBAAqB,GAAG,YAAY;AACjD,OAAO,MAAMC,aAAa,GAAG,IAAI;AACjC,OAAO,MAAMC,4BAA4B,GAAG,cAAc;AAC1D,OAAO,MAAMC,2BAA2B,GAAG,aAAa;AACxD,OAAO,MAAMC,2BAA2B,GAAG,cAAc;AAEzD,OAAO,MAAMC,iBAAiB,GAC1BC,iBAAiD,IACX;EACtC,MAAMC,OAA4C,GAAG,EAAE;EACvD,IAAID,iBAAiB,CAACE,eAAe,KAAK,SAAS,EAAE;IACjD,OAAOD,OAAO;EAClB;EACAD,iBAAiB,CAACG,eAAe,CAACC,OAAO,CAACC,UAAU,IAAI;IACpD,QAAQA,UAAU;MACd,KAAKrB,cAAc,CAACsB,OAAO;QAAE;UACzBL,OAAO,CAACM,IAAI,CACR;YACIC,MAAM,EAAErB,iBAAiB;YACzBsB,KAAK,EAAErB;UACX,CAAC,EACD;YACIoB,MAAM,EAAEtB,4BAA4B;YACpCuB,KAAK,EAAET,iBAAiB,CAACU;UAC7B,CAA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