Commit 0096575
authored
feat: Add email send operation metrics (#2311)
## What kind of change does this PR introduce?
This PR adds two new metrics,
`gotrue_email_send_operations_counter_total` and
`gotrue_email_send_errors_counter_total`, for tracking email send
operations and errors respectively. The purpose of these metrics is to
track email delivery independently of the various API handlers that may
send email within Auth.
## What is the current behavior?
Users who want to track email sending operations in Auth must use
indirect metrics like HTTP status codes to determine whether an email
was successfully sent.
## What is the new behavior?
The `gotrue_email_send_operations_counter_total` counter will increment
each time Auth attempts to send an email after performing validation and
checking rate limits. The `gotrue_email_send_errors_counter_total`
counter will increment each time an email send attempt fails.1 parent a486ada commit 0096575
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
865 | 868 | | |
866 | 869 | | |
867 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
868 | 875 | | |
869 | 876 | | |
870 | 877 | | |
| |||
902 | 909 | | |
903 | 910 | | |
904 | 911 | | |
| 912 | + | |
| 913 | + | |
905 | 914 | | |
906 | 915 | | |
907 | 916 | | |
908 | 917 | | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
909 | 921 | | |
910 | 922 | | |
911 | 923 | | |
| |||
0 commit comments