diff options
Diffstat (limited to 'kamon-core/src/main/resources/reference.conf')
-rw-r--r-- | kamon-core/src/main/resources/reference.conf | 102 |
1 files changed, 99 insertions, 3 deletions
diff --git a/kamon-core/src/main/resources/reference.conf b/kamon-core/src/main/resources/reference.conf index 5e5078ca..279a00a9 100644 --- a/kamon-core/src/main/resources/reference.conf +++ b/kamon-core/src/main/resources/reference.conf @@ -195,10 +195,12 @@ kamon { propagation { - channels { - http { - type = http + http { + # Default HTTP propagation. Unless specified otherwise, all instrumentation will use the configuration on + # this section for HTTP context propagation. + # + default { tags { # Header name used to encode context tags. @@ -247,6 +249,100 @@ kamon { } } + instrumentation { + http-server { + default { + + # Configuration for HTTP server metrics collection + # + metrics { + + # Enables collection of HTTP server metrics + enable = yes + + # Tags to include on the HTTP server metrics. The available options are: + # - method: HTTP method from the request. + # - status-code: HTTP status code from the responses. + # + tags = [ + "method", + "status-code" + ] + } + + # Configuration for HTTP request tracing + # + tracing { + + # Enables HTTP request tracing. When enabled the instrumentation will create Spans for incoming requests + # and finish them when the response is sent back to the clients. + enable = yes + + # Select a context tag that provides a custom trace identifier. The custom trace identifier will be used + # only if all these conditions are met: + # - the context tag is present. + # - there is no parent Span on the incoming context (i.e. this is the first service on the trace). + # - the identifier is valued in accordance to the identity provider. + trace-id-tag = "none" + + # Metric tags to be automatically included in the HTTP server Spans. The available options are: + # - method: HTTP method from the request. + # - status-code: HTTP status code from the responses. + # - peer: Name of the service issuing the HTTP call. Will use "unknown" if not present. + metric-tags = [ + "method", + "status-code", + "peer" + ] + } + + # Configuration for HTTP context propagation + # + propagation { + + # Enables or disables HTTP context propagation on this HTTP server instrumentation. Please note that if + # propagation is disabled then some distributed tracing features will not be work as expected (e.g. Spans can + # be created and reported but will not be linked across boundaries nor take trace identifiers from tags). + enabled = yes + + # HTTP propagation channel to b used by this instrumentation. Take a look at the kamon.propagation.http.default + # configuration for more details on how to configure the detault HTTP context propagation. + channel = "default" + } + + + # Custom mappings between routes and operation names. + # + operations { + + # Operation name for Spans created on requests that could not be handled by any route in the current + # application. + unhanlded = "unhandled" + + # Provides custom mappings from HTTP paths into operation names. Meant to be used in cases where the bytecode + # instrumentation is not able to provide a sensible operation name that is free of high cardinality values. + # For example, with the following configuration: + # mappings { + # "/organization/*/user/*/profile" = "/organization/:orgID/user/:userID/profile" + # "/events/*/rsvps" = "EventRSVPs" + # } + # + # Requests to "/organization/3651/user/39652/profile" and "/organization/22234/user/54543/profile" will have + # the same operation name "/organization/:orgID/user/:userID/profile". + # + # Similarly, requests to "/events/aaa-bb-ccc/rsvps" and "/events/1234/rsvps" will have the same operation + # name "EventRSVPs". + # + # The patterns are expressed as globs and the operation names are free form. + # + mappings { + + } + } + } + } + } + util { filters { |