Suppose I'm writing an nginx module foo. Is there any way to have foo set default directives when it gets loaded? For example, if I wanted foo to add headers to every request could I have load_module modules/ngx_http_foo_module.so; implicitly add proxy_set_header foo-header bar-value; .... to the http context? _______________________________________________ nginx-devel mailing list nginx-deveby rnburn - Nginx Development
Hello everyone, I work on a module that provides distributed tracing for NGINX (https://github.com/opentracing-contrib/nginx-opentracing). If possible, I would like to include in the tracing data timestamps for the following events: * When the last byte from a downstream request was read * When the first byte of an upstream request was sent * When the last byte of an upstream request was sent *by rnburn - Nginx Development
The module is intended to support distributed tracing in a pluggable way. The key/values of the headers added are generated from the module. They're used to support cross process tracing (http://opentracing.io/documentation/pages/api/cross-process-tracing.html) so that the performance information recorded by this module can be linked to the performance information reported by any other code thatby rnburn - Nginx Development
On Thu, Mar 29, 2018 at 9:40 AM, Maxim Dounin <mdounin@mdounin.ru> wrote: > Hello! > > On Wed, Mar 28, 2018 at 04:15:44PM -0400, Ryan Burn wrote: > >> > You are not allowed to modify r->headers_in, at any time. >> >> If I want to ensure that certain headers are added if the request is >> proxied upstream, is there any way to do that? > > Recommby rnburn - Nginx Development
> > You are not allowed to modify r->headers_in, at any time. > If I want to ensure that certain headers are added if the request is proxied upstream, is there any way to do that? _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-develby rnburn - Nginx Development
Hi, I have a module that registers a handler to run in NGX_HTTP_PREACCESS_PHASE. The handler adds headers to request->headers_in.headers. This works as I would expect most of the time. But I am seeing cases of some crashes when calling ngx_list_push(&request->headers_in.headers)); Are there any restrictions where you are not allowed to push to headers_in.headers like that in theby rnburn - Nginx Development
Hello Everyone, I've been working on an NGINX module to add support for OpenTracing . It uses OpenTracing's C++ API and attaches handlers to the NGX_HTTP_PREACCESS_PHASE and NGX_HTTP_LOG_PHASE phases to start/stop spans to track requests handled. It currently supports LightStep's C++ tracer and a C++ version of Zipkin's tracer . I put together a simple example that shows itby rnburn - Nginx Mailing List - English