aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/resources/reference.conf
diff options
context:
space:
mode:
Diffstat (limited to 'kamon-core/src/main/resources/reference.conf')
-rw-r--r--kamon-core/src/main/resources/reference.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/kamon-core/src/main/resources/reference.conf b/kamon-core/src/main/resources/reference.conf
index b7f5c70e..3c8f3686 100644
--- a/kamon-core/src/main/resources/reference.conf
+++ b/kamon-core/src/main/resources/reference.conf
@@ -16,6 +16,16 @@ kamon {
gauge-recording-interval = 100 milliseconds
+ # Default size for the LongBuffer that gets allocated for metrics collection and merge. The
+ # value should correspond to the highest number of different buckets with values that might
+ # exist in a single histogram during a metrics collection. The default value of 33792 is a
+ # very conservative value and its equal to the total number of buckets required to cover values
+ # from 1 nanosecond to 1 hour with 0.1% precision (3 significant value digits). That means
+ # that would need to have at least one measurement on every bucket of a single histogram to
+ # fully utilize this buffer, which is *really* unlikely to ever happen. Since the buffer should
+ # be allocated once and reused it shouldn't impose a memory footprint issue.
+ default-collection-context-buffer-size = 33792
+
dispatchers {
# Dispatcher for periodical gauge value recordings.