-
Notifications
You must be signed in to change notification settings - Fork 60
FeatureSdkCore
interface FeatureSdkCore : SdkCore
Extension of SdkCore containing the necessary methods for the features development.
SDK core is always guaranteed to implement this interface.
InternalSdkCore |
abstract val internalLogger: InternalLogger
Logger for the internal SDK purposes.
abstract fun createScheduledExecutorService(executorContext: String): ScheduledExecutorService
Returns a new ScheduledExecutorService, set up with internal monitoring. It will use a default of one thread and can spawn at most as many thread as there are CPU cores.
executorContext | Context to be used for logging and naming threads running on this executor. |
abstract fun createSingleThreadExecutorService(executorContext: String): ExecutorService
Returns a new single thread ExecutorService, set up with backpressure and internal monitoring.
executorContext | Context to be used for logging and naming threads running on this executor. |
abstract fun getFeature(featureName: String): FeatureScope?
Retrieves a registered feature.
the registered feature with the given name, or null
featureName | the name of the feature to retrieve |
abstract fun getFeatureContext(featureName: String): Map<String, Any?>
Retrieves the context for the particular feature.
Context for the given feature or empty map if feature is not registered.
featureName | Feature name. |
abstract fun registerFeature(feature: Feature)
Registers a feature to this instance of the Datadog SDK.
feature | the feature to be registered. |
abstract fun removeContextUpdateReceiver(featureName: String, listener: FeatureContextUpdateReceiver)
Removes context update listener for the given feature.
featureName | Feature name. |
listener | Listener to remove. |
abstract fun removeEventReceiver(featureName: String)
Removes events receive for the given feature.
featureName | Feature name. |
abstract fun setContextUpdateReceiver(featureName: String, listener: FeatureContextUpdateReceiver)
Sets context update receiver for the given feature.
featureName | Feature name. |
listener | Listener to remove. |
abstract fun setEventReceiver(featureName: String, receiver: FeatureEventReceiver)
Sets event receiver for the given feature.
featureName | Feature name. |
receiver | Event receiver. |
abstract fun updateFeatureContext(featureName: String, updateCallback: (context: MutableMap<String, Any?>) -> Unit)
Updates the context if exists with the new entries. If there is no context yet for the provided featureName, a new one will be created.
featureName | Feature name. |
updateCallback | Provides current feature context for the update. If there is no feature with the given name registered, callback won't be called. |
- Datadog
- DatadogSite
- _InternalProxy
- InternalLogger
- SdkCore
- DatadogContext
- DeviceInfo
- DeviceType
- NetworkInfo
- ProcessInfo
- TimeInfo
- UserInfo
- Feature
- FeatureContextUpdateReceiver
- FeatureEventReceiver
- FeatureScope
- FeatureSdkCore
- StorageBackedFeature
- Request
- RequestFactory
- DataWriter
- EventBatchWriter
- EventType
- FeatureStorageConfiguration
- RawBatchEvent
- DataStoreHandler
- DataStoreReadCallback
- DataStoreWriteCallback
- InternalSdkCore
- SdkReference
- BackPressureMitigation
- BackPressureStrategy
- BatchProcessingLevel
- BatchSize
- Configuration
- HostsSanitizer
- UploadFrequency
- UploadSchedulerStrategy
- DataConstraints
- DatadogDataConstraints
- ThreadDump
- DefaultFirstPartyHostHeaderTypeResolver
- FirstPartyHostHeaderTypeResolver
- Deserializer
- BuildSdkVersionProvider
- JsonSerializer
- MethodCallSamplingRate
- PerformanceMetric
- TelemetryMetricType
- PersistenceStrategy
- Serializer
- DataStoreContent
- RateBasedSampler
- Sampler
- FlushableExecutorService
- EventMapper
- MapperSerializer
- NoOpEventMapper
- LogAttributes
- TrackingConsent
- TrackingConsentProviderCallback
- Encryption
- TracingHeaderType
- DdRumContentProvider
- GlobalRumMonitor
- Rum
- RumActionType
- RumAttributes
- RumConfiguration
- RumErrorSource
- RumMonitor
- RumPerformanceMetric
- RumResourceAttributesProvider
- RumResourceKind
- RumResourceMethod
- RumSessionListener
- _RumInternalProxy
- VitalsUpdateFrequency
- ViewEventMapper
- ResourceTiming
- AdvancedNetworkRumMonitor
- ResourceId
- RumResourceInputStream
- AcceptAllActivities
- AcceptAllDefaultFragment
- AcceptAllNavDestinations
- AcceptAllSupportFragments
- ActivityLifecycleTrackingStrategy
- ActivityViewTrackingStrategy
- ComponentPredicate
- FragmentViewTrackingStrategy
- InteractionPredicate
- MixedViewTrackingStrategy
- NavigationViewTrackingStrategy
- TrackingStrategy
- ViewAttributesProvider
- ViewTrackingStrategy
- DatadogDatabaseErrorHandler
- ActionEvent
- ErrorEvent
- LongTaskEvent
- ResourceEvent
- ViewEvent
- TelemetryConfigurationEvent
- TelemetryDebugEvent
- TelemetryErrorEvent
- ExtensionSupport
- ImagePrivacy
- MapperTypeWrapper
- SessionReplay
- SessionReplayConfiguration
- SessionReplayPrivacy
- MappingContext
- OptionSelectorDetector
- SystemInformation
- BaseAsyncBackgroundWireframeMapper
- BaseViewGroupMapper
- BaseWireframeMapper
- EditTextMapper
- TextViewMapper
- TraverseAllChildrenMapper
- WireframeMapper
- AndroidMDrawableToColorMapper
- AndroidQDrawableToColorMapper
- AsyncJobStatusCallback
- ColorStringFormatter
- DefaultColorStringFormatter
- DefaultViewBoundsResolver
- DefaultViewIdentifierResolver
- DrawableToColorMapper
- GlobalBounds
- ImageWireframeHelper
- LegacyDrawableToColorMapper
- ViewBoundsResolver
- ViewIdentifierResolver
- MobileSegment
- ResourceHashesEntry
- ResourceMetadata