Fix opentracing propagation on auth-url

Currently, the opentracing propagation instructions are set only if opentracing is configured globally.
This fix set the propagation instructions if opentracing is disabled globally, but enabled per ingress
This commit is contained in:
Julien Vey 2020-11-20 01:32:20 +01:00 committed by GitHub
parent dd2b92e817
commit 74d1a324e7

View file

@ -946,7 +946,7 @@ stream {
location = {{ $authPath }} { location = {{ $authPath }} {
internal; internal;
{{ if $all.Cfg.EnableOpentracing }} {{ if (or $all.Cfg.EnableOpentracing $location.Opentracing.Enabled) }}
opentracing on; opentracing on;
opentracing_propagate_context; opentracing_propagate_context;
{{ end }} {{ end }}