-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What We'd like to monitor the kinds of errors we run into to measure the connector's health, so we add counters for errors according to a few categorizations. ### How We add counters for the following metrics: ```rs /// A collection of metrics indicating errors. #[derive(Debug, Clone)] pub struct ErrorMetrics { /// the connector received an invalid request. invalid_request_total: IntCounter, /// the connector received a request using capabilities it does not support. unsupported_capability_total: IntCounter, /// the connector could not fulfill a request because it does not support /// certain features (which are not described as capabilities). unsupported_feature_total: IntCounter, /// the connector had an internal error. connector_error_total: IntCounter, /// the database emmited an error. database_error_total: IntCounter, } ``` And use ndc-postgres errors to find and count said errors.
- Loading branch information
Gil Mizrahi
authored
Nov 1, 2023
1 parent
b10deea
commit ed67719
Showing
10 changed files
with
161 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters