-
public interface AdvancedNetworkRumMonitorFOR 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. -
-
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.
-
-
-
-