aboutsummaryrefslogtreecommitdiff
path: root/kamon-play-2.4.x/src/main/resources/reference.conf
blob: db94b3f683ece51644528e91b533bf834496ac5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# ================================== #
# Kamon-Play Reference Configuration #
# ================================== #

kamon {
  play {

    # 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.NameGenerator that will be used for assigning names
    # to traces and client http segments.
    name-generator = kamon.play.DefaultNameGenerator

  }

  modules {
    kamon-play {
      auto-start = yes
      requires-aspectj = yes
      extension-id = "kamon.play.Play"
    }
  }
}

#register the module with Play
play.modules.enabled += "kamon.play.di.KamonModule"