<!-- review: finished -->

<a id="external-otel"></a>

# OTel

The OTel module provides support for OpenTelemetry distributed tracing.
The module supports W3C context propagation and the OTLP/gRPC export protocol.

<a id="installation-21"></a>

## Installation

To [install](https://en.angie.software//angie/docs/installation/index.md#install-packages) the module, use one of the following packages:

- Angie: `angie-module-otel`
- Angie PRO: `angie-pro-module-otel`

<a id="loading-the-module-21"></a>

## Loading the Module

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

```nginx
load_module modules/ngx_otel_module.so;
```

<a id="configuration-example-95"></a>

## Configuration Example

```nginx
http {
    otel_exporter {
        endpoint localhost:4317;
    }

    server {
        listen 80;

        location / {
            otel_trace         on;
            otel_trace_context inject;

            proxy_pass http://backend;
        }
    }
}
```

<a id="additional-information-22"></a>

## Additional Information

Detailed documentation and source code are available at:
[https://github.com/nginxinc/nginx-otel](https://github.com/nginxinc/nginx-otel)
