Enable the OTEL pluginv3.1+

Enables the OTEL plugin with an endpoint for tracing and logs. It also adds the X-Auth-Token header in the HTTP request sent to the OTLP server. For a complete tutorial with Jaeger, see Set up Jaeger with OpenTelemetry.

Prerequisites

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: opentelemetry
    config:
      traces_endpoint: http://localhost:4318/v1/traces
      logs_endpoint: http://localhost:4318/v1/logs
      headers:
        X-Auth-Token: secret-token
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!