Skip to content

Commit 762a0a4

Browse files
tcoratgerclaude
andauthored
refactor(metrics): drop never-passed get_metrics_output registry param (leanEthereum#977)
* refactor(metrics): drop never-passed get_metrics_output registry param The Prometheus output helper accepted an optional collector registry parameter that no caller ever passed. Remove the dead parameter and export the default registry directly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ci: re-trigger checks Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5a9c895 commit 762a0a4

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/lean_spec/node/metrics/registry.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -374,19 +374,14 @@ def reset(self) -> None:
374374
"""
375375

376376

377-
def get_metrics_output(registry: CollectorRegistry | None = None) -> bytes:
377+
def get_metrics_output() -> bytes:
378378
"""
379379
Serialize all registered metrics into Prometheus text exposition format.
380380
381381
Typically called by an HTTP handler to serve the `/metrics` endpoint.
382382
The output is ready to return as a response body.
383383
384-
Args:
385-
registry: Prometheus collector registry to export. Falls back to
386-
the global default registry when not provided.
387-
388384
Returns:
389385
UTF-8 encoded bytes in Prometheus text exposition format.
390386
"""
391-
reg = registry or REGISTRY
392-
return generate_latest(reg)
387+
return generate_latest(REGISTRY)

0 commit comments

Comments
 (0)