OpenTelemetry#

The OTel module adds OpenTelemetry distributed tracing of requests: it exports trace data to an OpenTelemetry collector over the OTLP/gRPC protocol. The module also propagates W3C trace context, so a trace continues from Angie to the proxied servers.

Installation#

To install the module, use one of the following packages:

  • Angie: angie-module-otel

  • Angie PRO: angie-pro-module-otel

Loading the Module#

To use the module, it must be loaded in the main{} context:

load_module modules/ngx_otel_module.so;

Configuration Example#

http {
    otel_exporter {
        endpoint localhost:4317;
    }

    server {
        listen 80;

        location / {
            otel_trace         on;
            otel_trace_context inject;

            proxy_pass http://backend;
        }
    }
}

Additional Information#

Version: v0.1.2

Detailed documentation and source code are available at: nginx/nginx-otel