swift/swift/common/middleware/versioned_writes
Tim Burke c51e81f640 proxy: Bring back logging/metrics for get_*_info requests
A while back, we changed get_account_info and get_container_info to
call the proxy-server app directly, rather than whatever was right
of the current middleware. This reduced backend request amplification
on cache misses.

However, it *also* meant that we stopped emitting logs or metrics in
the proxy for these backend requests. This was an unfortunate and
unintended break from earlier behavior.

Now, extend the middleware decorating we're doing in loadapp() to
include a "logged app", i.e., the app wrapped by it's right-most
proxy-logging middleware. If there is not logging middleware (such
as would happen for the backend servers), the "logged app" will be
the main app. Make account and container info requests through
*that* app, so we get logging and metrics again.

Closes-Bug: #2027726
Related-Change: I49447c62abf9375541f396f984c91e128b8a05d5
Change-Id: I3f531f904340e4c8407185ed64b41d7d614a308a
2023-08-01 15:58:58 -07:00
..
__init__.py proxy: Bring back logging/metrics for get_*_info requests 2023-08-01 15:58:58 -07:00
legacy.py middlewares: Clean up app iters better 2020-02-12 21:27:15 -08:00
object_versioning.py proxy: Bring back logging/metrics for get_*_info requests 2023-08-01 15:58:58 -07:00