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

@ -460,6 +460,12 @@ type Configuration struct {
// By default this is disabled
EnableOpentracing bool `json:"enable-opentracing"`
// OpentracingOperationName specifies a custom name for the server span
OpentracingOperationName string `json:"opentracing-operation-name"`
// OpentracingOperationName specifies a custom name for the location span
OpentracingLocationOperationName string `json:"opentracing-location-operation-name"`
// ZipkinCollectorHost specifies the host to use when uploading traces
ZipkinCollectorHost string `json:"zipkin-collector-host"`