diff options
author | Diego <diegolparra@gmail.com> | 2015-07-18 16:51:13 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2015-08-09 21:03:23 -0300 |
commit | d5cec96f91b12a776a4745dcbf4ee34e2e945b5a (patch) | |
tree | 0ab8123b2684d0a6a1f9d9a0315eb4e1f7a662a4 /kamon-play-2.3.x/src/main/resources | |
parent | 116e5d3318cb7c6442485e04730f41d908423e56 (diff) | |
download | Kamon-d5cec96f91b12a776a4745dcbf4ee34e2e945b5a.tar.gz Kamon-d5cec96f91b12a776a4745dcbf4ee34e2e945b5a.tar.bz2 Kamon-d5cec96f91b12a776a4745dcbf4ee34e2e945b5a.zip |
+ play: play-2.4.x support
Diffstat (limited to 'kamon-play-2.3.x/src/main/resources')
-rw-r--r-- | kamon-play-2.3.x/src/main/resources/META-INF/aop.xml | 13 | ||||
-rw-r--r-- | kamon-play-2.3.x/src/main/resources/reference.conf | 33 |
2 files changed, 46 insertions, 0 deletions
diff --git a/kamon-play-2.3.x/src/main/resources/META-INF/aop.xml b/kamon-play-2.3.x/src/main/resources/META-INF/aop.xml new file mode 100644 index 00000000..e24d48d5 --- /dev/null +++ b/kamon-play-2.3.x/src/main/resources/META-INF/aop.xml @@ -0,0 +1,13 @@ +<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd"> + +<aspectj> + <aspects> + <aspect name="kamon.play.instrumentation.RequestInstrumentation"/> + <aspect name="kamon.play.instrumentation.WSInstrumentation"/> + <aspect name="kamon.play.instrumentation.LoggerLikeInstrumentation"/> + </aspects> + + <weaver> + <include within="play.api..*"/> + </weaver> +</aspectj> diff --git a/kamon-play-2.3.x/src/main/resources/reference.conf b/kamon-play-2.3.x/src/main/resources/reference.conf new file mode 100644 index 00000000..af43edec --- /dev/null +++ b/kamon-play-2.3.x/src/main/resources/reference.conf @@ -0,0 +1,33 @@ +# ================================== # +# 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" + } + } +}
\ No newline at end of file |