aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala/kamon/metric/TraceMetricsSpec.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/TraceMetricsSpec.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/TraceMetricsSpec.scala')
-rw-r--r--kamon-core/src/test/scala/kamon/metric/TraceMetricsSpec.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/kamon-core/src/test/scala/kamon/metric/TraceMetricsSpec.scala b/kamon-core/src/test/scala/kamon/metric/TraceMetricsSpec.scala
index dab9b52a..39eaaf9e 100644
--- a/kamon-core/src/test/scala/kamon/metric/TraceMetricsSpec.scala
+++ b/kamon-core/src/test/scala/kamon/metric/TraceMetricsSpec.scala
@@ -14,6 +14,7 @@ class TraceMetricsSpec extends TestKitBase with WordSpecLike with Matchers with
"""
|kamon.metrics {
| tick-interval = 1 hour
+ | default-collection-context-buffer-size = 10
| filters = [
| {
| trace {
@@ -87,6 +88,7 @@ class TraceMetricsSpec extends TestKitBase with WordSpecLike with Matchers with
def takeSnapshotOf(traceName: String): TraceMetricsSnapshot = {
val recorder = Kamon(Metrics).register(TraceMetrics(traceName), TraceMetrics.Factory)
- recorder.get.collect(CollectionContext.default)
+ val collectionContext = Kamon(Metrics).buildDefaultCollectionContext
+ recorder.get.collect(collectionContext)
}
}