ai cooking
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

operation id for each mail (#502)

* operation id for each mail

* fumpt

authored by

Paul Miller and committed by
GitHub
21812949 aedd37fb

+4
+4
internal/mail/mail.go
··· 19 19 "careme/internal/cache" 20 20 "careme/internal/config" 21 21 "careme/internal/locations" 22 + "careme/internal/logsetup" 22 23 "careme/internal/recipes" 23 24 "careme/internal/recipes/critique" 24 25 "careme/internal/users" 25 26 26 27 utypes "careme/internal/users/types" 27 28 29 + "github.com/google/uuid" 28 30 "github.com/samber/lo" 29 31 "github.com/sendgrid/rest" 30 32 "github.com/sendgrid/sendgrid-go" ··· 123 125 } 124 126 125 127 func (m *mailer) sendEmail(ctx context.Context, user utypes.User) { 128 + ctx = logsetup.WithOperationID(ctx, uuid.NewString()) 129 + 126 130 if !user.MailOptIn { 127 131 slog.DebugContext(ctx, "user has not opted into mail", "user", user.ID) 128 132 return