Add basic support for sentry

This commit is contained in:
Eli Ribble 2026-01-29 15:48:15 +00:00
parent ef38aaf041
commit d9ccdd41b2
No known key found for this signature in database
4 changed files with 58 additions and 7 deletions

View file

@ -28,6 +28,7 @@ var (
PGDSN string
PhoneNumberReport phonenumbers.PhoneNumber
PhoneNumberReportStr string
SentryDSN string
TwilioAuthToken string
TwilioAccountSID string
TwilioMessagingServiceSID string
@ -139,6 +140,10 @@ func Parse() (err error) {
}
PhoneNumberReport = *p
SentryDSN = os.Getenv("SENTRY_DSN")
if SentryDSN == "" {
return fmt.Errorf("You must specify a non-empty SENTRY_DSN")
}
TwilioAccountSID = os.Getenv("TWILIO_ACCOUNT_SID")
if TwilioAccountSID == "" {
return fmt.Errorf("You must specify a non-empty TWILIO_ACCOUNT_SID")