Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage opentracing with nginx-variable #170

Open
mpiexec opened this issue Jun 19, 2021 · 1 comment
Open

Manage opentracing with nginx-variable #170

mpiexec opened this issue Jun 19, 2021 · 1 comment

Comments

@mpiexec
Copy link

mpiexec commented Jun 19, 2021

Is it possible to use nginx-variable to manage opentracing ability in some conditions, ie:

map $arg_debug $trace {
    ~. on;
    default off;
}

server {
    # ...skipped...
    location = /login {
        opentracing $trace;
        proxy_pass http://backend;
    }
}

Now I've got that error message:

nginx: [emerg] invalid value "$trace" in "opentracing" directive, it must be "on" or "off"
@miry
Copy link
Collaborator

miry commented Jun 21, 2021

I think you should create a location with regexp instead of variables to make it work. I try to find the person whom would contribute to the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants