HomeSoftware Heritage

RPC server: explicitly handle sentry exception capture

Description

RPC server: explicitly handle sentry exception capture

The error handler for RPC server classes is used for both unexpected
exceptions (using a 5xx status code), and exceptions used for the normal
execution flow, which are encoded on the server side, and decoded to be
raised again on the client side (and use a 4xx status code). We only
record sentry errors for the 5xx class exceptions.

Details

Provenance
olasdAuthored on Apr 13 2022, 2:16 PM
olasdPushed on Apr 14 2022, 10:31 AM
Differential Revision
D7566: RPC server: explicitly handle sentry exception capture
Parents
rDCOREc7f1b6880b96: statsd: add an error_type tag to @timed error counters
Branches
Unknown
Tags
Unknown
Build Status
Buildable 28454
Build 44487: test-and-buildJenkins console · Jenkins