Merge pull request #4732 from willthames/enable-opentracing-annotation
Allow enabling/disabling opentracing for ingresses
This commit is contained in:
commit
b286c2a336
9 changed files with 218 additions and 0 deletions
|
|
@ -966,8 +966,17 @@ stream {
|
|||
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 }}
|
||||
|
||||
{{ if $location.Mirror.URI }}
|
||||
mirror {{ $location.Mirror.URI }};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue