Skip to content

Commit

Permalink
do not copy any tags by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ivantopo committed Oct 12, 2018
1 parent 60d60f5 commit 36b64d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions kamon-core-tests/src/test/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ kamon {
http-server {
default {
tracing.preferred-trace-id-tag = "correlation-id"
tracing.tags.from-context.peer = span
}

no-span-metrics {
Expand Down
12 changes: 8 additions & 4 deletions kamon-core/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 36b64d0

Please sign in to comment.