aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/resources/reference.conf
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2017-05-26 15:29:41 +0200
committerIvan Topolnjak <ivantopo@gmail.com>2017-05-26 15:29:41 +0200
commit1f5d9876dedb715ae1c31203ea4f15ebf031612c (patch)
tree9ae42e1aaac6cdb550e7707c9ae5a49048482109 /kamon-core/src/main/resources/reference.conf
parenta3d78ef61a277b0b62dc93daf84756dfa7625d3d (diff)
downloadKamon-1f5d9876dedb715ae1c31203ea4f15ebf031612c.tar.gz
Kamon-1f5d9876dedb715ae1c31203ea4f15ebf031612c.tar.bz2
Kamon-1f5d9876dedb715ae1c31203ea4f15ebf031612c.zip
on the crazy path to a better Kamon :D
Diffstat (limited to 'kamon-core/src/main/resources/reference.conf')
-rw-r--r--kamon-core/src/main/resources/reference.conf32
1 files changed, 25 insertions, 7 deletions
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