Repository navigation
Get rid of the norm host in traffic watch - #230
Conversation
|
Gitar analyzes/fixes CI failures, runs prompts as workflows and addresses comments starting with ⚙️ Options:
|
| return slog.GroupValue( | ||
| slog.String("id", lm.MiddlewareRequestID), | ||
| slog.String("time", lm.When), | ||
| slog.String("normHost", lm.NormHost), |
There was a problem hiding this comment.
I didn't include the host here because now the uri will include the same host, so it felt redundant, e.g.:
host=location.hotrod-devmesh:8081 uri=http://location.hotrod-devmesh:8081/locations
There was a problem hiding this comment.
Probably worth removing the uri and instead put like endpoint?
There was a problem hiding this comment.
Mmm why do you think uri is not right? (also that's not something that I introduced in this PR).
davixcky
left a comment
There was a problem hiding this comment.
LGTM after the question is resolved
|
@davixcky, for workflow reasons (I'm about to send a new PR) I will merge this one. |
Depends on https://github.com/signadot/libconnect/pull/141.
This relates to https://github.com/signadot/signadot/pull/6289 and https://github.com/signadot/signadot/pull/6290.
The main change introduced here is the removal of the normHost field from the traffic metadata.
We now use only the host field instead, for example:
{ "destWorkload": "Deployment/hotrod-devmesh/location", "doneAt": "2025-10-23T11:12:21.782757425-03:00", "host": "location.hotrod-devmesh:8081", "method": "GET", "middlewareRequestID": "ccc736c1", "proto": "HTTP/1.1", "requestURI": "http://location.hotrod-devmesh:8081/locations", "routingKey": "ns5603yhxps6b", "userAgent": "curl/8.5.0", "watchOptions": "+stream/+stream", "when": "2025-10-23T14:12:21.619636639Z" }CC: @davixcky