
Sentry Has a Free API — Track Errors and Performance From Code (Not Just the Dashboard)
Error Tracking Should Be Automated Sentry free plan gives you 5K errors/month with full API access. Manage issues, releases, and alerts programmatically. Setup import requests TOKEN = " your_sentry_auth_token " # Settings > Auth Tokens ORG = " your-org " BASE = " https://sentry.io/api/0 " HEADERS = { " Authorization " : f " Bearer { TOKEN } " } List Projects def list_projects (): r = requests . get ( f " { BASE } /organizations/ { ORG } /projects/ " , headers = HEADERS ) return [{ " name " : p [ " name " ], " slug " : p [ " slug " ], " platform " : p [ " platform " ]} for p in r . json ()] for p in list_projects (): print ( f " { p [ name ] } ( { p [ platform ] } ) " ) Get Unresolved Issues def get_issues ( project_slug , query = " is:unresolved " , limit = 10 ): r = requests . get ( f " { BASE } /projects/ { ORG } / { project_slug } /issues/ " , headers = HEADERS , params = { " query " : query , " limit " : limit }) return [{ " title " : i [ " title " ], " count " : i [ " count " ], "
Continue reading on Dev.to Tutorial
Opens in a new tab




