From 1f5d9876dedb715ae1c31203ea4f15ebf031612c Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Fri, 26 May 2017 15:29:41 +0200 Subject: on the crazy path to a better Kamon :D --- kamon-core/src/main/resources/reference.conf | 32 ++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'kamon-core/src/main/resources') diff --git a/kamon-core/src/main/resources/reference.conf b/kamon-core/src/main/resources/reference.conf index f4d180ca..fd1c88c3 100644 --- a/kamon-core/src/main/resources/reference.conf +++ b/kamon-core/src/main/resources/reference.conf @@ -1,10 +1,14 @@ kamon { environment { - application = "" - host = "" - instance = "" + host = "auto" + instance = "auto" + application = "kamon-application" } + # FQCN of the reporter instances that should be loaded when calling `Kamon.reporters.loadFromConfig()`. + # Example: `reporters = ["kamon.statsd.StatsD", "kamon.zipkin.Zipkin"]`. + reporters = [] + metric { tick-interval = 60 seconds @@ -21,10 +25,6 @@ kamon { } - # FQCN of the reporter instances that should be loaded when calling `Kamon.reporters.loadFromConfig()`. - # Example: `reporters = ["kamon.statsd.StatsD", "kamon.zipkin.Zipkin"]`. - reporters = [] - # Thread pool size used by the metrics refresh scheduler. This pool is only used to periodically sampling # min-max-counter values. refresh-scheduler-pool-size = 2 @@ -74,4 +74,22 @@ kamon { } } } + + trace { + # Configures a sample that decides which traces should be reported to the trace backends. The possible values are: + # - always: report all traces. + # - never: don't report any trace. + # - random: use the random tracer. + # + sampler = "random" + + # The random sampler uses the "chance" setting and a random number to take a decision, if the random number is + # on the upper (chance * 100) percent of the number spectrum the trace will be sampled. E.g. a chance of 0.01 will + # hint that 1% of all traces should be reported. + sampler-random { + + # Chance of a span being sampled. Must be a value between 0 and 1. + chance = 0.01 + } + } } \ No newline at end of file -- cgit v1.2.3