Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor metric_tags to handle missing values #69

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

andrewm4894
Copy link
Owner

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.

@andrewm4894 andrewm4894 merged commit 929b606 into main Dec 13, 2023
3 checks passed
@andrewm4894 andrewm4894 deleted the fix-metric-tags-empty-handling branch December 13, 2023 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant