sam-myers / omnirss

https://omnirss.com
Apache License 2.0
0 stars 0 forks source link

Sweep: add Sentry error reporting #127

Open sam-myers opened 11 months ago

sam-myers commented 11 months ago

In functions/packages/config/config.go, add a new value for Sentry DSN, which is to be populated by the environment variable SENTRY_DSN.

For both functions/search and functions/spotify-rss, add github.com/getsentry/sentry-go as a dependency. Use the Sentry SDK to send error logs when either function encounters an unrecoverable error, for example when a 500 error is returned.

Also, suggest improvements on how to integrate Sentry properly.

Checklist - [X] ``functions/packages/config/config.go`` ✅ Commit 7c3f47b - [X] ``functions/search/go.mod`` ✅ Commit 31139c1 - [X] ``functions/search/main.go`` ✅ Commit 222142a - [X] ``functions/spotify-rss/go.mod`` ✅ Commit 05e7622 - [X] ``functions/spotify-rss/main.go`` ✅ Commit dcb3ee7
sweep-ai[bot] commented 11 months ago

Here's the PR! https://github.com/sam-myers/omnirss/pull/128.

⚡ Sweep Free Trial: I'm creating this ticket using GPT-4. You have 2 GPT-4 tickets left for the month and 2 for the day. For more GPT-4 tickets, visit our payment portal.

Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/sam-myers/omnirss/blob/e7fb2c5d0da896b50bdc3ba1538651aa3a5d36f1/functions/packages/config/config.go#L1-L57 https://github.com/sam-myers/omnirss/blob/e7fb2c5d0da896b50bdc3ba1538651aa3a5d36f1/functions/spotify-rss/main.go#L1-L44 https://github.com/sam-myers/omnirss/blob/e7fb2c5d0da896b50bdc3ba1538651aa3a5d36f1/functions/search/main.go#L1-L56

Step 2: ⌨️ Coding


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/add-sentry-error-reporting.

.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord