andrewm4894 / anomstack

Anomstack - Painless open source anomaly detection for your metrics 📈📉🚀
https://andrewm4894.github.io/anomstack/
MIT License
83 stars 6 forks source link

Refactor metric_tags to handle missing values #69

Closed andrewm4894 closed 6 months ago

andrewm4894 commented 6 months ago

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.