Move opentracing configuration for location to go (#4965)
This commit is contained in:
parent
a4f3467f9b
commit
7ff49b25d6
6 changed files with 70 additions and 44 deletions
|
|
@ -967,18 +967,7 @@ stream {
|
|||
set $service_port {{ $ing.ServicePort | quote }};
|
||||
set $location_path {{ $location.Path | escapeLiteralDollar | quote }};
|
||||
|
||||
{{ if $all.Cfg.EnableOpentracing }}
|
||||
{{ if and $location.Opentracing.Set (not $location.Opentracing.Enabled) }}
|
||||
opentracing off;
|
||||
{{ else }}
|
||||
{{ opentracingPropagateContext $location }};
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ if and $location.Opentracing.Set $location.Opentracing.Enabled }}
|
||||
opentracing on;
|
||||
{{ opentracingPropagateContext $location }};
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ buildOpentracingForLocation $all.Cfg.EnableOpentracing $location }}
|
||||
|
||||
{{ if $location.Mirror.URI }}
|
||||
mirror {{ $location.Mirror.URI }};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue