Use two separate methods for updating storage/distributor metrics #13
Labels
refactoring
Non-breaking changes that improve maintainability or readability
typing
Enhancing type safety of existing functions/classes
Currently the
Monitoring._update_metrics
method handles bothStorageStatus
andDistributorStatus
arguments and simply swallowsAttributeErrors
, assuming that metric labels and status object type match.videbo/src/videbo/storage/monitoring.py
Lines 117 to 124 in e7b53e0
This should be made more type safe/robust, by having distinct methods for storage vs. distributor metrics.
The text was updated successfully, but these errors were encountered: