i’m using a Lua Filter in order to log HTTP Bodies.
Unfortunately this leads to a lot of excess logging of e.g. prometheus metrics that are also caught by the filter and written to the logs by the filter.
I’m looking for a way to apply the filter only to specific context paths, e.g. to exclude /actuator/prometheus.
I know that the context path is available on the request path as a header, but unfortunately that doesn’t seem to be the case on the response path.
Does anyone have an idea?