README.md in materialist-3.4.0 vs README.md in materialist-3.5.0
- old
+ new
@@ -71,15 +71,17 @@
# queue: :routemaster_index,
# retry: 3
# }
#
# config.metrics_client = STATSD
+ # config.api_client = Routemaster::APIClient.new(response_class: Routemaster::Responses::HateoasResponse)
end
```
- `topics` (only when using in `.subscribe`): A string array of topics to be used.
If not provided nothing would be materialized.
- `sidekiq_options` (optional, default: `{ retry: 10 }`) -- See [Sidekiq docs](https://github.com/mperham/sidekiq/wiki/Advanced-Options#workers) for list of options
+- `api_client` (optional) -- You can pass your `Routemaster::APIClient` instance
- `metrics_client` (optional) -- You can pass your `STATSD` instance
- `notice_error` (optional) -- You can pass a lambda accepting two parameters (`exception` and `event`) -- Typical use case is to enrich error and send to NewRelic APM
### Routemaster Configuration