-
Notifications
You must be signed in to change notification settings - Fork 144
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
Setup nginx config file for dynamic module building #52
Conversation
Hi @TomRoSystems @seemk, |
Hey, thanks for the ping :) I was away for 2 weeks and just came back today. With this config file, how are for example OpenTelemetry CPP include paths handled? Are they passed to the nginx config command line? |
Yes, the include paths are passed to the nginx config command line. |
If I understand correctly currently it's looking for the include paths in the system path? So if Otel CPP is installed elsewhere, Not that it matters much, could very well live with this for now, just trying to understand it 😄 |
I'm not really an expert at C compilation. I've adapted this config file from the one in opentracing: https://github.com/opentracing-contrib/nginx-opentracing/blob/master/opentracing/config |
In your However OpenTelemetry CPP consists of a huge list of libraries that all need to be linked, all the |
I haven't been able to do extensive testing of the feature, and sending data yet. But yes, with the library being built in my ingress-nginx, I am able to build the library, and start nginx with the module configured. |
Ok, weird. It might be because of system paths then, let's merge it for now if it helps with |
This sets up a
config
file so nginx knows how to use this module as a dynamic one.See https://www.nginx.com/resources/wiki/extending/new_config/
With this change, passing the option
to when configuring nginx allows building this plugin as well.