diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2017-07-18 11:26:54 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2017-07-18 11:26:54 +0200 |
commit | a2d54a72b806ebd60f19011559a6c186d2d9640b (patch) | |
tree | 49aeedd2cb3292156dcf16561fe6ff46b47c773f /kamon-core/src/main/resources/reference.conf | |
parent | ec01aa2661df31d58b0b894dcae81c982012e3a7 (diff) | |
download | Kamon-a2d54a72b806ebd60f19011559a6c186d2d9640b.tar.gz Kamon-a2d54a72b806ebd60f19011559a6c186d2d9640b.tar.bz2 Kamon-a2d54a72b806ebd60f19011559a6c186d2d9640b.zip |
make the SpanContextCodecs configurable
Diffstat (limited to 'kamon-core/src/main/resources/reference.conf')
-rw-r--r-- | kamon-core/src/main/resources/reference.conf | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/kamon-core/src/main/resources/reference.conf b/kamon-core/src/main/resources/reference.conf index cd8fa379..cc4da03e 100644 --- a/kamon-core/src/main/resources/reference.conf +++ b/kamon-core/src/main/resources/reference.conf @@ -107,6 +107,37 @@ kamon { # Probability of a span being sampled. Must be a value between 0 and 1. probability = 0.01 } + + # The IdentityProvider used to generate Trace and Span Identifiers in Kamon. There are two default implementations + # that ship with Kamon: + # - kamon.trace.IdentityProvider.Default: Creates 8-byte identifiers for both Traces and Spans. + # - kamon.trace.IdentityProvider.DoubleSizeTraceID: Creates 16-byte identifiers for Traces and 8-byte identifiers + # for Spans. + # + # Any external implementation can be configured here, as long as it can be instantiated with a parameterless constructor. + identity-provider = "kamon.trace.IdentityProvider.Default" + + # The SpanContextCodecs are used to encode/decode the SpanContext data into simple TextMaps, HTTP Headers or Binary + # carriers. The decision about which one to use is based on the kamon.trace.SpanContextCodec.Format instance passed + # to inject/extract calls. + # + # Any external implementation can be configured here, as long as it can be instantiated with a single parameter + # constructor that accepts a IdentityProvider. + span-context-codec { + + # Encodes/Decodes the SpanContext data using a simple key/value pair. Since this is very rarely going to be used + # we default to using the same codec for HTTP Headers, as it is built on top of a TextMap. + text-map = "kamon.trace.SpanContextCodec.ExtendedB3" + + # Encodes/Decodes the SpanContext into a TextMap with HTTP Header friendly, URLEncoded values. The default + # implementation follows the guidelines of B3 propagation. See more at https://github.com/openzipkin/b3-propagation. + http-headers = "kamon.trace.SpanContextCodec.ExtendedB3" + + # Encodes/Decodes the SpanContext using a binary representation. + binary = "TODO" + } + + } util { |