Package 

Interface RumResourceAttributesProvider


  • 
    public interface RumResourceAttributesProvider
    
                        

    Provider which listens for the network HttpRequestInfo -> HttpResponseInfo (or Throwable) chain and offers a possibility to add custom attributes to the RUM Resource event.

    • Method Summary

      Modifier and Type Method Description
      abstract Map<String, Object> onProvideAttributes(Request request, Response response, Throwable throwable) Deprecated.
      Map<String, Object> onProvideAttributes(HttpRequestInfo request, HttpResponseInfo response, Throwable throwable) Offers a possibility to create custom attributes collection which later will be attached to the RUM resource event associated with the request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onProvideAttributes

        @Deprecated(message = Use the variant with HttpRequestInfo/HttpResponseInfo instead) abstract Map<String, Object> onProvideAttributes(Request request, Response response, Throwable throwable)

        Deprecated. Use the variant with HttpRequestInfo/HttpResponseInfo instead. 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
      • onProvideAttributes

         Map<String, Object> onProvideAttributes(HttpRequestInfo request, HttpResponseInfo response, Throwable throwable)

        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 HttpRequestInfo
        response - the HttpResponseInfo representing the response in case of any
        throwable - in case an error occurred during the request