Helper function that measures the time needed for a given future to complete, taking this as an external call.
Helper function that measures the time needed for a given future to complete, taking this as an external call. Used only for HTTP calls returning a numeric response code. Failed futures will not record anything, you need to take care to recover yourself beforehand.
The type that the call returns
The request id of the call, if any
the name of the external service
the http method that the call uses
a function that can map from the data of the result of the call to an http result code
the call that should be performed
A Future that also measures the time needed to be completed
Helper function that measures the time needed for a given future to complete, taking this as an external call.
Helper function that measures the time needed for a given future to complete, taking this as an external call. Used only for non-HTTP calls. These calls may have any response code type. Failed futures will not record anything, you need to take care to recover yourself beforehand.
The type that the call returns
The request id of the call, if any
the name of the external service
the method that the call uses. Defaults to "READ", may be any string. Proposal: READ / WRITE / EXECUTE.
a function that can map from the data of the result of the call to an http result code
the call that should be performed
A Future that also measures the time needed to be completed
Reads aggregated external call times that have been recorded with above functions and a given request id.
Used to record an external http call that has been performed without using the Future that created it.
Used to record an external http call that has been performed without using the Future that created it. May be useful if either your call is synchronous.
Used to record an external call that has been performed without using the Future that created it.
Used to record an external call that has been performed without using the Future that created it. May be useful if either your call is synchronous.
Object used to record and retrieve results for external system calls. There will be a timer that shows response times without external services, as well as record the time used for this service.