docs: clarify metrics module usage (#117)

This commit is contained in:
d3vyce
2026-03-09 17:17:11 +01:00
committed by GitHub
parent baebf022f6
commit a3245d50f0
4 changed files with 88 additions and 53 deletions

View File

@@ -51,7 +51,7 @@ def init_metrics(
"""
for provider in registry.get_providers():
logger.debug("Initialising metric provider '%s'", provider.name)
provider.func()
registry._instances[provider.name] = provider.func()
# Partition collectors and cache env check at startup — both are stable for the app lifetime.
async_collectors = [