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 1389cc0e80
commit fd8af11392
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 }}