aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala/kamon/metric/UserMetricsSpec.scala
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2014-07-04 01:51:58 -0300
committerIvan Topolnjak <ivantopo@gmail.com>2014-07-04 01:51:58 -0300
commitac2367c8e80bbe6a76f36bd42de9aa9848b0e87b (patch)
tree15c333bf98222fee71d120585733b963f31ae616 /kamon-core/src/test/scala/kamon/metric/UserMetricsSpec.scala
parent8d46b83a5b1c45cf292f3d4d9af362c2c75fd2dc (diff)
downloadKamon-ac2367c8e80bbe6a76f36bd42de9aa9848b0e87b.tar.gz
Kamon-ac2367c8e80bbe6a76f36bd42de9aa9848b0e87b.tar.bz2
Kamon-ac2367c8e80bbe6a76f36bd42de9aa9848b0e87b.zip
+ core: introduce the new kamon.metrics.default-collection-context-buffer-size setting
Diffstat (limited to 'kamon-core/src/test/scala/kamon/metric/UserMetricsSpec.scala')
-rw-r--r--kamon-core/src/test/scala/kamon/metric/UserMetricsSpec.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/kamon-core/src/test/scala/kamon/metric/UserMetricsSpec.scala b/kamon-core/src/test/scala/kamon/metric/UserMetricsSpec.scala
index 57bc3d0d..00a933f1 100644
--- a/kamon-core/src/test/scala/kamon/metric/UserMetricsSpec.scala
+++ b/kamon-core/src/test/scala/kamon/metric/UserMetricsSpec.scala
@@ -15,6 +15,7 @@ class UserMetricsSpec extends TestKitBase with WordSpecLike with Matchers with I
"""
|kamon.metrics {
| flush-interval = 1 hour
+ | default-collection-context-buffer-size = 10
| precision {
| default-histogram-precision {
| highest-trackable-value = 10000
@@ -111,7 +112,7 @@ class UserMetricsSpec extends TestKitBase with WordSpecLike with Matchers with I
}
"generate a snapshot containing all the registered user metrics and reset all instruments" in {
- val context = CollectionContext.default
+ val context = Kamon(Metrics).buildDefaultCollectionContext
val userMetricsRecorder = Kamon(Metrics).register(UserMetrics, UserMetrics.Factory).get
val histogramWithSettings = Kamon(UserMetrics).registerHistogram("histogram-with-settings", Histogram.Precision.Normal, 10000L)
@@ -219,7 +220,7 @@ class UserMetricsSpec extends TestKitBase with WordSpecLike with Matchers with I
}
"generate a snapshot that can be merged with another" in {
- val context = CollectionContext.default
+ val context = Kamon(Metrics).buildDefaultCollectionContext
val userMetricsRecorder = Kamon(Metrics).register(UserMetrics, UserMetrics.Factory).get
val histogram = Kamon(UserMetrics).registerHistogram("histogram-for-merge")