elementary-data / elementary

The dbt-native data observability solution for data & analytics engineers. Monitor your data pipelines in minutes. Available as self-hosted or cloud service with premium features.
https://www.elementary-data.com/
Apache License 2.0
1.94k stars 165 forks source link

refactor: improve readability, error handling, and performance in Dat… #1713

Open Nats-hope opened 1 month ago

Nats-hope commented 1 month ago

…aMonitoring class

This refactor enhances the DataMonitoring class by improving type annotations, making the code more readable, and reducing potential type-related errors. Exception handling has been strengthened with more meaningful error messages and better logging, which provides clearer insights during critical operations like version checks and database/schema retrieval.