This pull request refactors the metric_tags function to handle missing values. Previously, the function would throw an error if a metric name was not found in the metric_tags dictionary. This PR updates the function to use the get method to handle missing values gracefully, by returning an empty dictionary instead. This improves the overall robustness and reliability of the code.
This pull request refactors the
metric_tags
function to handle missing values. Previously, the function would throw an error if a metric name was not found in themetric_tags
dictionary. This PR updates the function to use theget
method to handle missing values gracefully, by returning an empty dictionary instead. This improves the overall robustness and reliability of the code.