Skip to content

Commit dcf70d8

Browse files
author
Avihay Tsayeg
authored
Merge pull request #79 from gpgekko/2.7
Play 2.7
2 parents f24567c + ec2c556 commit dcf70d8

File tree

5 files changed

+20
-19
lines changed

5 files changed

+20
-19
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: scala
22
scala:
3-
- 2.12.3
4-
- 2.11.11
3+
- 2.12.8
4+
- 2.11.12
55
jdk:
66
- oraclejdk8
77
script:

README.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# metrics-play
22

3-
This module provides some support for @codahale [Metrics](https://dropwizard.github.io/metrics/3.1.0/) library in a Play2 application (Scala)
3+
This module provides some support for @codahale [Metrics](https://dropwizard.github.io/metrics/4.0.5/) library in a Play2 application (Scala)
44

55
[![Build Status](https://travis-ci.org/kenshoo/metrics-play.png)](https://travis-ci.org/kenshoo/metrics-play)
66

77
[![codecov.io](https://img.shields.io/codecov/c/gh/kenshoo/metrics-play/master.svg)](https://codecov.io/github/kenshoo/metrics-play/branch/master)
88

9-
Play Version: 2.6.19, Metrics Version: 4.0.3, Scala Versions: 2.12.6
9+
Play Version: 2.7.0, Metrics Version: 4.0.5, Scala Versions: 2.12.8
1010

1111
## Features
1212

@@ -22,7 +22,7 @@ Add metrics-play dependency:
2222
```scala
2323
val appDependencies = Seq(
2424
...
25-
"com.kenshoo" %% "metrics-play" % "2.6.19_0.7.0"
25+
"com.kenshoo" %% "metrics-play" % "2.7.0_0.8.0"
2626
)
2727
```
2828

@@ -34,7 +34,7 @@ add to application.conf the following line
3434

3535
### Default Registry
3636

37-
To add a custom metrics, you can use `defaultRegistry` which returns an instance of [MetricRegistry](http://metrics.dropwizard.io/3.1.0/manual/core/).
37+
To add a custom metrics, you can use `defaultRegistry` which returns an instance of [MetricRegistry](https://metrics.dropwizard.io/4.0.5/manual/core).
3838

3939
```scala
4040
import com.kenshoo.play.metrics.Metrics
@@ -48,25 +48,25 @@ To add a custom metrics, you can use `defaultRegistry` which returns an instance
4848

4949
### Metrics Controller
5050

51-
An implementation of the [metrics-servlet](http://metrics.dropwizard.io/3.1.0/manual/servlets/#metricsservlet) as a play2 controller.
51+
An implementation of the [metrics-servlet](https://metrics.dropwizard.io/4.0.5/manual/servlets#metricsservlet) as a play2 controller.
5252

5353
It exports all registered metrics as a json document.
5454

5555
To enable the controller add a mapping to conf/routes file
5656

5757
GET /admin/metrics com.kenshoo.play.metrics.MetricsController.metrics
58-
58+
5959
#### Configuration
6060
Some configuration is supported through the default configuration file:
6161

62-
metrics.rateUnit - (default is SECONDS)
62+
metrics.rateUnit - (default is SECONDS)
6363

6464
metrics.durationUnit (default is SECONDS)
6565

6666
metrics.showSamples [true/false] (default is false)
6767

6868
metrics.jvm - [true/false] (default is true) controls reporting jvm metrics
69-
69+
7070
metrics.logback - [true/false] (default is true) controls reporing logback metrics
7171

7272
### Metrics Filter
@@ -139,8 +139,9 @@ instead of `com.kenshoo.play.metrics.PlayModule`
139139

140140
## Changes
141141

142+
* 2.7.0_0.8.0 - Upgrade to play 2.7.0 and Scala 2.12.8 and dropwizard 4.0.5
142143
* 2.6.19_0.7.0 - Upgrade to play 2.6.19 and Scala 2.12.6 and dropwizard 4.0.3
143-
* 2.6.2_0.6.1 - Upgrade to play 2.6 and Scala 2.12. Migration: If you get errors like "No configuration setting found ..." when building fat JARs, check your merge strategy for reference.conf.
144+
* 2.6.2_0.6.1 - Upgrade to play 2.6 and Scala 2.12. Migration: If you get errors like "No configuration setting found ..." when building fat JARs, check your merge strategy for reference.conf.
144145
* 2.4.0_0.4.0 - Re-implement as Play Module
145146
* 2.4.0_0.3.0 - Upgrade to play 2.4, metrics 3.1.2
146147
* 2.3.0_0.2.1 - Breaking Change! prefix jvm metric names to standardize with dropwizard

build.sbt

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ organization:= "com.kenshoo"
22

33
name := "metrics-play"
44

5-
scalaVersion := "2.12.6"
5+
scalaVersion := "2.12.8"
66

7-
crossScalaVersions := Seq(scalaVersion.value, "2.11.11")
7+
crossScalaVersions := Seq(scalaVersion.value, "2.11.12")
88

9-
val playVersion = "2.6.19"
9+
val playVersion = "2.7.0"
1010

11-
val metricsPlayVersion = "0.7.0"
11+
val metricsPlayVersion = "0.8.0"
1212

13-
val dropwizardVersion = "4.0.3"
13+
val dropwizardVersion = "4.0.5"
1414

1515
version := s"${playVersion}_${metricsPlayVersion}"
1616

@@ -35,7 +35,7 @@ libraryDependencies ++= Seq(
3535
"io.dropwizard.metrics" % "metrics-jvm" % dropwizardVersion,
3636
"io.dropwizard.metrics" % "metrics-logback" % dropwizardVersion,
3737
"com.typesafe.play" %% "play" % playVersion % Provided,
38-
"org.joda" % "joda-convert" % "2.1.1",
38+
"org.joda" % "joda-convert" % "2.2.0",
3939

4040
//Test
4141
"com.typesafe.play" %% "play-test" % playVersion % Test,

project/build.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.1.6
1+
sbt.version=1.2.8

project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/release
22

33
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")
44

5-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
5+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2-1")

0 commit comments

Comments
 (0)