add unique ID header to each request and log it

Bug #1895255 reported by Junien F
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Content Cache Charm
Fix Released
High
Haw Loeung

Bug Description

Hi,

In order to allow following a request through our whole stack, could we please add a header with a unique ID to each request ?

See haproxy's "unique-id-format" and "unique-id-header"
https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#4.2-unique-id-format

Ideally this should easily integrate with the k8s nginx ingress so that we can follow the request in k8s as well.

Thanks !

Related branches

Revision history for this message
Junien F (axino) wrote :
Revision history for this message
Haw Loeung (hloeung) wrote :

Good idea - we'll want both "unique-id-format" and "unique-id-header" on the listen stanzas[1] (so right before the caching layer) and we'll want the Nginx caching layer to log that also, so $sent_http_<header> in [2].

[1]https://git.launchpad.net/content-cache-charm/tree/lib/haproxy.py#n105
[2]https://git.launchpad.net/content-cache-charm/tree/files/nginx-logging-format.conf

Changed in content-cache-charm:
status: New → Triaged
importance: Undecided → High
importance: High → Medium
Haw Loeung (hloeung)
Changed in content-cache-charm:
importance: Medium → High
Haw Loeung (hloeung)
Changed in content-cache-charm:
assignee: nobody → Haw Loeung (hloeung)
Haw Loeung (hloeung)
Changed in content-cache-charm:
status: Triaged → In Progress
Haw Loeung (hloeung)
Changed in content-cache-charm:
status: In Progress → Fix Committed
Haw Loeung (hloeung)
Changed in content-cache-charm:
status: Fix Committed → Fix Released
Haw Loeung (hloeung)
Changed in content-cache-charm:
status: Fix Released → In Progress
Haw Loeung (hloeung)
Changed in content-cache-charm:
status: In Progress → Fix Committed
Haw Loeung (hloeung)
Changed in content-cache-charm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.