HTTP access log formatters for dynamic metadata written by Listener/Network level filters
#41,116 创建于 2025年9月17日
仓库指标
- Star
- (27,997 star)
- PR 合并指标
- (平均合并 8天) (30 天内合并 378 个 PR)
描述
Description: It is a known issue currently that dynamic metadata written at the listener/network scope is not available to the HTTP access logger. Any HTTP access log formatters that address to a namespace/keypair written by these filters ends up not being available. (See https://github.com/envoyproxy/envoy/issues/19046)
The underlying cause is that the HTTP filter manager does not copy dynamic metadata from the network over to to the stream info object, but does copy filter state (See reference here). I am wondering if this was intentional or an oversight?
What does the community recommend going forward if one has a use case for HTTP logging these fields?
- Should these filters just use FilterState object and implement reflection/serialization, similar to this?
- Should dynamic metadata be copied over to the HTTP filter manager stream info?
[optional Relevant Links:]