@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,122 @@
|
|
|
1
|
+
import type { DatadogProviderConfiguration } from './config/DatadogProviderConfiguration';
|
|
2
|
+
import type { AutoInstrumentationConfiguration } from './config/async/AutoInstrumentationConfiguration';
|
|
3
|
+
import type { PartialInitializationConfiguration } from './config/async/PartialInitializationConfiguration';
|
|
4
|
+
import { CoreConfiguration } from './config/features/CoreConfiguration';
|
|
5
|
+
import type { TrackingConsent } from './config/types/TrackingConsent';
|
|
6
|
+
import type { Attributes } from './sdk/AttributesSingleton/types';
|
|
7
|
+
/**
|
|
8
|
+
* This class initializes the Datadog SDK, and sets up communication with the server.
|
|
9
|
+
*/
|
|
10
|
+
export declare class DdSdkReactNative {
|
|
11
|
+
private static readonly DD_SOURCE_KEY;
|
|
12
|
+
private static readonly DD_SDK_VERSION;
|
|
13
|
+
private static readonly DD_VERSION;
|
|
14
|
+
private static readonly DD_VERSION_SUFFIX;
|
|
15
|
+
private static readonly DD_REACT_NATIVE_VERSION;
|
|
16
|
+
private static wasAutoInstrumented;
|
|
17
|
+
private static features?;
|
|
18
|
+
/**
|
|
19
|
+
* Initializes the Datadog SDK.
|
|
20
|
+
* @param configuration the configuration for the SDK library
|
|
21
|
+
* @returns a Promise.
|
|
22
|
+
*/
|
|
23
|
+
static initialize: (configuration: CoreConfiguration) => Promise<void>;
|
|
24
|
+
private static initializeNativeSDK;
|
|
25
|
+
/**
|
|
26
|
+
* FOR INTERNAL USE ONLY.
|
|
27
|
+
*/
|
|
28
|
+
static _initializeFromDatadogProvider: (configuration: DatadogProviderConfiguration) => Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* FOR INTERNAL USE ONLY.
|
|
31
|
+
*/
|
|
32
|
+
static _enableFeaturesFromDatadogProvider: (features: AutoInstrumentationConfiguration) => void;
|
|
33
|
+
static _enableFeaturesFromDatadogProviderAsync: (features: AutoInstrumentationConfiguration) => Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* FOR INTERNAL USE ONLY.
|
|
36
|
+
*/
|
|
37
|
+
static _initializeFromDatadogProviderWithConfigurationAsync: (configuration: PartialInitializationConfiguration) => Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Adds a specific attribute to the global context attached with all future Logs, Spans and RUM.
|
|
40
|
+
* @param key: Key that identifies the attribute.
|
|
41
|
+
* @param value: Value linked to the attribute.
|
|
42
|
+
*/
|
|
43
|
+
static addAttribute: (key: string, value: unknown) => Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Removes an attribute from the context attached with all future Logs, Spans and RUM events.
|
|
46
|
+
* @param key: They key associated with the attribute to be removed.
|
|
47
|
+
*/
|
|
48
|
+
static removeAttribute: (key: string) => Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Adds a set of attributes to the global context attached with all future Logs, Spans and RUM events.
|
|
51
|
+
* @param attributes: The global context attributes.
|
|
52
|
+
* @returns a Promise.
|
|
53
|
+
*/
|
|
54
|
+
static addAttributes: (attributes: Attributes) => Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Removes a set of attributes from the context attached with all future Logs, Spans and RUM events.
|
|
57
|
+
* @param keys: They keys associated with the attributes to be removed.
|
|
58
|
+
*/
|
|
59
|
+
static removeAttributes: (keys: string[]) => Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Sets the user information.
|
|
62
|
+
* @param id: A mandatory unique user identifier (relevant to your business domain).
|
|
63
|
+
* @param name: The user name or alias.
|
|
64
|
+
* @param email: The user email.
|
|
65
|
+
* @param extraInfo: Additional information.
|
|
66
|
+
* @returns a Promise.
|
|
67
|
+
*/
|
|
68
|
+
static setUserInfo: (userInfo: {
|
|
69
|
+
id: string;
|
|
70
|
+
name?: string;
|
|
71
|
+
email?: string;
|
|
72
|
+
extraInfo?: Record<string, unknown>;
|
|
73
|
+
}) => Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Clears the user information.
|
|
76
|
+
* @returns a Promise.
|
|
77
|
+
*/
|
|
78
|
+
static clearUserInfo: () => Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Set the user information.
|
|
81
|
+
* @param extraUserInfo: The additional information. (To set the id, name or email please user setUserInfo).
|
|
82
|
+
* @returns a Promise.
|
|
83
|
+
*/
|
|
84
|
+
static addUserExtraInfo: (extraUserInfo: Record<string, unknown>) => Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Sets the account information.
|
|
87
|
+
* @param id: A mandatory unique account identifier (relevant to your business domain).
|
|
88
|
+
* @param name: The account name.
|
|
89
|
+
* @param extraInfo: Additional information.
|
|
90
|
+
* @returns a Promise.
|
|
91
|
+
*/
|
|
92
|
+
static setAccountInfo: (accountInfo: {
|
|
93
|
+
id: string;
|
|
94
|
+
name?: string;
|
|
95
|
+
extraInfo?: Record<string, unknown>;
|
|
96
|
+
}) => Promise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* Clears the account information.
|
|
99
|
+
* @returns a Promise.
|
|
100
|
+
*/
|
|
101
|
+
static clearAccountInfo: () => Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Set the account information.
|
|
104
|
+
* @param extraAccountInfo: The additional information. (To set the id or name please use setAccountInfo).
|
|
105
|
+
* @returns a Promise.
|
|
106
|
+
*/
|
|
107
|
+
static addAccountExtraInfo: (extraAccountInfo: Record<string, unknown>) => Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* Set the tracking consent regarding the data collection.
|
|
110
|
+
* @param trackingConsent: One of TrackingConsent values.
|
|
111
|
+
* @returns a Promise.
|
|
112
|
+
*/
|
|
113
|
+
static setTrackingConsent: (consent: TrackingConsent) => Promise<void>;
|
|
114
|
+
/**
|
|
115
|
+
* Clears all data that has not already been sent to Datadog servers
|
|
116
|
+
* @returns a Promise
|
|
117
|
+
*/
|
|
118
|
+
static clearAllData: () => Promise<void>;
|
|
119
|
+
private static buildConfiguration;
|
|
120
|
+
private static enableFeatures;
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=DdSdkReactNative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdSdkReactNative.d.ts","sourceRoot":"","sources":["../../../../../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B,YAAa,eAAe,KAAG,QAAQ,IAAI,CAAC,CAGnE;IAEF;;;OAGG;IACH,MAAM,CAAC,YAAY,QAAO,QAAQ,IAAI,CAAC,CAGrC;IAEF,OAAO,CAAC,MAAM,CAAC,kBAAkB,CA6F/B;IAEF,OAAO,CAAC,MAAM,CAAC,cAAc;CAoFhC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SdkVerbosity } from './config/types/SdkVerbosity';
|
|
2
|
+
export declare const DATADOG_MESSAGE_PREFIX = "DATADOG:";
|
|
3
|
+
/**
|
|
4
|
+
* /!\ DO NOT USE THIS IN YOUR APP /!\\
|
|
5
|
+
*
|
|
6
|
+
* This logger is only for debugging the Datadog SDK.
|
|
7
|
+
*/
|
|
8
|
+
export declare class InternalLog {
|
|
9
|
+
private static levelMap;
|
|
10
|
+
static verbosity: SdkVerbosity | undefined;
|
|
11
|
+
static log(message: string, verbosity: SdkVerbosity): void;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=InternalLog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalLog.d.ts","sourceRoot":"","sources":["../../../../../core/src/InternalLog.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,eAAO,MAAM,sBAAsB,aAAa,CAAC;AAEjD;;;;GAIG;AACH,qBAAa,WAAW;IACpB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAKpB;IAEH,OAAc,SAAS,EAAE,YAAY,GAAG,SAAS,CAAa;WAEhD,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,GAAG,IAAI;CA0BpE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CoreConfiguration } from './features/CoreConfiguration';
|
|
2
|
+
import { InitializationMode } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* SDK Initialization configuration for `DatadogProvider`.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DatadogProviderConfiguration extends CoreConfiguration {
|
|
7
|
+
/**
|
|
8
|
+
* If set to ASYNC, the initialization will be delayed until all animations are completed.
|
|
9
|
+
*/
|
|
10
|
+
initializationMode: InitializationMode;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=DatadogProviderConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatadogProviderConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../core/src/config/DatadogProviderConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,iBAAiB;IAC/D;;OAEG;IACI,kBAAkB,EAAE,kBAAkB,CAA2B;CAC3E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ActionEventMapper } from '../rum/eventMappers/actionEventMapper';
|
|
2
|
+
import type { ErrorEventMapper } from '../rum/eventMappers/errorEventMapper';
|
|
3
|
+
import type { ResourceEventMapper } from '../rum/eventMappers/resourceEventMapper';
|
|
4
|
+
import { PropagatorType } from '../rum/types';
|
|
5
|
+
import { DatadogProviderConfiguration } from './DatadogProviderConfiguration';
|
|
6
|
+
import type { JsonConfiguration } from './FileBasedConfiguration.type';
|
|
7
|
+
export declare class FileBasedConfiguration extends DatadogProviderConfiguration {
|
|
8
|
+
constructor(params?: {
|
|
9
|
+
configuration?: unknown;
|
|
10
|
+
errorEventMapper?: ErrorEventMapper;
|
|
11
|
+
resourceEventMapper?: ResourceEventMapper;
|
|
12
|
+
actionEventMapper?: ActionEventMapper;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export declare const getJSONConfiguration: (userSpecifiedConfiguration: unknown) => JsonConfiguration;
|
|
16
|
+
export declare const formatPropagatorType: (propagatorType: string) => PropagatorType;
|
|
17
|
+
//# sourceMappingURL=FileBasedConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileBasedConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../core/src/config/FileBasedConfiguration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAEnF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AA8BvE,qBAAa,sBAAuB,SAAQ,4BAA4B;gBACxD,MAAM,CAAC,EAAE;QACjB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;QAC1C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;KACzC;CAqEJ;AAmBD,eAAO,MAAM,oBAAoB,+BACD,OAAO,KACpC,iBAuFF,CAAC;AAuBF,eAAO,MAAM,oBAAoB,mBACb,MAAM,KACvB,cAoBF,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { FirstPartyHost } from '../rum/types';
|
|
2
|
+
import type { CoreConfigurationOptions } from './features/CoreConfiguration.type';
|
|
3
|
+
import type { BatchProcessingLevel, BatchSize, ProxyConfiguration, SdkVerbosity, TrackingConsent, UploadFrequency, VitalsUpdateFrequency } from './types';
|
|
4
|
+
export interface JsonConfiguration extends CoreConfigurationOptions {
|
|
5
|
+
clientToken: string;
|
|
6
|
+
env: string;
|
|
7
|
+
trackingConsent?: TrackingConsent;
|
|
8
|
+
verbosity?: SdkVerbosity;
|
|
9
|
+
service?: string;
|
|
10
|
+
site?: string;
|
|
11
|
+
batchSize?: BatchSize;
|
|
12
|
+
batchProcessingLevel?: BatchProcessingLevel;
|
|
13
|
+
proxyConfiguration?: ProxyConfiguration;
|
|
14
|
+
uploadFrequency?: UploadFrequency;
|
|
15
|
+
version?: string;
|
|
16
|
+
versionSuffix?: string;
|
|
17
|
+
rumConfiguration?: {
|
|
18
|
+
applicationId: string;
|
|
19
|
+
useAccessibilityLabel?: boolean;
|
|
20
|
+
trackInteractions?: boolean;
|
|
21
|
+
trackResources?: boolean;
|
|
22
|
+
trackErrors?: boolean;
|
|
23
|
+
longTaskThresholdMs?: number;
|
|
24
|
+
actionNameAttribute?: string;
|
|
25
|
+
appHangThreshold?: number;
|
|
26
|
+
firstPartyHosts?: FirstPartyHost[];
|
|
27
|
+
initialResourceThreshold?: number;
|
|
28
|
+
trackMemoryWarnings?: boolean;
|
|
29
|
+
nativeCrashReportEnabled?: boolean;
|
|
30
|
+
nativeLongTaskThresholdMs?: number;
|
|
31
|
+
nativeViewTracking?: boolean;
|
|
32
|
+
nativeInteractionTracking?: boolean;
|
|
33
|
+
customEndpoint?: string;
|
|
34
|
+
sessionSampleRate?: number;
|
|
35
|
+
resourceTraceSampleRate?: number;
|
|
36
|
+
trackBackgroundEvents?: boolean;
|
|
37
|
+
trackFrustrations?: boolean;
|
|
38
|
+
trackNonFatalAnrs?: boolean;
|
|
39
|
+
trackWatchdogTerminations?: boolean;
|
|
40
|
+
vitalsUpdateFrequency?: VitalsUpdateFrequency;
|
|
41
|
+
telemetrySampleRate?: number;
|
|
42
|
+
};
|
|
43
|
+
traceConfiguration?: {
|
|
44
|
+
customEndpoint?: string;
|
|
45
|
+
};
|
|
46
|
+
logsConfiguration?: {
|
|
47
|
+
bundleLogsWithRum?: boolean;
|
|
48
|
+
bundleLogsWithTraces?: boolean;
|
|
49
|
+
customEndpoint?: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=FileBasedConfiguration.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileBasedConfiguration.type.d.ts","sourceRoot":"","sources":["../../../../../../core/src/config/FileBasedConfiguration.type.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EACR,oBAAoB,EACpB,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,qBAAqB,EACxB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;QACnC,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAClC,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B,wBAAwB,CAAC,EAAE,OAAO,CAAC;QACnC,yBAAyB,CAAC,EAAE,MAAM,CAAC;QACnC,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,yBAAyB,CAAC,EAAE,OAAO,CAAC;QACpC,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,yBAAyB,CAAC,EAAE,OAAO,CAAC;QACpC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;QAC9C,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAChC,CAAC;IACF,kBAAkB,CAAC,EAAE;QACjB,cAAc,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,iBAAiB,CAAC,EAAE;QAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;CACL"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { ActionEventMapper } from '../../rum/eventMappers/actionEventMapper';
|
|
2
|
+
import type { ErrorEventMapper } from '../../rum/eventMappers/errorEventMapper';
|
|
3
|
+
import type { ResourceEventMapper } from '../../rum/eventMappers/resourceEventMapper';
|
|
4
|
+
import type { FirstPartyHost } from '../../rum/types';
|
|
5
|
+
import type { LogEventMapper } from '../../types';
|
|
6
|
+
import type { TraceConfiguration } from '../features/TraceConfiguration';
|
|
7
|
+
/**
|
|
8
|
+
* Auto Instrumentation configuration passed to DatadogProvider.
|
|
9
|
+
* Does not include default values.
|
|
10
|
+
*/
|
|
11
|
+
export type AutoInstrumentationConfiguration = {
|
|
12
|
+
readonly rumConfiguration: {
|
|
13
|
+
readonly trackInteractions: boolean;
|
|
14
|
+
readonly trackResources: boolean;
|
|
15
|
+
readonly trackErrors: boolean;
|
|
16
|
+
readonly useAccessibilityLabel?: boolean;
|
|
17
|
+
readonly actionNameAttribute?: string;
|
|
18
|
+
readonly resourceTraceSampleRate?: number;
|
|
19
|
+
readonly nativeCrashReportEnabled?: boolean;
|
|
20
|
+
readonly nativeLongTaskThresholdMs?: number;
|
|
21
|
+
readonly nativeViewTracking?: boolean;
|
|
22
|
+
readonly actionEventMapper?: ActionEventMapper | null;
|
|
23
|
+
readonly errorEventMapper?: ErrorEventMapper | null;
|
|
24
|
+
readonly resourceEventMapper?: ResourceEventMapper | null;
|
|
25
|
+
readonly firstPartyHosts?: FirstPartyHost[];
|
|
26
|
+
};
|
|
27
|
+
readonly logsConfiguration: {
|
|
28
|
+
readonly logEventMapper?: LogEventMapper | null;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Parameters needed to start auto instrumentation. Includes default values.
|
|
33
|
+
*/
|
|
34
|
+
export type AutoInstrumentationParameters = {
|
|
35
|
+
readonly rumConfiguration?: {
|
|
36
|
+
readonly useAccessibilityLabel: boolean;
|
|
37
|
+
readonly trackInteractions: boolean;
|
|
38
|
+
readonly trackResources: boolean;
|
|
39
|
+
readonly trackErrors: boolean;
|
|
40
|
+
readonly actionNameAttribute?: string;
|
|
41
|
+
readonly resourceTraceSampleRate?: number;
|
|
42
|
+
readonly nativeCrashReportEnabled?: boolean;
|
|
43
|
+
readonly nativeLongTaskThresholdMs?: number;
|
|
44
|
+
readonly nativeViewTracking?: boolean;
|
|
45
|
+
readonly actionEventMapper: ActionEventMapper | null;
|
|
46
|
+
readonly errorEventMapper: ErrorEventMapper | null;
|
|
47
|
+
readonly resourceEventMapper: ResourceEventMapper | null;
|
|
48
|
+
readonly firstPartyHosts: FirstPartyHost[];
|
|
49
|
+
};
|
|
50
|
+
readonly logsConfiguration?: {
|
|
51
|
+
readonly logEventMapper: LogEventMapper | null;
|
|
52
|
+
};
|
|
53
|
+
readonly traceConfiguration?: TraceConfiguration;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* We could use `Proxy` instead of this function, but `Proxy` is not available on
|
|
57
|
+
* the older android jsc that can still be used.
|
|
58
|
+
*/
|
|
59
|
+
export declare const addDefaultValuesToAutoInstrumentationConfiguration: (features: AutoInstrumentationConfiguration) => AutoInstrumentationParameters;
|
|
60
|
+
//# sourceMappingURL=AutoInstrumentationConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoInstrumentationConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/async/AutoInstrumentationConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;GAGG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC3C,QAAQ,CAAC,gBAAgB,EAAE;QACvB,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;QACpC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;QACjC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;QAC9B,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;QACzC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;QACtC,QAAQ,CAAC,uBAAuB,C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mBAAmB,EAAE,mBAAmB,GAAG,IAAI,CAAC;QACzD,QAAQ,CAAC,eAAe,EAAE,cAAc,EAAE,CAAC;KAC9C,CAAC;IACF,QAAQ,CAAC,iBAAiB,CAAC,EAAE;QACzB,QAAQ,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;KAClD,CAAC;IACF,QAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACpD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kDAAkD,aACjD,gCAAgC,KAC3C,6BAuDF,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { AttributeEncoder } from '../../sdk/AttributesEncoding/types';
|
|
2
|
+
import type { BatchProcessingLevel, BatchSize, ProxyConfiguration, SdkVerbosity, TrackingConsent, UploadFrequency, VitalsUpdateFrequency } from '../types';
|
|
3
|
+
export type PartialInitializationConfiguration = {
|
|
4
|
+
readonly additionalConfiguration?: {
|
|
5
|
+
[k: string]: any;
|
|
6
|
+
};
|
|
7
|
+
readonly attributeEncoders?: AttributeEncoder<any>[];
|
|
8
|
+
readonly clientToken: string;
|
|
9
|
+
readonly env: string;
|
|
10
|
+
readonly site?: string;
|
|
11
|
+
readonly trackingConsent?: TrackingConsent;
|
|
12
|
+
readonly verbosity?: SdkVerbosity | undefined;
|
|
13
|
+
readonly service?: string;
|
|
14
|
+
readonly version?: string;
|
|
15
|
+
versionSuffix?: string;
|
|
16
|
+
readonly proxyConfiguration?: ProxyConfiguration;
|
|
17
|
+
readonly uploadFrequency?: UploadFrequency;
|
|
18
|
+
readonly batchSize?: BatchSize;
|
|
19
|
+
readonly batchProcessingLevel?: BatchProcessingLevel;
|
|
20
|
+
readonly rumConfiguration?: {
|
|
21
|
+
readonly applicationId: string;
|
|
22
|
+
readonly sessionSampleRate?: number;
|
|
23
|
+
readonly nativeLongTaskThresholdMs?: number;
|
|
24
|
+
readonly nativeCrashReportEnabled?: boolean;
|
|
25
|
+
readonly nativeViewTracking?: boolean;
|
|
26
|
+
readonly nativeInteractionTracking?: boolean;
|
|
27
|
+
readonly longTaskThresholdMs?: number | false;
|
|
28
|
+
readonly vitalsUpdateFrequency?: VitalsUpdateFrequency;
|
|
29
|
+
readonly trackFrustrations?: boolean;
|
|
30
|
+
readonly trackBackgroundEvents?: boolean;
|
|
31
|
+
readonly initialResourceThreshold?: number;
|
|
32
|
+
readonly trackMemoryWarnings?: boolean;
|
|
33
|
+
readonly telemetrySampleRate?: number;
|
|
34
|
+
readonly customEndpoint?: string;
|
|
35
|
+
readonly trackNonFatalAnrs?: boolean;
|
|
36
|
+
readonly appHangThreshold?: number;
|
|
37
|
+
};
|
|
38
|
+
readonly logsConfiguration?: {
|
|
39
|
+
readonly bundleLogsWithRum?: boolean;
|
|
40
|
+
readonly bundleLogsWithTraces?: boolean;
|
|
41
|
+
readonly customEndpoint?: string;
|
|
42
|
+
};
|
|
43
|
+
readonly traceConfiguration?: {
|
|
44
|
+
readonly customEndpoint?: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=PartialInitializationConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartialInitializationConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/async/PartialInitializationConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EACR,oBAAoB,EACpB,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,qBAAqB,EACxB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,kCAAkC,GAAG;IAC7C,QAAQ,CAAC,uBAAuB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACxD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;IACr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C,mBAAmB,CAAC,EAAE,OAAO,CAAC;QACvC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;QACtC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;QACjC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;QACrC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;KACtC,CAAC;IACF,QAAQ,CAAC,iBAAiB,CAAC,EAAE;QACzB,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;QACrC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;QACxC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;KACpC,CAAC;IACF,QAAQ,CAAC,kBAAkB,CAAC,EAAE;QAC1B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;KACpC,CAAC;CACL,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CoreConfiguration } from '../features/CoreConfiguration';
|
|
2
|
+
import type { AutoInstrumentationConfiguration } from './AutoInstrumentationConfiguration';
|
|
3
|
+
import type { PartialInitializationConfiguration } from './PartialInitializationConfiguration';
|
|
4
|
+
export declare const buildConfigurationFromPartialConfiguration: (features: AutoInstrumentationConfiguration, configuration: PartialInitializationConfiguration) => CoreConfiguration;
|
|
5
|
+
//# sourceMappingURL=asyncInitializationHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncInitializationHelper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/async/asyncInitializationHelper.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIlE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE/F,eAAO,MAAM,0CAA0C,aACzC,gCAAgC,iBAC3B,kCAAkC,KAClD,iBAmCF,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { AttributeEncoder } from '../../sdk/AttributesEncoding/types';
|
|
2
|
+
import type { SdkVerbosity, ProxyConfiguration } from '../types';
|
|
3
|
+
import { TrackingConsent, BatchProcessingLevel, BatchSize, UploadFrequency } from '../types';
|
|
4
|
+
import type { CoreConfigurationOptions, CoreConfigurationType } from './CoreConfiguration.type';
|
|
5
|
+
import { LogsConfiguration } from './LogsConfiguration';
|
|
6
|
+
import { RumConfiguration } from './RumConfiguration';
|
|
7
|
+
import { TraceConfiguration } from './TraceConfiguration';
|
|
8
|
+
declare const DEFAULTS: {
|
|
9
|
+
getAdditionalConfiguration: () => {};
|
|
10
|
+
attributeEncoders: AttributeEncoder<any>[];
|
|
11
|
+
batchProcessingLevel: BatchProcessingLevel;
|
|
12
|
+
batchSize: BatchSize;
|
|
13
|
+
logsConfiguration: undefined;
|
|
14
|
+
proxyConfiguration: undefined;
|
|
15
|
+
rumConfiguration: undefined;
|
|
16
|
+
service: undefined;
|
|
17
|
+
site: string;
|
|
18
|
+
traceConfiguration: undefined;
|
|
19
|
+
uploadFrequency: UploadFrequency;
|
|
20
|
+
verbosity: undefined;
|
|
21
|
+
version: undefined;
|
|
22
|
+
versionSuffix: undefined;
|
|
23
|
+
trackingConsent: TrackingConsent;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The Core configuration class.
|
|
27
|
+
* Used to configure the SDK functionality at initialization.
|
|
28
|
+
*/
|
|
29
|
+
declare class CoreConfiguration implements CoreConfigurationType {
|
|
30
|
+
readonly clientToken: string;
|
|
31
|
+
readonly env: string;
|
|
32
|
+
readonly trackingConsent: TrackingConsent;
|
|
33
|
+
additionalConfiguration?: {
|
|
34
|
+
[k: string]: any;
|
|
35
|
+
};
|
|
36
|
+
attributeEncoders: AttributeEncoder<any>[];
|
|
37
|
+
batchProcessingLevel: BatchProcessingLevel;
|
|
38
|
+
batchSize: BatchSize;
|
|
39
|
+
logsConfiguration?: LogsConfiguration;
|
|
40
|
+
proxyConfiguration?: ProxyConfiguration;
|
|
41
|
+
rumConfiguration?: RumConfiguration;
|
|
42
|
+
service?: string;
|
|
43
|
+
site: string;
|
|
44
|
+
traceConfiguration?: TraceConfiguration;
|
|
45
|
+
uploadFrequency: UploadFrequency;
|
|
46
|
+
verbosity?: SdkVerbosity;
|
|
47
|
+
version?: string;
|
|
48
|
+
versionSuffix?: string;
|
|
49
|
+
constructor(clientToken: string, env: string, trackingConsent?: TrackingConsent, options?: CoreConfigurationOptions);
|
|
50
|
+
}
|
|
51
|
+
export { DEFAULTS as CORE_DEFAULTS, CoreConfiguration };
|
|
52
|
+
//# sourceMappingURL=CoreConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoreConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/CoreConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EACH,eAAe,EACf,oBAAoB,EACpB,SAAS,EACT,eAAe,EAClB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EACR,wBAAwB,EACxB,qBAAqB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;CAgBb,CAAC;AAEF;;;GAGG;AACH,cAAM,iBAAkB,YAAW,qBAAqB;IAkDhD,QAAQ,CAAC,WAAW,EAAE,MAAM;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,QAAQ,CAAC,eAAe,EAAE,eAAe;IAlDtC,uBAAuB,CAAC,EAAE;QAC7B,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAyC;IAGnC,iBAAiB,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAClB;IAGxB,oBAAoB,EAAE,oBAAoB,CACf;IAG3B,SAAS,EAAE,SAAS,CAAsB;IAG1C,iBAAiB,CAAC,EAAE,iBAAiB,CAA8B;IAGnE,kBAAkB,CAAC,EAAE,kBAAkB,CACd;IAGzB,gBAAgB,CAAC,EAAE,gBAAgB,CAA6B;IAGhE,OAAO,CAAC,EAAE,MAAM,CAAoB;IAGpC,IAAI,EAAE,MAAM,CAAiB;IAG7B,kBAAkB,CAAC,EAAE,kBAAkB,CACd;IAGzB,eAAe,EAAE,eAAe,CAA4B;IAG5D,SAAS,CAAC,EAAE,YAAY,CAAsB;IAG9C,OAAO,CAAC,EAAE,MAAM,CAAoB;IAGpC,aAAa,CAAC,EAAE,MAAM,CAA0B;gBAG1C,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,EACX,eAAe,GAAE,eAA0C,EACpE,OAAO,GAAE,wBAA6B;CA8B7C;AAED,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { AttributeEncoder } from '../../sdk/AttributesEncoding/types';
|
|
2
|
+
import type { BatchProcessingLevel, BatchSize, ProxyConfiguration, SdkVerbosity, TrackingConsent, UploadFrequency } from '../types';
|
|
3
|
+
import type { LogsConfigurationType } from './LogsConfiguration.type';
|
|
4
|
+
import type { RumConfigurationType } from './RumConfiguration.type';
|
|
5
|
+
import type { TraceConfigurationType } from './TraceConfiguration.type';
|
|
6
|
+
/**
|
|
7
|
+
* Required core configuration values.
|
|
8
|
+
*/
|
|
9
|
+
export interface CoreConfigurationRequired {
|
|
10
|
+
/**
|
|
11
|
+
* The Datadog client token.
|
|
12
|
+
*/
|
|
13
|
+
clientToken: string;
|
|
14
|
+
/**
|
|
15
|
+
* The environment name (e.g. prod, staging).
|
|
16
|
+
*/
|
|
17
|
+
env: string;
|
|
18
|
+
/**
|
|
19
|
+
* Initial tracking consent value.
|
|
20
|
+
*/
|
|
21
|
+
trackingConsent: TrackingConsent;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Optional core configuration values.
|
|
25
|
+
*/
|
|
26
|
+
export interface CoreConfigurationOptions {
|
|
27
|
+
/**
|
|
28
|
+
* Additional arbitrary configuration values.
|
|
29
|
+
*/
|
|
30
|
+
additionalConfiguration?: {
|
|
31
|
+
[k: string]: any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Custom attribute encoders.
|
|
35
|
+
*/
|
|
36
|
+
attributeEncoders?: AttributeEncoder<any>[];
|
|
37
|
+
/**
|
|
38
|
+
* Batch size used when sending data.
|
|
39
|
+
*/
|
|
40
|
+
batchSize?: BatchSize;
|
|
41
|
+
/**
|
|
42
|
+
* Processing level used when batching data.
|
|
43
|
+
*/
|
|
44
|
+
batchProcessingLevel?: BatchProcessingLevel;
|
|
45
|
+
/**
|
|
46
|
+
* Logs feature configuration.
|
|
47
|
+
*/
|
|
48
|
+
logsConfiguration?: LogsConfigurationType;
|
|
49
|
+
/**
|
|
50
|
+
* Proxy configuration.
|
|
51
|
+
*/
|
|
52
|
+
proxyConfiguration?: ProxyConfiguration;
|
|
53
|
+
/**
|
|
54
|
+
* RUM feature configuration.
|
|
55
|
+
*/
|
|
56
|
+
rumConfiguration?: RumConfigurationType;
|
|
57
|
+
/**
|
|
58
|
+
* Name of the service.
|
|
59
|
+
*/
|
|
60
|
+
service?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Datadog site to send data to.
|
|
63
|
+
*/
|
|
64
|
+
site?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Trace feature configuration.
|
|
67
|
+
*/
|
|
68
|
+
traceConfiguration?: TraceConfigurationType;
|
|
69
|
+
/**
|
|
70
|
+
* Frequency used to upload data batches.
|
|
71
|
+
*/
|
|
72
|
+
uploadFrequency?: UploadFrequency;
|
|
73
|
+
/**
|
|
74
|
+
* Overrides the reported application version.
|
|
75
|
+
*/
|
|
76
|
+
version?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Suffix added to the reported application version.
|
|
79
|
+
*/
|
|
80
|
+
versionSuffix?: string;
|
|
81
|
+
/**
|
|
82
|
+
* SDK internal logging verbosity.
|
|
83
|
+
*/
|
|
84
|
+
verbosity?: SdkVerbosity;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Complete core configuration type.
|
|
88
|
+
*/
|
|
89
|
+
export type CoreConfigurationType = CoreConfigurationRequired & CoreConfigurationOptions;
|
|
90
|
+
//# sourceMappingURL=CoreConfiguration.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoreConfiguration.type.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/CoreConfiguration.type.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EACR,oBAAoB,EACpB,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,eAAe,EAClB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,eAAe,EAAE,eAAe,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,uBAAuB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAE/C;;OAEG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;IAE5C;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAE5C;;OAEG;IACH,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;IAE1C;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC;;OAEG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IAExC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,kBAAkB,CAAC,EAAE,sBAAsB,CAAC;IAE5C;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,yBAAyB,GACzD,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { AttributeEncoder } from '../../sdk/AttributesEncoding/types';
|
|
2
|
+
import type { BatchProcessingLevel } from '../types';
|
|
3
|
+
import type { LogsNativeConfiguration } from './LogsConfigurationNative';
|
|
4
|
+
import type { RumNativeConfiguration } from './RumConfigurationNative';
|
|
5
|
+
import type { TraceNativeConfiguration } from './TraceConfigurationNative';
|
|
6
|
+
/**
|
|
7
|
+
* A configuration object to initialize Datadog's features.
|
|
8
|
+
*/
|
|
9
|
+
export declare class DdSdkNativeConfiguration {
|
|
10
|
+
readonly additionalConfiguration: object;
|
|
11
|
+
readonly clientToken: string;
|
|
12
|
+
readonly env: string;
|
|
13
|
+
readonly site: string;
|
|
14
|
+
readonly service: string | undefined;
|
|
15
|
+
readonly verbosity: string | undefined;
|
|
16
|
+
readonly trackingConsent: string;
|
|
17
|
+
readonly uploadFrequency: string;
|
|
18
|
+
readonly batchSize: string;
|
|
19
|
+
readonly batchProcessingLevel: BatchProcessingLevel;
|
|
20
|
+
readonly proxyConfiguration: {
|
|
21
|
+
type: string;
|
|
22
|
+
address: string;
|
|
23
|
+
port: number;
|
|
24
|
+
username?: string;
|
|
25
|
+
password?: string;
|
|
26
|
+
} | undefined;
|
|
27
|
+
readonly attributeEncoders: AttributeEncoder<any>[];
|
|
28
|
+
readonly rumConfiguration: RumNativeConfiguration | undefined;
|
|
29
|
+
readonly logsConfiguration: LogsNativeConfiguration | undefined;
|
|
30
|
+
readonly traceConfiguration: TraceNativeConfiguration | undefined;
|
|
31
|
+
readonly configurationForTelemetry: {
|
|
32
|
+
initializationType: string;
|
|
33
|
+
trackErrors: boolean;
|
|
34
|
+
trackInteractions: boolean;
|
|
35
|
+
trackNetworkRequests: boolean;
|
|
36
|
+
reactVersion: string;
|
|
37
|
+
reactNativeVersion: string;
|
|
38
|
+
};
|
|
39
|
+
constructor(additionalConfiguration: object, clientToken: string, env: string, site: string, service: string | undefined, verbosity: string | undefined, trackingConsent: string, uploadFrequency: string, batchSize: string, batchProcessingLevel: BatchProcessingLevel, proxyConfiguration: {
|
|
40
|
+
type: string;
|
|
41
|
+
address: string;
|
|
42
|
+
port: number;
|
|
43
|
+
username?: string;
|
|
44
|
+
password?: string;
|
|
45
|
+
} | undefined, attributeEncoders: AttributeEncoder<any>[], rumConfiguration: RumNativeConfiguration | undefined, logsConfiguration: LogsNativeConfiguration | undefined, traceConfiguration: TraceNativeConfiguration | undefined, configurationForTelemetry: {
|
|
46
|
+
initializationType: string;
|
|
47
|
+
trackErrors: boolean;
|
|
48
|
+
trackInteractions: boolean;
|
|
49
|
+
trackNetworkRequests: boolean;
|
|
50
|
+
reactVersion: string;
|
|
51
|
+
reactNativeVersion: string;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=CoreConfigurationNative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoreConfigurationNative.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/CoreConfigurationNative.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAE3E;;GAEG;AACH,qBAAa,wBAAwB;IAE7B,QAAQ,CAAC,uBAAuB,EAAE,MAAM;IACxC,QAAQ,CAAC,WAAW,EAAE,MAAM;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS;IACpC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS;IACtC,QAAQ,CAAC,eAAe,EAAE,MAAM;IAChC,QAAQ,CAAC,eAAe,EAAE,MAAM;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM;IAC1B,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB;IACnD,QAAQ,CAAC,kBAAkB,EACrB;QACI,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACrB,GACD,SAA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AAC;QAC3B,oBAAoB,EAAE,OAAO,CAAC;QAC9B,YAAY,EAAE,MAAM,CAAC;QACrB,kBAAkB,EAAE,MAAM,CAAC;KAC9B;CAER"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { LogEventMapper } from '../../types';
|
|
2
|
+
import type { LogsConfigurationOptions, LogsConfigurationType } from './LogsConfiguration.type';
|
|
3
|
+
declare const DEFAULTS: {
|
|
4
|
+
bundleLogsWithRum: boolean;
|
|
5
|
+
bundleLogsWithTraces: boolean;
|
|
6
|
+
customEndpoint: undefined;
|
|
7
|
+
logEventMapper: null;
|
|
8
|
+
};
|
|
9
|
+
export declare class LogsConfiguration implements LogsConfigurationType {
|
|
10
|
+
bundleLogsWithRum: boolean;
|
|
11
|
+
bundleLogsWithTraces: boolean;
|
|
12
|
+
customEndpoint?: string;
|
|
13
|
+
logEventMapper: LogEventMapper | null;
|
|
14
|
+
constructor(options?: LogsConfigurationOptions);
|
|
15
|
+
}
|
|
16
|
+
export { DEFAULTS as LOGS_DEFAULTS };
|
|
17
|
+
//# sourceMappingURL=LogsConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogsConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/LogsConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EACR,wBAAwB,EACxB,qBAAqB,EACxB,MAAM,0BAA0B,CAAC;AAElC,QAAA,MAAM,QAAQ;;;;;CAKb,CAAC;AAEF,qBAAa,iBAAkB,YAAW,qBAAqB;IAEpD,iBAAiB,EAAE,OAAO,CAA8B;IAGxD,oBAAoB,EAAE,OAAO,CAAiC;IAG9D,cAAc,CAAC,EAAE,MAAM,CAA2B;IAGlD,cAAc,EAAE,cAAc,GAAG,IAAI,CAA2B;gBAE3D,OAAO,GAAE,wBAA6B;CAGrD;AAED,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { LogEventMapper } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Logs configuration options.
|
|
4
|
+
*/
|
|
5
|
+
export interface LogsConfigurationType {
|
|
6
|
+
/**
|
|
7
|
+
* Enables correlation between logs and RUM.
|
|
8
|
+
*/
|
|
9
|
+
bundleLogsWithRum?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Enables correlation between logs and traces.
|
|
12
|
+
*/
|
|
13
|
+
bundleLogsWithTraces?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Sets a target custom server for Logs.
|
|
16
|
+
*/
|
|
17
|
+
customEndpoint?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Custom mapper to transform log events.
|
|
20
|
+
*/
|
|
21
|
+
logEventMapper?: LogEventMapper | null;
|
|
22
|
+
}
|
|
23
|
+
export type LogsConfigurationOptions = LogsConfigurationType;
|
|
24
|
+
//# sourceMappingURL=LogsConfiguration.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogsConfiguration.type.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/config/features/LogsConfiguration.type.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CAC1C;AAED,MAAM,MAAM,wBAAwB,GAAG,qBAAqB,CAAC"}
|