-
Notifications
You must be signed in to change notification settings - Fork 61
AdvancedNetworkRumMonitor
interface AdvancedNetworkRumMonitor
FOR INTERNAL USAGE ONLY.
abstract fun addResourceTiming(key: Any, timing: ResourceTiming)
abstract fun notifyInterceptorInstantiated()
abstract fun startResource(key: ResourceId, method: RumResourceMethod, url: String, attributes: Map<String, Any?> = emptyMap())
Notify that a new Resource is being loaded, linked with the key instance.
key | the instance that represents the resource being loaded (usually your request or network call instance). |
method | the method used to load the resource (E.g., for network: "GET" or "POST") |
url | the url or local path of the resource being loaded |
attributes | additional custom attributes to attach to the resource. Attributes can be nested up to 9 levels deep. Keys using more than 9 levels will be sanitized by SDK. |
AdvancedNetworkRumMonitor.stopResource |
AdvancedNetworkRumMonitor.stopResourceWithError |
abstract fun stopResource(key: ResourceId, statusCode: Int?, size: Long?, kind: RumResourceKind, attributes: Map<String, Any?>)
Stops a previously started Resource, linked with the key instance.
key | the instance that represents the active view (usually your request or network call instance). |
statusCode | the status code of the resource (if any) |
size | the size of the resource, in bytes |
kind | the type of resource loaded |
attributes | additional custom attributes to attach to the resource. Attributes can be nested up to 9 levels deep. Keys using more than 9 levels will be sanitized by SDK. |
AdvancedNetworkRumMonitor.startResource |
AdvancedNetworkRumMonitor.stopResourceWithError |
abstract fun stopResourceWithError(key: ResourceId, statusCode: Int?, message: String, source: RumErrorSource, throwable: Throwable, attributes: Map<String, Any?> = emptyMap())
Stops a previously started Resource that failed loading, linked with the key instance.
key | the instance that represents the active view (usually your request or network call instance). |
statusCode | the status code of the resource (if any) |
message | a message explaining the error |
source | the source of the error |
throwable | the throwable |
attributes | additional custom attributes to attach to the error. Attributes can be nested up to 9 levels deep. Keys using more than 9 levels will be sanitized by SDK. Users that want to supply a custom fingerprint for this error can add a value under the key RumAttributes.ERROR_FINGERPRINT |
AdvancedNetworkRumMonitor.startResource |
AdvancedNetworkRumMonitor.stopResource |
abstract fun stopResourceWithError(key: ResourceId, statusCode: Int?, message: String, source: RumErrorSource, stackTrace: String, errorType: String?, attributes: Map<String, Any?> = emptyMap())
Stops a previously started Resource that failed loading, linked with the key instance by providing the intercepted stacktrace. Note: This method should only be used from hybrid application.
key | the instance that represents the active view (usually your request or network call instance). |
statusCode | the status code of the resource (if any) |
message | a message explaining the error |
source | the source of the error |
stackTrace | the error stacktrace |
errorType | the type of the error. Usually it should be the canonical name of the of the Exception class. |
attributes | additional custom attributes to attach to the error. Attributes can be nested up to 9 levels deep. Keys using more than 9 levels will be sanitized by SDK. Users that want to supply a custom fingerprint for this error can add a value under the key RumAttributes.ERROR_FINGERPRINT |
AdvancedNetworkRumMonitor.startResource |
AdvancedNetworkRumMonitor.stopResource |
abstract fun waitForResourceTiming(key: Any)
- 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