RumResourceAttributesProvider - DataDog/dd-sdk-android GitHub Wiki
interface RumResourceAttributesProvider
Provider which listens for the OkHttp Request ->Response (or Throwable) chain and offers a possibility to add custom attributes to the RUM Resource event.
Functions
onProvideAttributes
abstract fun onProvideAttributes(request: Request, response: Response?, throwable: Throwable?): Map<String, Any?>
Offers a possibility to create custom attributes collection which later will be attached to the RUM resource event associated with the request.
Parameters
request | the intercepted Request |
response | the Request response in case of any |
throwable | in case an error occurred during the Request |