synapse-old/synapse/metrics
Sean Quah d56f48038a
Fix logging context warnings due to common usage metrics setup (#14574)
`setup()` is run under the sentinel context manager, so we wrap the
initial update in a background process. Before this change, Synapse
would log two warnings on startup:
    Starting db txn 'count_daily_users' from sentinel context
    Starting db connection from sentinel context: metrics will be lost

Signed-off-by: Sean Quah <seanq@matrix.org>
2022-11-28 15:25:18 +00:00
..
__init__.py Remove legacy Prometheus metrics names. They were deprecated in Synapse v1.69.0 and disabled by default in Synapse v1.71.0. (#14538) 2022-11-24 09:09:17 +00:00
_gc.py Update type annotations for compatiblity with prometheus_client 0.14 (#12389) 2022-04-06 12:59:04 +00:00
_reactor_metrics.py Update type annotations for compatiblity with prometheus_client 0.14 (#12389) 2022-04-06 12:59:04 +00:00
_twisted_exposition.py Remove legacy Prometheus metrics names. They were deprecated in Synapse v1.69.0 and disabled by default in Synapse v1.71.0. (#14538) 2022-11-24 09:09:17 +00:00
_types.py Update type annotations for compatiblity with prometheus_client 0.14 (#12389) 2022-04-06 12:59:04 +00:00
background_process_metrics.py Avoid incrementing bg process utime/stime counters by negative durations (#14323) 2022-10-31 13:02:07 +00:00
common_usage_metrics.py Fix logging context warnings due to common usage metrics setup (#14574) 2022-11-28 15:25:18 +00:00
jemalloc.py Add config flags to allow for cache auto-tuning (#12701) 2022-05-13 12:32:39 -07:00