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

@ -225,6 +225,12 @@ http {
{{ if $cfg.EnableOpentracing }}
opentracing on;
{{ if not (empty $cfg.OpentracingOperationName) }}
opentracing_operation_name "{{ $cfg.OpentracingOperationName }}";
{{ end }}
{{ if not (empty $cfg.OpentracingLocationOperationName) }}
opentracing_location_operation_name "{{ $cfg.OpentracingLocationOperationName }}";
{{ end }}
{{ end }}
{{ buildOpentracing $cfg }}