Wraps a Client with a middleware capable of recording metrics
Wraps a Client with a middleware capable of recording metrics
Same as apply, but can classify requests effectually, e.g. performing side-effects or examining the body.
Failed attempt to classify the request (e.g. failing with F.raiseError) leads to not recording metrics for that request.
Attributes
classifierF
a function that allows to add a classifier that can be customized per request