From ff6c417275ce5fce09002320f8837591ec62ba1e Mon Sep 17 00:00:00 2001 From: Ryan Skonnord Date: Fri, 14 Jan 2022 11:49:10 -0800 Subject: [PATCH] ref(auth): Increase sample rate to 1.0 on idpmigration.* metrics --- src/sentry/auth/idpmigration.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sentry/auth/idpmigration.py b/src/sentry/auth/idpmigration.py index da8d95198f16bb..03330fff0bcb47 100644 --- a/src/sentry/auth/idpmigration.py +++ b/src/sentry/auth/idpmigration.py @@ -80,7 +80,7 @@ def send_confirm_email(self) -> None: context=context, ) msg.send_async([self.email]) - metrics.incr("idpmigration.confirm_link_sent") + metrics.incr("idpmigration.confirm_link_sent", sample_rate=1.0) def store_in_redis(self) -> None: cluster = get_redis_cluster() @@ -114,7 +114,8 @@ def get_verification_value_from_key(key: str) -> Dict[str, Any]: metrics.incr( "idpmigration.confirmation_success", tags={key: verification_value.get(key) for key in ("provider", "organization_id")}, + sample_rate=1.0, ) else: - metrics.incr("idpmigration.confirmation_failure") + metrics.incr("idpmigration.confirmation_failure", sample_rate=1.0) return verification_value