class HTTP::Features::Instrumentation

Instrument requests and responses. Expects an ActiveSupport::Notifications-compatible instrumenter. Defaults to use a namespace of ‘http’ which may be overridden with a ‘:namespace` param. Emits a single event like `“request.{namespace}”`, eg `“request.http”`. Be sure to specify the instrumenter when enabling the feature:

HTTP
  .use(instrumentation: {instrumenter: ActiveSupport::Notifications.instrumenter})
  .get("https://example.com/")

Emits two events on every request:

* `start_request.http` before the request is made, so you can log the reqest being started
* `request.http` after the response is recieved, and contains `start`
  and `finish` so the duration of the request can be calculated.