From 018e30868ccbbdcaa9ecae2840143218444eddc3 Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 11 Jun 2015 08:42:58 -0300 Subject: ! play: starting play 2.4.x integration --- kamon-play24/src/main/resources/META-INF/aop.xml | 13 +++++++++ kamon-play24/src/main/resources/reference.conf | 36 ++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 kamon-play24/src/main/resources/META-INF/aop.xml create mode 100644 kamon-play24/src/main/resources/reference.conf (limited to 'kamon-play24/src/main/resources') diff --git a/kamon-play24/src/main/resources/META-INF/aop.xml b/kamon-play24/src/main/resources/META-INF/aop.xml new file mode 100644 index 00000000..e24d48d5 --- /dev/null +++ b/kamon-play24/src/main/resources/META-INF/aop.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/kamon-play24/src/main/resources/reference.conf b/kamon-play24/src/main/resources/reference.conf new file mode 100644 index 00000000..db94b3f6 --- /dev/null +++ b/kamon-play24/src/main/resources/reference.conf @@ -0,0 +1,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" \ No newline at end of file -- cgit v1.2.3