diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-10-31 03:05:13 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-10-31 03:05:13 +0100 |
commit | 2c958ea86ded8a047af6450026ca7ec64a28bea1 (patch) | |
tree | e4bc7fe1dcdd7e45b90dd80df1a71ae81f09fb7e /kamon-play/src/main/resources/reference.conf | |
parent | 89d3057f8025add4b94b32c142e220ffb79f6c33 (diff) | |
download | Kamon-2c958ea86ded8a047af6450026ca7ec64a28bea1.tar.gz Kamon-2c958ea86ded8a047af6450026ca7ec64a28bea1.tar.bz2 Kamon-2c958ea86ded8a047af6450026ca7ec64a28bea1.zip |
+ play: external naming for traces and segments, related to #65
Diffstat (limited to 'kamon-play/src/main/resources/reference.conf')
-rw-r--r-- | kamon-play/src/main/resources/reference.conf | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/kamon-play/src/main/resources/reference.conf b/kamon-play/src/main/resources/reference.conf index 72266a0c..5ad070ce 100644 --- a/kamon-play/src/main/resources/reference.conf +++ b/kamon-play/src/main/resources/reference.conf @@ -3,14 +3,24 @@ # ================================== # kamon { - metrics { - tick-interval = 1 hour - } - play { - include-trace-token-header = true + + # Header name used when propagating the `TraceContext.token` value across applications. trace-token-header-name = "X-Trace-Token" + # When set to true, Kamon will automatically set and propogate the `TraceContext.token` value under the following + # conditions: + # - When a server side request is received containing the trace token header, the new `TraceContext` will have that + # some token, and once the response to that request is ready, the trace token header is also included in the + # response. + # - When a WS client request is issued and a `TraceContext` is available, the trace token header will be included + # in the request headers. + automatic-trace-token-propagation = true + + # Fully qualified name of the implementation of kamon.play.PlayNameGenerator that will be used for assigning names + # to traces and client http segments. + name-generator = kamon.play.DefaultPlayNameGenerator + dispatcher = ${kamon.default-dispatcher} } }
\ No newline at end of file |