diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-07-04 01:51:58 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-07-04 01:51:58 -0300 |
commit | 3ae632dea4dd208ba22e56510c51ab222ea89148 (patch) | |
tree | 3de99b4d3686ee1ba938d1126937d09643419284 /kamon-core/src/main/scala/kamon/metric/EntityMetrics.scala | |
parent | fc2333281acc028c79e1cfe00840666deea5a9d1 (diff) | |
download | Kamon-3ae632dea4dd208ba22e56510c51ab222ea89148.tar.gz Kamon-3ae632dea4dd208ba22e56510c51ab222ea89148.tar.bz2 Kamon-3ae632dea4dd208ba22e56510c51ab222ea89148.zip |
+ core: introduce the new kamon.metrics.default-collection-context-buffer-size setting
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metric/EntityMetrics.scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metric/EntityMetrics.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/EntityMetrics.scala b/kamon-core/src/main/scala/kamon/metric/EntityMetrics.scala index 325dd216..3761f5a5 100644 --- a/kamon-core/src/main/scala/kamon/metric/EntityMetrics.scala +++ b/kamon-core/src/main/scala/kamon/metric/EntityMetrics.scala @@ -38,8 +38,8 @@ trait CollectionContext { } object CollectionContext { - def default: CollectionContext = new CollectionContext { - val buffer: LongBuffer = LongBuffer.allocate(10000) + def apply(longBufferSize: Int): CollectionContext = new CollectionContext { + val buffer: LongBuffer = LongBuffer.allocate(longBufferSize) } } |