From 36b64d0ece9e69dde6ff1b53042b884dfd94e5d2 Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Fri, 12 Oct 2018 15:57:48 +0200 Subject: do not copy any tags by default --- kamon-core-tests/src/test/resources/reference.conf | 1 + kamon-core/src/main/resources/reference.conf | 12 ++++++++---- 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 } } -- cgit v1.2.3