Skip to content

Move API exception logging to DRF handler#2167

Merged
alastair merged 1 commit into
masterfrom
429-api-exception-handler
Jul 21, 2026
Merged

Move API exception logging to DRF handler#2167
alastair merged 1 commit into
masterfrom
429-api-exception-handler

Conversation

@alastair

Copy link
Copy Markdown
Member

our API exceptions had side effects when you initialized them, sending logging events and metrics.

Instead, make the exceptions themselves pure, and only log events in a custom DRF error handler

Issue(s)

Description

Deployment steps:

@alastair
alastair force-pushed the 429-api-exception-handler branch 2 times, most recently from 8991011 to 5d0d87d Compare July 21, 2026 08:11
@alastair
alastair force-pushed the 429-api-exception-handler branch from 5d0d87d to 36a9e25 Compare July 21, 2026 08:18
@alastair
alastair merged commit 36a9e25 into master Jul 21, 2026
3 checks passed
@alastair
alastair deleted the 429-api-exception-handler branch July 21, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant