Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dspasojevic committed Dec 5, 2017
1 parent 7b38e91 commit c281429
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions README.md
Expand Up @@ -7,7 +7,7 @@ Provides a set of Play2 injectable extentsions for [Kamon](http://kamon.io/).
Add library as a dependency:

```scala
"au.com.agiledigital" %% "play-kamon-extensions" % "0.5"
"au.com.agiledigital" %% "play-kamon-extensions" % "0.6"
```

Enable the Play2 module in `application.conf`
Expand Down Expand Up @@ -56,17 +56,7 @@ class Service @Inject()(metrics: Metrics) {
## Categorising Metrics
By default Kamon records all trace metrics under `statsd.timer.$Application.$Host.trace`. The extensions support writing those metrics to nested categories.

To use, set the statsd metric namer in `kamon.conf`:

```scala
kamon {
statsd {
metric-key-generator = "au.com.agiledigital.kamon.play_extensions.EscapingMetricKeyGenerator"
}
}
```

Then to create nested trace categories, use `withCategory`
To create nested trace categories, use `withCategory`

```scala
import javax.inject.Inject
Expand Down

0 comments on commit c281429

Please sign in to comment.