-
- All Implemented Interfaces:
-
com.datadog.android.rum.RumMonitor
public interface AdvancedNetworkRumMonitor implements RumMonitor
FOR INTERNAL USAGE ONLY.
-
-
Method Summary
Modifier and Type Method Description abstract UnitwaitForResourceTiming(Object key)abstract UnitaddResourceTiming(Object key, ResourceTiming timing)abstract UnitnotifyInterceptorInstantiated()abstract UnitstartResource(ResourceId key, RumResourceMethod method, String url, Map<String, Object> attributes)Notify that a new Resource is being loaded, linked with the key instance. abstract UnitstopResource(ResourceId key, Integer statusCode, Long size, RumResourceKind kind, Map<String, Object> attributes)Stops a previously started Resource, linked with the key instance. abstract UnitstopResourceWithError(ResourceId key, Integer statusCode, String message, RumErrorSource source, Throwable throwable, Map<String, Object> attributes)Stops a previously started Resource that failed loading, linked with the key instance. abstract UnitstopResourceWithError(ResourceId key, Integer statusCode, String message, RumErrorSource source, String stackTrace, String errorType, Map<String, Object> attributes)Stops a previously started Resource that failed loading, linked with the key instance by providing the intercepted stacktrace. abstract BooleangetDebug()Utility setting to inspect the active RUM View. abstract UnitsetDebug(Boolean debug)Utility setting to inspect the active RUM View. -
Methods inherited from class com.datadog.android.rum.internal.monitor.AdvancedNetworkRumMonitor
addAction, addAttribute, addError, addErrorWithStacktrace, addFeatureFlagEvaluation, addFeatureFlagEvaluations, addTiming, addViewLoadingTime, clearAttributes, getAttributes, getCurrentSessionId, removeAttribute, startAction, startResource, startResource, startView, stopAction, stopResource, stopResourceWithError, stopResourceWithError, stopSession, stopView -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
waitForResourceTiming
abstract Unit waitForResourceTiming(Object key)
-
addResourceTiming
abstract Unit addResourceTiming(Object key, ResourceTiming timing)
-
notifyInterceptorInstantiated
abstract Unit notifyInterceptorInstantiated()
-
startResource
abstract Unit startResource(ResourceId key, RumResourceMethod method, String url, Map<String, Object> attributes)
Notify that a new Resource is being loaded, linked with the key instance.
- Parameters:
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.url- the url or local path of the resource being loadedattributes- additional custom attributes to attach to the resource.
-
stopResource
abstract Unit stopResource(ResourceId key, Integer statusCode, Long size, RumResourceKind kind, Map<String, Object> attributes)
Stops a previously started Resource, linked with the key instance.
- Parameters:
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 byteskind- the type of resource loadedattributes- additional custom attributes to attach to the resource.
-
stopResourceWithError
abstract Unit stopResourceWithError(ResourceId key, Integer statusCode, String message, RumErrorSource source, Throwable throwable, Map<String, Object> attributes)
Stops a previously started Resource that failed loading, linked with the key instance.
- Parameters:
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 errorsource- the source of the errorthrowable- the throwableattributes- additional custom attributes to attach to the error.
-
stopResourceWithError
abstract Unit stopResourceWithError(ResourceId key, Integer statusCode, String message, RumErrorSource source, String stackTrace, String errorType, Map<String, Object> attributes)
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.
- Parameters:
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 errorsource- the source of the errorstackTrace- the error stacktraceerrorType- the type of the error.attributes- additional custom attributes to attach to the error.
-
getDebug
abstract Boolean getDebug()
Utility setting to inspect the active RUM View. If set, a debugging outline will be displayed on top of the application, describing the name of the active RUM View in the default SDK instance (if any). May be used to debug issues with RUM instrumentation in your app.
Default value is
false.
-
setDebug
abstract Unit setDebug(Boolean debug)
Utility setting to inspect the active RUM View. If set, a debugging outline will be displayed on top of the application, describing the name of the active RUM View in the default SDK instance (if any). May be used to debug issues with RUM instrumentation in your app.
Default value is
false.
-
-
-
-