Add opentracing-operation-name and opentracing-location-operation-name config settings

With these settings custom span names can be used for the server span and location span

Signed-off-by: Jorrit Salverda <jsalverda@travix.com>
This commit is contained in:
Jorrit Salverda 2019-05-25 15:12:27 +02:00 committed by Jorrit Salverda
parent e76418cd99
commit f77eaaee50
5 changed files with 141 additions and 0 deletions

View file

@ -115,6 +115,8 @@ The following table shows a configuration option's name, type, and the default v
|[proxy-add-original-uri-header](#proxy-add-original-uri-header)|bool|"true"|
|[generate-request-id](#generate-request-id)|bool|"true"|
|[enable-opentracing](#enable-opentracing)|bool|"false"|
|[opentracing-operation-name](#opentracing-operation-name)|string|""|
|[opentracing-location-operation-name](#opentracing-location-operation-name)|string|""|
|[zipkin-collector-host](#zipkin-collector-host)|string|""|
|[zipkin-collector-port](#zipkin-collector-port)|int|9411|
|[zipkin-service-name](#zipkin-service-name)|string|"nginx"|
@ -700,6 +702,18 @@ Enables the nginx Opentracing extension. _**default:**_ is disabled
_References:_
[https://github.com/opentracing-contrib/nginx-opentracing](https://github.com/opentracing-contrib/nginx-opentracing)
## opentracing-operation-name
Specifies a custom name for the server span. _**default:**_ is empty
For example, set to "HTTP $request_method $uri".
## opentracing-location-operation-name
Specifies a custom name for the location span. _**default:**_ is empty
For example, set to "HTTP $request_method $uri".
## zipkin-collector-host
Specifies the host to use when uploading traces. It must be a valid URL.

View file

@ -30,6 +30,12 @@ have been tested.
Other optional configuration options:
```
# specifies the name to use for the server span
opentracing-operation-name
# specifies specifies the name to use for the location span
opentracing-location-operation-name
# specifies the port to use when uploading traces, Default: 9411
zipkin-collector-port