Skip to content

Commit

Permalink
ref(auth): Increase sample rate to 1.0 on idpmigration.* metrics (#31139
Browse files Browse the repository at this point in the history
)
  • Loading branch information
RyanSkonnord authored Jan 14, 2022
1 parent 83b1f25 commit 63b714d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sentry/auth/idpmigration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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

0 comments on commit 63b714d

Please sign in to comment.