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

feat: emit pool timeouts/conditional failures as metrics (not sentry) #671

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

pjenvey
Copy link
Member

@pjenvey pjenvey commented Apr 5, 2024

and refactor BigtableClientManager::Error to use BigTableError

Closes: SYNC-4190

@pjenvey pjenvey requested review from jrconlin and taddes April 5, 2024 00:00
and refactor BigtableClientManager::Error to use BigTableError

Closes: SYNC-4190
@pjenvey pjenvey force-pushed the feat/pool-timeout-metrics-SYNC-4190 branch from ac03408 to 9ef2ecf Compare April 5, 2024 00:02
@@ -108,8 +108,6 @@ pub enum ApcErrorKind {
ParseUrlError(#[from] url::ParseError),
#[error(transparent)]
ConfigError(#[from] config::ConfigError),
#[error(transparent)]
DbError(#[from] crate::db::error::DbError),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ApcError's gonna get significant cleanup when we kill the autopush crate, so since this was only used in one place I just killed it

jrconlin
jrconlin previously approved these changes Apr 5, 2024
@@ -51,7 +51,9 @@ impl AppState {
let fernets: Vec<Fernet> = crypto_key
.split(',')
.map(|s| s.trim().to_string())
.map(|key| Fernet::new(&key)._or_else(|| panic!("Invalid {ENV_PREFIX}_CRYPTO_KEY")))
.map(|key| {
Fernet::new(&key).unwrap_or_else(|| panic!("Invalid {ENV_PREFIX}_CRYPTO_KEY"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, not sure why that didn't get flagged by the analyzer when I loaded you branch.

Goes and tries to figure out what's broken

@pjenvey pjenvey merged commit b4f01af into master Apr 5, 2024
1 check passed
@pjenvey pjenvey deleted the feat/pool-timeout-metrics-SYNC-4190 branch April 5, 2024 18:05
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.

2 participants