@datadog/mobile-react-native-openfeature 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +117 -0
- package/lib/commonjs/index.js +13 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/provider.js +106 -0
- package/lib/commonjs/provider.js.map +1 -0
- package/lib/module/index.js +9 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/provider.js +99 -0
- package/lib/module/provider.js.map +1 -0
- package/lib/typescript/core/src/DdAttributes.d.ts +20 -0
- package/lib/typescript/core/src/DdAttributes.d.ts.map +1 -0
- package/lib/typescript/core/src/DdSdkReactNative.d.ts +122 -0
- package/lib/typescript/core/src/DdSdkReactNative.d.ts.map +1 -0
- package/lib/typescript/core/src/InternalLog.d.ts +13 -0
- package/lib/typescript/core/src/InternalLog.d.ts.map +1 -0
- package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts +12 -0
- package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts +17 -0
- package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts +52 -0
- package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts +60 -0
- package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts +47 -0
- package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts +5 -0
- package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts +52 -0
- package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts +90 -0
- package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts +54 -0
- package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts +17 -0
- package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts +24 -0
- package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts +6 -0
- package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/RumConfiguration.d.ts +66 -0
- package/lib/typescript/core/src/config/features/RumConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts +131 -0
- package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts +25 -0
- package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts +10 -0
- package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts +11 -0
- package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts +4 -0
- package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts +18 -0
- package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/BatchSize.d.ts +19 -0
- package/lib/typescript/core/src/config/types/BatchSize.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/InitializationMode.d.ts +5 -0
- package/lib/typescript/core/src/config/types/InitializationMode.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts +2 -0
- package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/ProxyConfiguration.d.ts +49 -0
- package/lib/typescript/core/src/config/types/ProxyConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts +10 -0
- package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/TrackingConsent.d.ts +9 -0
- package/lib/typescript/core/src/config/types/TrackingConsent.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/UploadFrequency.d.ts +18 -0
- package/lib/typescript/core/src/config/types/UploadFrequency.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts +7 -0
- package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/index.d.ts +10 -0
- package/lib/typescript/core/src/config/types/index.d.ts.map +1 -0
- package/lib/typescript/core/src/flags/DdFlags.d.ts +3 -0
- package/lib/typescript/core/src/flags/DdFlags.d.ts.map +1 -0
- package/lib/typescript/core/src/flags/FlagsClient.d.ts +114 -0
- package/lib/typescript/core/src/flags/FlagsClient.d.ts.map +1 -0
- package/lib/typescript/core/src/flags/internal.d.ts +14 -0
- package/lib/typescript/core/src/flags/internal.d.ts.map +1 -0
- package/lib/typescript/core/src/flags/types.d.ts +202 -0
- package/lib/typescript/core/src/flags/types.d.ts.map +1 -0
- package/lib/typescript/core/src/index.d.ts +41 -0
- package/lib/typescript/core/src/index.d.ts.map +1 -0
- package/lib/typescript/core/src/logs/DdLogs.d.ts +24 -0
- package/lib/typescript/core/src/logs/DdLogs.d.ts.map +1 -0
- package/lib/typescript/core/src/logs/eventMapper.d.ts +13 -0
- package/lib/typescript/core/src/logs/eventMapper.d.ts.map +1 -0
- package/lib/typescript/core/src/logs/types.d.ts +74 -0
- package/lib/typescript/core/src/logs/types.d.ts.map +1 -0
- package/lib/typescript/core/src/metro/debugIdResolver.d.ts +3 -0
- package/lib/typescript/core/src/metro/debugIdResolver.d.ts.map +1 -0
- package/lib/typescript/core/src/nativeModulesTypes.d.ts +86 -0
- package/lib/typescript/core/src/nativeModulesTypes.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/DdRum.d.ts +59 -0
- package/lib/typescript/core/src/rum/DdRum.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/constants.d.ts +2 -0
- package/lib/typescript/core/src/rum/constants.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/eventMappers/actionEventMapper.d.ts +22 -0
- package/lib/typescript/core/src/rum/eventMappers/actionEventMapper.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts +24 -0
- package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/eventMappers/resourceEventMapper.d.ts +25 -0
- package/lib/typescript/core/src/rum/eventMappers/resourceEventMapper.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/helper.d.ts +10 -0
- package/lib/typescript/core/src/rum/helper.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts +17 -0
- package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts +38 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts +25 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts +29 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts +4 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.d.ts +5 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.d.ts +8 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ddBabelUtils.d.ts +9 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ddBabelUtils.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts +2 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +23 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts +46 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier.d.ts +24 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts +121 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts +14 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts +20 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +11 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts +12 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.d.ts +9 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts +24 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts +4 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/headers.d.ts +4 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/headers.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts +9 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts +7 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts +18 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.d.ts +7 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +22 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts +6 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.d.ts +3 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.d.ts +14 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +28 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/types.d.ts +218 -0
- package/lib/typescript/core/src/rum/types.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts +15 -0
- package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts +6 -0
- package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts +13 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts +33 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts +15 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts +17 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts +21 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts +7 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts +17 -0
- package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesSingleton/types.d.ts +4 -0
- package/lib/typescript/core/src/sdk/AttributesSingleton/types.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogBatchedBridgeEventEmitter.d.ts +11 -0
- package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogBatchedBridgeEventEmitter.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogDefaultEventEmitter.d.ts +10 -0
- package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogDefaultEventEmitter.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogEventEmitter.d.ts +7 -0
- package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogEventEmitter.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogNativeEventEmitter.d.ts +12 -0
- package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogNativeEventEmitter.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.d.ts +14 -0
- package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.d.ts +6 -0
- package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.d.ts +18 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BufferSingleton.d.ts +8 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BufferSingleton.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/DatadogBuffer.d.ts +21 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/DatadogBuffer.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/PassThroughBuffer.d.ts +8 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/PassThroughBuffer.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/bufferNativeCall.d.ts +4 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/bufferNativeCall.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts +29 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts +9 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DdSdk.d.ts +3 -0
- package/lib/typescript/core/src/sdk/DdSdk.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts +39 -0
- package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts +27 -0
- package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/EventMappers/utils/deepClone.d.ts +11 -0
- package/lib/typescript/core/src/sdk/EventMappers/utils/deepClone.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts +13 -0
- package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts +14 -0
- package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts +7 -0
- package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts.map +1 -0
- package/lib/typescript/core/src/specs/NativeDdFlags.d.ts +15 -0
- package/lib/typescript/core/src/specs/NativeDdFlags.d.ts.map +1 -0
- package/lib/typescript/core/src/specs/NativeDdLogs.d.ts +70 -0
- package/lib/typescript/core/src/specs/NativeDdLogs.d.ts.map +1 -0
- package/lib/typescript/core/src/specs/NativeDdRum.d.ts +149 -0
- package/lib/typescript/core/src/specs/NativeDdRum.d.ts.map +1 -0
- package/lib/typescript/core/src/specs/NativeDdSdk.d.ts +105 -0
- package/lib/typescript/core/src/specs/NativeDdSdk.d.ts.map +1 -0
- package/lib/typescript/core/src/specs/NativeDdTrace.d.ts +24 -0
- package/lib/typescript/core/src/specs/NativeDdTrace.d.ts.map +1 -0
- package/lib/typescript/core/src/trace/DdTrace.d.ts +3 -0
- package/lib/typescript/core/src/trace/DdTrace.d.ts.map +1 -0
- package/lib/typescript/core/src/types.d.ts +130 -0
- package/lib/typescript/core/src/types.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/Timer.d.ts +22 -0
- package/lib/typescript/core/src/utils/Timer.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/jsUtils.d.ts +2 -0
- package/lib/typescript/core/src/utils/jsUtils.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/longTasksUtils.d.ts +7 -0
- package/lib/typescript/core/src/utils/longTasksUtils.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/singletonUtils.d.ts +2 -0
- package/lib/typescript/core/src/utils/singletonUtils.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/time-provider/DefaultTimeProvider.d.ts +8 -0
- package/lib/typescript/core/src/utils/time-provider/DefaultTimeProvider.d.ts.map +1 -0
- package/lib/typescript/core/src/utils/time-provider/TimeProvider.d.ts +19 -0
- package/lib/typescript/core/src/utils/time-provider/TimeProvider.d.ts.map +1 -0
- package/lib/typescript/core/src/version.d.ts +2 -0
- package/lib/typescript/core/src/version.d.ts.map +1 -0
- package/lib/typescript/react-native-openfeature/src/index.d.ts +5 -0
- package/lib/typescript/react-native-openfeature/src/index.d.ts.map +1 -0
- package/lib/typescript/react-native-openfeature/src/provider.d.ts +27 -0
- package/lib/typescript/react-native-openfeature/src/provider.d.ts.map +1 -0
- package/package.json +87 -0
- package/src/index.ts +11 -0
- package/src/provider.ts +180 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { AdditionalEventDataForMapper } from '../../sdk/EventMappers/EventMapper';
|
|
2
|
+
import { EventMapper } from '../../sdk/EventMappers/EventMapper';
|
|
3
|
+
import type { ResourceKind } from '../types';
|
|
4
|
+
type RawResource = {
|
|
5
|
+
readonly key: string;
|
|
6
|
+
readonly statusCode: number;
|
|
7
|
+
readonly kind: ResourceKind;
|
|
8
|
+
readonly size: number;
|
|
9
|
+
context: object;
|
|
10
|
+
readonly timestampMs: number;
|
|
11
|
+
resourceContext: XMLHttpRequest | undefined;
|
|
12
|
+
};
|
|
13
|
+
type ResourceEvent = RawResource & AdditionalEventDataForMapper;
|
|
14
|
+
type NativeResource = {
|
|
15
|
+
key: string;
|
|
16
|
+
statusCode: number;
|
|
17
|
+
kind: ResourceKind;
|
|
18
|
+
size: number;
|
|
19
|
+
context: object;
|
|
20
|
+
timestampMs: number;
|
|
21
|
+
};
|
|
22
|
+
export type ResourceEventMapper = (event: ResourceEvent) => ResourceEvent | null;
|
|
23
|
+
export declare const generateResourceEventMapper: (eventMapper: ResourceEventMapper | undefined) => EventMapper<RawResource, ResourceEvent, NativeResource>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=resourceEventMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceEventMapper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/eventMappers/resourceEventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,KAAK,WAAW,GAAG;IACf,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAE,cAAc,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,KAAK,aAAa,GAAG,WAAW,GAAG,4BAA4B,CAAC;AAEhE,KAAK,cAAc,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAC9B,KAAK,EAAE,aAAa,KACnB,aAAa,GAAG,IAAI,CAAC;AAE1B,eAAO,MAAM,2BAA2B,gBACvB,mBAAmB,GAAG,SAAS,4DAO3C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const getCachedSessionId: () => string | undefined;
|
|
2
|
+
export declare const setCachedSessionId: (sessionId: string) => void;
|
|
3
|
+
export declare const clearCachedSessionId: () => void;
|
|
4
|
+
export declare const getCachedUserId: () => string | undefined;
|
|
5
|
+
export declare const setCachedUserId: (userId: string) => void;
|
|
6
|
+
export declare const clearCachedUserId: () => void;
|
|
7
|
+
export declare const getCachedAccountId: () => string | undefined;
|
|
8
|
+
export declare const setCachedAccountId: (accountId: string) => void;
|
|
9
|
+
export declare const clearCachedAccountId: () => void;
|
|
10
|
+
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../../core/src/rum/helper.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,kBAAkB,0BAE9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,SAEnD,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAEhC,CAAC;AAEF,eAAO,MAAM,eAAe,0BAE3B,CAAC;AAEF,eAAO,MAAM,eAAe,WAAY,MAAM,SAE7C,CAAC;AAEF,eAAO,MAAM,iBAAiB,YAE7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,0BAE9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,SAEnD,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAEhC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides RUM auto-instrumentation feature to track errors as RUM events.
|
|
3
|
+
*/
|
|
4
|
+
export declare class DdRumErrorTracking {
|
|
5
|
+
private static isTracking;
|
|
6
|
+
private static isInDefaultErrorHandler;
|
|
7
|
+
private static defaultErrorHandler;
|
|
8
|
+
private static defaultConsoleError;
|
|
9
|
+
/**
|
|
10
|
+
* Starts tracking errors and sends a RUM Error event every time an error is detected.
|
|
11
|
+
*/
|
|
12
|
+
static startTracking(): void;
|
|
13
|
+
static onGlobalError: (error: any, isFatal?: boolean) => void;
|
|
14
|
+
static onConsoleError: (...params: unknown[]) => void;
|
|
15
|
+
private static reportError;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=DdRumErrorTracking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdRumErrorTracking.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/instrumentation/DdRumErrorTracking.tsx"],"names":[],"mappings":"AAsBA;;GAEG;AACH,qBAAa,kBAAkB;IAC3B,OAAO,CAAC,MAAM,CAAC,UAAU,CAAS;IAElC,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAS;IAG/C,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAiE;IAGnG,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAiC;IAEnE;;OAEG;IACH,MAAM,CAAC,aAAa,IAAI,IAAI;IA8B5B,MAAM,CAAC,aAAa,UAAW,GAAG,YAAY,OAAO,KAAG,IAAI,CAsB1D;IAEF,MAAM,CAAC,cAAc,cAAe,OAAO,EAAE,KAAG,IAAI,CAyClD;IAEF,OAAO,CAAC,MAAM,CAAC,WAAW,CAOxB;CACL"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { DdRum } from '../../DdRum';
|
|
2
|
+
import type { RumActionType } from '../../types';
|
|
3
|
+
type BabelConfig = {
|
|
4
|
+
trackInteractions: boolean;
|
|
5
|
+
useAccessibilityLabel: boolean;
|
|
6
|
+
};
|
|
7
|
+
type TargetObject = {
|
|
8
|
+
getContent: (() => string[]) | undefined;
|
|
9
|
+
options: {
|
|
10
|
+
useContent: boolean;
|
|
11
|
+
useNamePrefix: boolean;
|
|
12
|
+
};
|
|
13
|
+
handlerArgs: any[];
|
|
14
|
+
componentName: string;
|
|
15
|
+
'dd-action-name': string[];
|
|
16
|
+
accessibilityLabel: string[];
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
declare class BabelInteractionTracking {
|
|
20
|
+
config: BabelConfig;
|
|
21
|
+
private timeProvider;
|
|
22
|
+
private telemetrySent;
|
|
23
|
+
private ddRum;
|
|
24
|
+
isInitialized: boolean;
|
|
25
|
+
getInstance(): BabelInteractionTracking;
|
|
26
|
+
attachRumInstance(ddRum: typeof DdRum): void;
|
|
27
|
+
getTelemetryConfig(): {
|
|
28
|
+
babel_plugin: {
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
track_interactions: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
private getTargetName;
|
|
34
|
+
wrapRumAction(func: (...args: any[]) => any, action: RumActionType, targetObject: TargetObject): (...args: any[]) => any;
|
|
35
|
+
}
|
|
36
|
+
export declare const DdBabelInteractionTracking: BabelInteractionTracking;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=DdBabelInteractionTracking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdBabelInteractionTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMjD,KAAK,WAAW,GAAG;IACf,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,KAAK,YAAY,GAAG;IAChB,UAAU,EAAE,CAAC,MAAM,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC;IACzC,OAAO,EAAE;QAAE,UAAU,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;IACzD,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAC;AAEF,cAAM,wBAAwB;IAC1B,MAAM,EAAE,WAAW,CAGjB;IAEF,OAAO,CAAC,YAAY,CAA2C;IAE/D,OAAO,CAAC,aAAa,CAAkB;IAEvC,OAAO,CAAC,KAAK,CAA6B;IAE1C,aAAa,EAAE,OAAO,CAAS;IAE/B,WAAW;IAIX,iBAAiB,CAAC,KAAK,EAAE,OAAO,KAAK;IAKrC,kBAAkB;;;;;;IASlB,OAAO,CAAC,aAAa;IAqDrB,aAAa,CACT,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC7B,MAAM,EAAE,aAAa,EACrB,YAAY,EAAE,YAAY,GAC3B,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG;CAsC7B;AAED,eAAO,MAAM,0BAA0B,0BAGtC,CAAC"}
|
package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { EventsInterceptor } from './EventsInterceptor';
|
|
2
|
+
export declare const UNKNOWN_TARGET_NAME = "unknown_target";
|
|
3
|
+
export type DdEventsInterceptorOptions = {
|
|
4
|
+
/**
|
|
5
|
+
* Specifies a custom prop to name RUM actions on elements having an `onPress` prop
|
|
6
|
+
* */
|
|
7
|
+
actionNameAttribute?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Determines whether the accessibility label can be used to resolve the action name.
|
|
10
|
+
* */
|
|
11
|
+
useAccessibilityLabel?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare class DdEventsInterceptor implements EventsInterceptor {
|
|
14
|
+
static ACTION_EVENT_DROPPED_DEBUG_MESSAGE: string;
|
|
15
|
+
private debouncingStartedTimestamp;
|
|
16
|
+
private actionNameAttribute?;
|
|
17
|
+
private useAccessibilityLabel;
|
|
18
|
+
constructor(options?: DdEventsInterceptorOptions);
|
|
19
|
+
interceptOnPress(...args: any[]): void;
|
|
20
|
+
private handleTargetEvent;
|
|
21
|
+
private resolveTargetName;
|
|
22
|
+
private resolveElementTypeName;
|
|
23
|
+
private findClosestActionLabel;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=DdEventsInterceptor.d.ts.map
|
package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdEventsInterceptor.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AAKpD,MAAM,MAAM,0BAA0B,GAAG;IACrC;;SAEK;IACL,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;SAEK;IACL,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,qBAAa,mBAAoB,YAAW,iBAAiB;IACzD,MAAM,CAAC,kCAAkC,SAKK;IAE9C,OAAO,CAAC,0BAA0B,CAAoB;IAEtD,OAAO,CAAC,mBAAmB,CAAC,CAAS;IACrC,OAAO,CAAC,qBAAqB,CAAU;gBAE3B,OAAO,GAAE,0BAA+B;IAKpD,gBAAgB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;IAqBtC,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,iBAAiB;IAoBzB,OAAO,CAAC,sBAAsB;IAU9B,OAAO,CAAC,sBAAsB;CAkBjC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { DdEventsInterceptorOptions } from './DdEventsInterceptor';
|
|
2
|
+
/**
|
|
3
|
+
* Provides RUM auto-instrumentation feature to track user interaction as RUM events.
|
|
4
|
+
* For now we are only covering the "onPress" events.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated since 3.0.0 – Use `@datadog/mobile-react-native-babel-plugin` instead.
|
|
7
|
+
*/
|
|
8
|
+
export declare class DdRumUserInteractionTracking {
|
|
9
|
+
private static isTracking;
|
|
10
|
+
private static eventsInterceptor;
|
|
11
|
+
private static originalCreateElement;
|
|
12
|
+
private static originalMemo;
|
|
13
|
+
private static originalJsx;
|
|
14
|
+
private static originalDevJsx;
|
|
15
|
+
private static patchCreateElementFunction;
|
|
16
|
+
/**
|
|
17
|
+
* Starts tracking user interactions and sends a RUM Action event every time a new interaction was detected.
|
|
18
|
+
* Please note that we are only considering as valid - for - tracking only the user interactions that have
|
|
19
|
+
* a visible output (either an UI state change or a Resource request)
|
|
20
|
+
*
|
|
21
|
+
* @deprecated since version 3.0.0
|
|
22
|
+
*/
|
|
23
|
+
static startTracking(options: DdEventsInterceptorOptions): void;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated since version 3.0.0
|
|
26
|
+
*/
|
|
27
|
+
static stopTracking(): void;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=DdRumUserInteractionTracking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdRumUserInteractionTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAOxE;;;;;GAKG;AACH,qBAAa,4BAA4B;IACrC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAS;IAClC,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAkD;IAClF,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAuB;IAC3D,OAAO,CAAC,MAAM,CAAC,YAAY,CAAc;IACzC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAQ;IAClC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAQ;IAErC,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAuBvC;IAEF;;;;;;OAMG;IACH,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,0BAA0B,GAAG,IAAI;IAsG/D;;OAEG;IACH,MAAM,CAAC,YAAY;CActB"}
|
package/lib/typescript/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventsInterceptor.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/EventsInterceptor.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,iBAAiB;IAC9B,gBAAgB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoOpEventsInterceptor.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,qBAAa,qBAAsB,YAAW,iBAAiB;IAE3D,gBAAgB,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI;CAG1C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Does a shallow comparison between 2 objects.
|
|
3
|
+
*
|
|
4
|
+
* In some rare cases, one of the objects can be `undefined` or `null`.
|
|
5
|
+
* This is documented in https://github.com/DataDog/dd-sdk-reactnative/issues/419.
|
|
6
|
+
*/
|
|
7
|
+
export declare const areObjectShallowEqual: (objectA: Record<string, unknown> | undefined | null, objectB: Record<string, unknown> | undefined | null) => boolean;
|
|
8
|
+
//# sourceMappingURL=ShallowObjectEqualityChecker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShallowObjectEqualityChecker.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.ts"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,YACrB,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,WAC1C,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,KACpD,OAgBF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts readable text from arbitrary values commonly found in React trees.
|
|
3
|
+
*
|
|
4
|
+
* @param node - Any value: primitives, arrays, iterables, functions, or React elements.
|
|
5
|
+
* @param prefer - Optional list of preferred values (e.g., title/label) to attempt first.
|
|
6
|
+
* @returns Array of strings.
|
|
7
|
+
*/
|
|
8
|
+
export declare function __ddExtractText(node: any, prefer?: any[]): string[];
|
|
9
|
+
//# sourceMappingURL=ddBabelUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ddBabelUtils.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/ddBabelUtils.ts"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,CA4HnE"}
|
package/lib/typescript/core/src/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getJsxRuntime.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/getJsxRuntime.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,aA8B1B,CAAC"}
|
package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import BigInt from 'big-integer';
|
|
2
|
+
import type { FirstPartyHost } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Provides RUM auto-instrumentation feature to track resources (fetch, XHR, axios) as RUM events.
|
|
5
|
+
*/
|
|
6
|
+
declare class RumResourceTracking {
|
|
7
|
+
private _isTracking;
|
|
8
|
+
private _requestProxy;
|
|
9
|
+
private _maxSampledTraceId;
|
|
10
|
+
get isTracking(): boolean;
|
|
11
|
+
get maxSampledTraceId(): BigInt.BigInteger;
|
|
12
|
+
/**
|
|
13
|
+
* Starts tracking resources and sends a RUM Resource event every time a network request is detected.
|
|
14
|
+
*/
|
|
15
|
+
startTracking({ resourceTraceSampleRate, firstPartyHosts }: {
|
|
16
|
+
resourceTraceSampleRate: number;
|
|
17
|
+
firstPartyHosts: FirstPartyHost[];
|
|
18
|
+
}): void;
|
|
19
|
+
stopTracking(): void;
|
|
20
|
+
}
|
|
21
|
+
export declare const DdRumResourceTracking: RumResourceTracking;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=DdRumResourceTracking.d.ts.map
|
package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdRumResourceTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.tsx"],"names":[],"mappings":"AAMA,OAAO,MAAM,MAAM,aAAa,CAAC;AAKjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAUlD;;GAEG;AACH,cAAM,mBAAmB;IACrB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAA6B;IAClD,OAAO,CAAC,kBAAkB,CAAkC;IAE5D,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,IAAI,iBAAiB,IAAI,MAAM,CAAC,UAAU,CAEzC;IAED;;OAEG;IACH,aAAa,CAAC,EACV,uBAAuB,EACvB,eAAe,EAClB,EAAE;QACC,uBAAuB,EAAE,MAAM,CAAC;QAChC,eAAe,EAAE,cAAc,EAAE,CAAC;KACrC,GAAG,IAAI;IA6BR,YAAY,IAAI,IAAI;CAUvB;AAED,eAAO,MAAM,qBAAqB,qBAGjC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DatadogTracingIdentifier } from './DatadogTracingIdentifier';
|
|
2
|
+
import type { SpanId, TraceId } from './TracingIdentifier';
|
|
3
|
+
/**
|
|
4
|
+
* An object that contains the tracing attributes as headers for network requests and attributes
|
|
5
|
+
* for RUM Resources.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DatadogTracingContext {
|
|
8
|
+
private readonly headersForRequest;
|
|
9
|
+
private readonly rumResourceContext;
|
|
10
|
+
readonly traceId?: DatadogTracingIdentifier;
|
|
11
|
+
readonly spanId?: DatadogTracingIdentifier;
|
|
12
|
+
constructor(requestHeaders: {
|
|
13
|
+
header: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[], resourceContext: Record<string, string | number>, traceId: TraceId | undefined | void, spanId: SpanId | undefined | void);
|
|
16
|
+
/**
|
|
17
|
+
* Get the tracing headers to add to your network request.
|
|
18
|
+
* @returns the headers for the request as a key-value object.
|
|
19
|
+
*/
|
|
20
|
+
getHeadersForRequest(): Record<string, string>;
|
|
21
|
+
/**
|
|
22
|
+
* Get the tracing headers to add to your network request, as an array of key-value objects.
|
|
23
|
+
* @returns the headers for the request as an array of key-value objects.
|
|
24
|
+
*/
|
|
25
|
+
getHeadersForRequestAsArray(): {
|
|
26
|
+
header: string;
|
|
27
|
+
value: string;
|
|
28
|
+
}[];
|
|
29
|
+
/**
|
|
30
|
+
* Get the RUM Resource Context tracing attributes to your RUM Resource context.
|
|
31
|
+
* @returns the RUM Resource context tracing attributes.
|
|
32
|
+
*/
|
|
33
|
+
getRumResourceContext(): Record<string, string | number>;
|
|
34
|
+
/**
|
|
35
|
+
* Convenience method to inject the tracing headers to your request.
|
|
36
|
+
* @param inject a callback that is called for each header that should be added to your request.
|
|
37
|
+
*/
|
|
38
|
+
injectHeadersForRequest(inject: (header: string, value: string) => void): void;
|
|
39
|
+
/**
|
|
40
|
+
* Convenience method to inject the RUM Resource attributes to your RUM Resource context.
|
|
41
|
+
* @param inject a callback that is called for each attribute that should be added to your RUM Resource context.
|
|
42
|
+
*/
|
|
43
|
+
injectRumResourceContext(inject: (attribute: string, value: string | number) => void): void;
|
|
44
|
+
private processHeaders;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=DatadogTracingContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatadogTracingContext.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG3D;;;GAGG;AACH,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAsC;IACxE,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAkC;IACrE,QAAQ,CAAC,OAAO,CAAC,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,MAAM,CAAC,EAAE,wBAAwB,CAAC;gBAGvC,cAAc,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,EACnD,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAChD,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAUrC;;;OAGG;IACH,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAM9C;;;OAGG;IACH,2BAA2B,IAAI;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE;IAIlE;;;OAGG;IACH,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAIxD;;;OAGG;IACH,uBAAuB,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI;IAMvE;;;OAGG;IACH,wBAAwB,CACpB,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI;IAO/D,OAAO,CAAC,cAAc;CAmBzB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BigInteger } from 'big-integer';
|
|
2
|
+
import type { TraceId, SpanId, TracingIdType, TracingIdFormat } from './TracingIdentifier';
|
|
3
|
+
/**
|
|
4
|
+
* A read-only wrapper of {@link TracingIdentifier} for public API usage.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DatadogTracingIdentifier {
|
|
7
|
+
/**
|
|
8
|
+
* Read-only generated ID as a {@link BigInteger}.
|
|
9
|
+
*/
|
|
10
|
+
get id(): BigInteger;
|
|
11
|
+
/**
|
|
12
|
+
* Read-only type to determine whether the identifier is a {@link TraceId} or a {@link SpanId}.
|
|
13
|
+
*/
|
|
14
|
+
get type(): TracingIdType;
|
|
15
|
+
private uuid;
|
|
16
|
+
constructor(uuid: TraceId | SpanId);
|
|
17
|
+
/**
|
|
18
|
+
* Returns a string representation of the Tracing ID.
|
|
19
|
+
* @param format - The type of representation to use.
|
|
20
|
+
* @returns The ID as a string in the specified representation type.
|
|
21
|
+
*/
|
|
22
|
+
toString(format: TracingIdFormat): string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=DatadogTracingIdentifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatadogTracingIdentifier.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EACR,OAAO,EACP,MAAM,EAEN,aAAa,EACb,eAAe,EAClB,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,qBAAa,wBAAwB;IACjC;;OAEG;IACH,IAAI,EAAE,IAAI,UAAU,CAEnB;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,aAAa,CAExB;IAED,OAAO,CAAC,IAAI,CAAoB;gBAEb,IAAI,EAAE,OAAO,GAAG,MAAM;IAIzC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM;CAG5C"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { BigInteger } from 'big-integer';
|
|
2
|
+
export declare const MAX_TRACE_ID: BigInteger;
|
|
3
|
+
/**
|
|
4
|
+
* Available formats for representing the {@link TracingIdentifier} as a string.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum TracingIdFormat {
|
|
7
|
+
/**
|
|
8
|
+
* Decimal string representation of the full tracing id.
|
|
9
|
+
*/
|
|
10
|
+
decimal = 0,
|
|
11
|
+
/**
|
|
12
|
+
* The low bits of the tracing id as a decimal.
|
|
13
|
+
*/
|
|
14
|
+
lowDecimal = 1,
|
|
15
|
+
/**
|
|
16
|
+
* The high bits of the tracing id as a decimal.
|
|
17
|
+
*/
|
|
18
|
+
highDecimal = 2,
|
|
19
|
+
/**
|
|
20
|
+
* Hexadecimal string representation of the full tracing id.
|
|
21
|
+
*/
|
|
22
|
+
hex = 3,
|
|
23
|
+
/**
|
|
24
|
+
* Hexadecimal string representation of the low bits of the tracing id.
|
|
25
|
+
*/
|
|
26
|
+
lowHex = 4,
|
|
27
|
+
/**
|
|
28
|
+
* Hexadecimal string representation of the high bits of the tracing id.
|
|
29
|
+
*/
|
|
30
|
+
highHex = 5,
|
|
31
|
+
/**
|
|
32
|
+
* Padded hexadecimal string representation of the full tracing id.
|
|
33
|
+
*/
|
|
34
|
+
paddedHex = 6,
|
|
35
|
+
/**
|
|
36
|
+
* Padded hexadecimal string representation of the low bits of the tracing id.
|
|
37
|
+
*/
|
|
38
|
+
paddedLowHex = 7,
|
|
39
|
+
/**
|
|
40
|
+
* Padded hexadecimal string representation of the high bits of the tracing id.
|
|
41
|
+
*/
|
|
42
|
+
paddedHighHex = 8
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A {@link TracingIdentifier} used for Traces (128 bit).
|
|
46
|
+
*/
|
|
47
|
+
export type TraceId = TracingIdentifier & {
|
|
48
|
+
_brand: 'traceId';
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* A {@link TracingIdentifier} used for Spans (64 bit).
|
|
52
|
+
*/
|
|
53
|
+
export type SpanId = TracingIdentifier & {
|
|
54
|
+
_brand: 'spanId';
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* The tracing identifier type.
|
|
58
|
+
*/
|
|
59
|
+
export declare enum TracingIdType {
|
|
60
|
+
/**
|
|
61
|
+
* 128-bit UUID.
|
|
62
|
+
*/
|
|
63
|
+
trace = 0,
|
|
64
|
+
/**
|
|
65
|
+
* 64-bit UUID.
|
|
66
|
+
*/
|
|
67
|
+
span = 1
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* A {@link TracingIdentifier} is a unique UUID that can be 64bit or 128bit, and provides
|
|
71
|
+
* convenient methods to represent it as a HEX or DECIMAL string, and it allows the masking
|
|
72
|
+
* of its low or high bits.
|
|
73
|
+
*
|
|
74
|
+
* Create a new identifier by calling {@link TracingIdentifier.createTraceId()} or
|
|
75
|
+
* {@link TracingIdentifier.createSpanId()}.
|
|
76
|
+
*/
|
|
77
|
+
export declare class TracingIdentifier {
|
|
78
|
+
/**
|
|
79
|
+
* Read-only generated ID as a {@link BigInteger}.
|
|
80
|
+
*/
|
|
81
|
+
readonly id: BigInteger;
|
|
82
|
+
/**
|
|
83
|
+
* Read-only type to determine whether the identifier is a {@link TraceId} or a {@link SpanId}.
|
|
84
|
+
*/
|
|
85
|
+
readonly type: TracingIdType;
|
|
86
|
+
/**
|
|
87
|
+
* Creates a new unique Trace ID.
|
|
88
|
+
* @returns the generated {@link TraceId}.
|
|
89
|
+
*/
|
|
90
|
+
static createTraceId(): TraceId;
|
|
91
|
+
/**
|
|
92
|
+
* Creates a new unique Span ID.
|
|
93
|
+
* @returns the generated {@link SpanId}.
|
|
94
|
+
*/
|
|
95
|
+
static createSpanId(): SpanId;
|
|
96
|
+
/**
|
|
97
|
+
* Crate a Tracing Identifier from a given BigInt ID and type.
|
|
98
|
+
* @param id the BigInt ID.
|
|
99
|
+
* @param type the type of tracing identifier.
|
|
100
|
+
* @returns the generated {@link TraceId} or {@link SpanId}.
|
|
101
|
+
*/
|
|
102
|
+
static fromBigInt(id: BigInteger, type: TracingIdType): TraceId | SpanId;
|
|
103
|
+
/**
|
|
104
|
+
* Private constructor to initialize the {@link TracingIdentifier} based on the given
|
|
105
|
+
* {@link TracingIdType}.
|
|
106
|
+
*/
|
|
107
|
+
private constructor();
|
|
108
|
+
/**
|
|
109
|
+
* Generates a unique ID with the given format.
|
|
110
|
+
* @param format - the desired format (64bit or 128bit).
|
|
111
|
+
* @returns the generated UUID as a {@link BigInteger}.
|
|
112
|
+
*/
|
|
113
|
+
private generateUUID;
|
|
114
|
+
/**
|
|
115
|
+
* Returns a string representation of the Tracing ID.
|
|
116
|
+
* @param format - The type of representation to use.
|
|
117
|
+
* @returns The ID as a string in the specified representation type.
|
|
118
|
+
*/
|
|
119
|
+
toString(format: TracingIdFormat): string;
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=TracingIdentifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TracingIdentifier.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,eAAO,MAAM,YAAY,YAA6C,CAAC;AAEvE;;GAEG;AACH,oBAAY,eAAe;IACvB;;OAEG;IACH,OAAO,IAAA;IAEP;;OAEG;IACH,UAAU,IAAA;IAEV;;OAEG;IACH,WAAW,IAAA;IAEX;;OAEG;IACH,GAAG,IAAA;IAEH;;OAEG;IACH,MAAM,IAAA;IAEN;;OAEG;IACH,OAAO,IAAA;IAEP;;OAEG;IACH,SAAS,IAAA;IAET;;OAEG;IACH,YAAY,IAAA;IAEZ;;OAEG;IACH,aAAa,IAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,iBAAiB,GAAG;IACtC,MAAM,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,iBAAiB,GAAG;IACrC,MAAM,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,oBAAY,aAAa;IACrB;;OAEG;IACH,KAAK,IAAA;IACL;;OAEG;IACH,IAAI,IAAA;CACP;AAgBD;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAE7B;;;OAGG;WACW,aAAa,IAAI,OAAO;IAItC;;;OAGG;WACW,YAAY,IAAI,MAAM;IAIpC;;;;;OAKG;WACW,UAAU,CACpB,EAAE,EAAE,UAAU,EACd,IAAI,EAAE,aAAa,GACpB,OAAO,GAAG,MAAM;IAInB;;;OAGG;IACH,OAAO;IAKP;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAgCpB;;;;OAIG;IACI,QAAQ,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM;CA6CnD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PropagatorType } from '../../../types';
|
|
2
|
+
import type { RegexMap } from '../requestProxy/interfaces/RequestProxy';
|
|
3
|
+
import type { DdRumResourceTracingAttributes } from './distributedTracingAttributes';
|
|
4
|
+
import type { Hostname } from './firstPartyHosts';
|
|
5
|
+
export declare const getTracingAttributes: ({ hostname, firstPartyHostsRegexMap, tracingSamplingRate, rumSessionId, userId, accountId }: {
|
|
6
|
+
hostname: Hostname | null;
|
|
7
|
+
firstPartyHostsRegexMap: RegexMap;
|
|
8
|
+
tracingSamplingRate: number;
|
|
9
|
+
rumSessionId?: string | undefined;
|
|
10
|
+
userId?: string | undefined;
|
|
11
|
+
accountId?: string | undefined;
|
|
12
|
+
}) => DdRumResourceTracingAttributes;
|
|
13
|
+
export declare const generateTracingAttributesWithSampling: (tracingSamplingRate: number, propagatorTypes: PropagatorType[], rumSessionId?: string, userId?: string, accountId?: string) => DdRumResourceTracingAttributes;
|
|
14
|
+
//# sourceMappingURL=distributedTracing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distributedTracing.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAGxE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAErF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAQlD,eAAO,MAAM,oBAAoB;cAQnB,QAAQ,GAAG,IAAI;;yBAEJ,MAAM;;;;MAI3B,8BAkBH,CAAC;AAEF,eAAO,MAAM,qCAAqC,wBACzB,MAAM,mBACV,cAAc,EAAE,iBAClB,MAAM,WACZ,MAAM,cACH,MAAM,KACnB,8BA0BF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PropagatorType } from '../../../types';
|
|
2
|
+
import type { SpanId, TraceId } from './TracingIdentifier';
|
|
3
|
+
export type DdRumResourceTracingAttributes = {
|
|
4
|
+
tracingStrategy: 'KEEP';
|
|
5
|
+
traceId: TraceId;
|
|
6
|
+
spanId: SpanId;
|
|
7
|
+
samplingPriorityHeader: '1' | '0';
|
|
8
|
+
rulePsr: number;
|
|
9
|
+
propagatorTypes: PropagatorType[];
|
|
10
|
+
rumSessionId?: string;
|
|
11
|
+
userId?: string;
|
|
12
|
+
accountId?: string;
|
|
13
|
+
baggageHeaders?: Set<string>;
|
|
14
|
+
} | {
|
|
15
|
+
tracingStrategy: 'DISCARD';
|
|
16
|
+
traceId?: void;
|
|
17
|
+
spanId?: void;
|
|
18
|
+
samplingPriorityHeader: '0';
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=distributedTracingAttributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distributedTracingAttributes.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,MAAM,8BAA8B,GACpC;IACI,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB,EAAE,GAAG,GAAG,GAAG,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAChC,GACD;IACI,eAAe,EAAE,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,sBAAsB,EAAE,GAAG,CAAC;CAC/B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PropagatorType } from '../../../types';
|
|
2
|
+
import type { FirstPartyHost } from '../../../types';
|
|
3
|
+
import { DatadogTracingContext } from './DatadogTracingContext';
|
|
4
|
+
import type { DdRumResourceTracingAttributes } from './distributedTracingAttributes';
|
|
5
|
+
export declare const getTracingHeadersFromAttributes: (tracingAttributes: DdRumResourceTracingAttributes) => {
|
|
6
|
+
header: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const getTracingContext: (url: string, tracingSamplingRate: number, firstPartyHosts: FirstPartyHost[], rumSessionId?: string, userId?: string, accountId?: string) => DatadogTracingContext;
|
|
10
|
+
export declare const getTracingContextForPropagators: (propagators: PropagatorType[], tracingSamplingRate: number, rumSessionId?: string, userId?: string, accountId?: string) => DatadogTracingContext;
|
|
11
|
+
//# sourceMappingURL=distributedTracingHeaders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distributedTracingHeaders.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AA0BrF,eAAO,MAAM,+BAA+B,sBACrB,8BAA8B,KAClD;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EA4HnC,CAAC;AAEF,eAAO,MAAM,iBAAiB,QACrB,MAAM,uBACU,MAAM,mBACV,cAAc,EAAE,iBAClB,MAAM,WACZ,MAAM,cACH,MAAM,KACnB,qBAkBF,CAAC;AAEF,eAAO,MAAM,+BAA+B,gBAC3B,cAAc,EAAE,uBACR,MAAM,iBACZ,MAAM,WACZ,MAAM,cACH,MAAM,KACnB,qBAWF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import BigInt from 'big-integer';
|
|
2
|
+
import type { TraceId } from './TracingIdentifier';
|
|
3
|
+
declare class _DistributedTracingSampling {
|
|
4
|
+
private _maxSampledTraceId;
|
|
5
|
+
get maxSampledTraceId(): BigInt.BigInteger;
|
|
6
|
+
setResourceTraceSampleRate(resourceTraceSampleRate: number): void;
|
|
7
|
+
shouldSampleTrace(tracingSamplingRate: number, sessionId: string | null | undefined, traceId: TraceId): boolean;
|
|
8
|
+
private static getMaxTraceId;
|
|
9
|
+
}
|
|
10
|
+
export declare const DistributedTracingSampling: _DistributedTracingSampling;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=distributedTracingSampling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distributedTracingSampling.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.ts"],"names":[],"mappings":"AAIA,OAAO,MAAM,MAAM,aAAa,CAAC;AAKjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAOnD,cAAM,2BAA2B;IAC7B,OAAO,CAAC,kBAAkB,CAAkC;IAE5D,IAAI,iBAAiB,IAAI,MAAM,CAAC,UAAU,CAEzC;IAED,0BAA0B,CAAC,uBAAuB,EAAE,MAAM;IAM1D,iBAAiB,CACb,mBAAmB,EAAE,MAAM,EAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,EAAE,OAAO,GACjB,OAAO;IAsCV,OAAO,CAAC,MAAM,CAAC,aAAa;CAG/B;AAED,eAAO,MAAM,0BAA0B,6BAGtC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FirstPartyHost, PropagatorType } from '../../../types';
|
|
2
|
+
import type { RegexMap } from '../requestProxy/interfaces/RequestProxy';
|
|
3
|
+
export type Hostname = {
|
|
4
|
+
_type: 'Hostname';
|
|
5
|
+
} & string;
|
|
6
|
+
export declare const NO_MATCH_REGEX: RegExp;
|
|
7
|
+
export declare const firstPartyHostsRegexMapBuilder: (firstPartyHosts: FirstPartyHost[]) => RegexMap;
|
|
8
|
+
export declare const getPropagatorsForHost: (hostname: Hostname, firstPartyHostsRegexMap: RegexMap) => PropagatorType[] | null;
|
|
9
|
+
//# sourceMappingURL=firstPartyHosts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firstPartyHosts.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAExE,MAAM,MAAM,QAAQ,GAAG;IAAE,KAAK,EAAE,UAAU,CAAA;CAAE,GAAG,MAAM,CAAC;AAGtD,eAAO,MAAM,cAAc,QAAmB,CAAC;AAO/C,eAAO,MAAM,8BAA8B,oBACtB,cAAc,EAAE,aA0BpC,CAAC;AA2BF,eAAO,MAAM,qBAAqB,aACpB,QAAQ,wCAEnB,cAAc,EAAE,GAAG,IAQrB,CAAC"}
|
package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Datadog headers
|
|
3
|
+
*/
|
|
4
|
+
export declare const SAMPLING_PRIORITY_HEADER_KEY = "x-datadog-sampling-priority";
|
|
5
|
+
export declare const ORIGIN_HEADER_KEY = "x-datadog-origin";
|
|
6
|
+
export declare const ORIGIN_RUM = "rum";
|
|
7
|
+
export declare const TRACE_ID_HEADER_KEY = "x-datadog-trace-id";
|
|
8
|
+
export declare const PARENT_ID_HEADER_KEY = "x-datadog-parent-id";
|
|
9
|
+
export declare const TAGS_HEADER_KEY = "x-datadog-tags";
|
|
10
|
+
export declare const DD_TRACE_ID_TAG = "_dd.p.tid";
|
|
11
|
+
export declare const DD_RUM_SESSION_ID_TAG = "session.id";
|
|
12
|
+
export declare const DD_RUM_USER_ID_TAG = "user.id";
|
|
13
|
+
export declare const DD_RUM_ACCOUNT_ID_TAG = "account.id";
|
|
14
|
+
/**
|
|
15
|
+
* OTel headers
|
|
16
|
+
*/
|
|
17
|
+
export declare const TRACECONTEXT_HEADER_KEY = "traceparent";
|
|
18
|
+
export declare const TRACESTATE_HEADER_KEY = "tracestate";
|
|
19
|
+
export declare const BAGGAGE_HEADER_KEY = "baggage";
|
|
20
|
+
export declare const B3_HEADER_KEY = "b3";
|
|
21
|
+
export declare const B3_MULTI_TRACE_ID_HEADER_KEY = "X-B3-TraceId";
|
|
22
|
+
export declare const B3_MULTI_SPAN_ID_HEADER_KEY = "X-B3-SpanId";
|
|
23
|
+
export declare const B3_MULTI_SAMPLED_HEADER_KEY = "X-B3-Sampled";
|
|
24
|
+
//# sourceMappingURL=headers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,4BAA4B,gCAAgC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AACpD,eAAO,MAAM,UAAU,QAAQ,CAAC;AAChC,eAAO,MAAM,mBAAmB,uBAAuB,CAAC;AACxD,eAAO,MAAM,oBAAoB,wBAAwB,CAAC;AAC1D,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,eAAe,cAAc,CAAC;AAC3C,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAClD,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AACrD,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAClD,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAC3D,eAAO,MAAM,2BAA2B,gBAAgB,CAAC;AACzD,eAAO,MAAM,2BAA2B,iBAAiB,CAAC"}
|
package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphqlHeaders.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,sCAAsC,QAA4D,CAAC;AAChH,eAAO,MAAM,iCAAiC,QAAuD,CAAC;AACtG,eAAO,MAAM,sCAAsC,QAA4D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/resourceTracking/headers.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,4BAA4B,sBAAsB,CAAC;AAChE,eAAO,MAAM,sBAAsB,QAA4C,CAAC;AAEhF,eAAO,MAAM,qBAAqB,WAAY,MAAM,4BAEnD,CAAC"}
|