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:
parent
e76418cd99
commit
f77eaaee50
5 changed files with 141 additions and 0 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue