Kong Correlation-id plugin and out of box unique Request ID
- Kalidass Mookkaiah
- Sep 19, 2024
- 1 min read
Here is crisp summary of differences between them
Correlation ID plugin | Out of Box Request ID | |
Plugin | Yes its a plugin | Not a plugin, but comes by default as debugging tool |
Kong Version Available in | Before 3.5.0.0 | Started with 3.5.0.0 |
Adds Header | Adds new header for every request | Yes adds header for every request |
Header Name can be customised | Yes, in the plugin name can be altered | No the header name can't be changed |
Control what the value of the header | Yes, different generators can be configured | No, can not control the value |
Control Header being sent downstream and upstream | Always added to downstream by default. Can control if sent upstream using echo_downstream configuration parameter | Configurable for upstream using the headers configuration options. Configurable for downstream using headers_upstream configuration options |
Nginx logs | Not visible by default in access log, need to edit the nginx_kong.lua file and update the log formatter | Populated by default in the error log, access log, error templates, log serializer, and in a new X-Kong-Request-Id header |
Comments