README.md in salestation-3.6.0 vs README.md in salestation-3.7.0
- old
+ new
@@ -140,25 +140,25 @@
### Using StatsD
Salestation provides a StatsD middleware which can be used record request
execution time. A `timing` call with elapsed seconds is made to the provided
-StatsD instance with `path`, `method`, `status` tags.
+StatsD instance with `path`, `method`, `status` and `status_class` tags.
```ruby
class Webapp < Sinatra::Base
# ...
use Salestation::Web::StatsdMiddleware,
Statsd.new(host, port),
- metric: 'my-metric'
+ metric: 'my_service.response.time'
end
```
You can configure per-request tags by defining `salestation.statsd.tags` in sinatra `env`:
```ruby
def my_handler(env)
- env['salestation.statsd.tags'] = ['foo', 'bar']
+ env['salestation.statsd.tags'] = ['foo:bar']
# ...
end
```
## Development