aprs.me/lib/aprsme/telemetry
Graham McIntire 12cf324d4c
Reduce cyclomatic complexity in database metrics collection
Extract each metric collection into separate helper functions:
- collect_database_size: Database size metrics
- collect_connection_stats: Connection pool statistics
- collect_packets_table_stats: Table-level statistics
- collect_query_performance_stats: Query performance metrics
- collect_replication_lag: Replication lag metrics

This breaks down the complexity 27 function into manageable pieces.

Co-Authored-By: Graham <noreply@anthropic.com>
2026-02-09 12:08:37 -06:00
..
database_metrics.ex Reduce cyclomatic complexity in database metrics collection 2026-02-09 12:08:37 -06:00