aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/resources/reference.conf
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2017-08-21 09:23:07 +0200
committerIvan Topolnjak <ivantopo@gmail.com>2017-08-21 10:37:08 +0200
commita152a3098b564ed43766a857b32b7c7d7445f9ce (patch)
tree7651f61e598f316ee9dca415c5a5c67ce530bad5 /kamon-core/src/main/resources/reference.conf
parent3cb974e5dfd381b9b28ffef9977047cf35242121 (diff)
downloadKamon-a152a3098b564ed43766a857b32b7c7d7445f9ce.tar.gz
Kamon-a152a3098b564ed43766a857b32b7c7d7445f9ce.tar.bz2
Kamon-a152a3098b564ed43766a857b32b7c7d7445f9ce.zip
binary encoding of context and entries
Diffstat (limited to 'kamon-core/src/main/resources/reference.conf')
-rw-r--r--kamon-core/src/main/resources/reference.conf40
1 files changed, 14 insertions, 26 deletions
diff --git a/kamon-core/src/main/resources/reference.conf b/kamon-core/src/main/resources/reference.conf
index 5b885fd0..e0002194 100644
--- a/kamon-core/src/main/resources/reference.conf
+++ b/kamon-core/src/main/resources/reference.conf
@@ -123,39 +123,27 @@ kamon {
# with the name of the operation on the parent Span, if any.
scope-spans-to-parent = yes
}
-
- # 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"
- }
-
-
}
context {
- encoding {
- http-headers {
+ # Codecs are used to encode/decode Context keys when a Context must be propagated either through HTTP headers or
+ # Binary transports. Only broadcast keys configured bellow will be processed by the context Codec. The FQCN of
+ # the appropriate Codecs for each key must be provided, otherwise keys will be ignored.
+ #
+ codecs {
+
+ # Size of the encoding buffer for the Binary Codec.
+ binary-buffer-size = 256
+
+ # Codecs to be used when propagating a Context through a HTTP Headers transport.
+ http-headers-keys {
span = "kamon.trace.SpanCodec$B3"
}
- binary {
- # span = "kamon.trace.propagation.Binary"
+ # Codecs to be used when propagating a Context through a Binary transport.
+ binary-keys {
+ span = "kamon.trace.SpanCodec$Colfer"
}
}
}