aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2018-10-12 15:57:48 +0200
committerIvan Topolnjak <ivantopo@gmail.com>2018-10-12 15:58:28 +0200
commit36b64d0ece9e69dde6ff1b53042b884dfd94e5d2 (patch)
tree10fe470369fe9739008ba9e856e675ce802af50b
parent60d60f5b0cdb79264861219bf869cfced6be3744 (diff)
downloadKamon-36b64d0ece9e69dde6ff1b53042b884dfd94e5d2.tar.gz
Kamon-36b64d0ece9e69dde6ff1b53042b884dfd94e5d2.tar.bz2
Kamon-36b64d0ece9e69dde6ff1b53042b884dfd94e5d2.zip
do not copy any tags by default
-rw-r--r--kamon-core-tests/src/test/resources/reference.conf1
-rw-r--r--kamon-core/src/main/resources/reference.conf12
2 files changed, 9 insertions, 4 deletions
diff --git a/kamon-core-tests/src/test/resources/reference.conf b/kamon-core-tests/src/test/resources/reference.conf
index 9d99ba96..c092af08 100644
--- a/kamon-core-tests/src/test/resources/reference.conf
+++ b/kamon-core-tests/src/test/resources/reference.conf
@@ -22,6 +22,7 @@ kamon {
http-server {
default {
tracing.preferred-trace-id-tag = "correlation-id"
+ tracing.tags.from-context.peer = span
}
no-span-metrics {
diff --git a/kamon-core/src/main/resources/reference.conf b/kamon-core/src/main/resources/reference.conf
index cb658d23..a35225d4 100644
--- a/kamon-core/src/main/resources/reference.conf
+++ b/kamon-core/src/main/resources/reference.conf
@@ -313,12 +313,16 @@ kamon {
# Use the http.status_code tag.
status-code = metric
- # Copy tags from the context into the Spans with the specified purpouse.
+ # Copy tags from the context into the Spans with the specified purpouse. For example, to copy a customer_type
+ # tag from the context into the HTTP Server Span created by the instrumentation, the following configuration
+ # should be added:
+ #
+ # from-context {
+ # customer_type = span
+ # }
+ #
from-context {
- # The peer tag identifiest the service that is calling the current service. It is added by default with
- # the HttpClient instrumentation.
- peer = metric
}
}