Add custom attributes to your access logsv3.14+

Add custom attributes to your access logs using the OpenTelemetry plugin.

Using the config.access_logs.custom_attributes_by_lua configuration, define multiple key-value pairs, where each key represents an attribute name and each value is dynamically computed using Lua code.

Prerequisites

  • An OpenTelemetry backend

Set up the plugin

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!