Skip to content

fix: fix metrics and logs not including domain resolution time

Vladimir Shushlin requested to merge add-custom-logger-fields into master

What does this MR do?

Currently, we do logging and metrics capturing after we did the domain information lookup.

It allows us to add more information to access logs.

But it also distorts metrics because domain information lookup takes time.

This logic was originally introduced in !157 (merged) (diffs)

It didn't matter back than because we didn't lookup domain via API as we do now. Now it does matter.

So this MR moves metrics and logging middlewares almost to the top of the pipeline.

TODO

Edited by Vladimir Shushlin

Merge request reports