Alistair Coles 6942b25cc1 Fix statsd prefix mutation in proxy controllers
Swift loggers encapsulate a StatsdClient that is typically initialised
with a prefix, equal to the logger name (e.g. 'proxy_server'), that is
prepended to metrics names. The proxy server would previously mutate
its logger's prefix, using its set_statsd_prefix method, each time a
controller was instantiated, extending it with the controller type
(e.g. changing the prefix 'proxy_server.object'). As a result, when an
object request spawned container subrequests, for example, the statsd
client would be left with a 'proxy_server.container' prefix part for
subsequent object request related metrics.

The proxy server logger is now wrapped with a new
MetricsPrefixLoggerAdapter each time a controller is instantiated, and
the adapter applies the correct prefix for the controller type for the
lifetime of the controller.

Change-Id: I0522b1953722ca96021a0002cf93432b973ce626
2022-01-27 09:06:15 -08:00
..
2020-04-03 21:22:38 +02:00
2021-12-13 12:58:36 -08:00
2021-01-06 09:47:38 -08:00
2020-04-03 21:22:38 +02:00
2020-04-03 21:22:38 +02:00
2022-01-06 10:13:15 -08:00
2022-01-06 10:13:15 -08:00
2019-10-15 15:09:46 +02:00