Refactor error tracking gzip decompression
What does this MR do and why?
Error tracking has 2 endpoints: one of it uses middleware to decompress payload, another uses regular class. This MR makes both endpoints use the same middleware instead.
- Add
application/x-sentry-envelope
support tolib/gitlab/middleware/compressed_json.rb
middleware - Remove gzip decompression from
lib/error_tracking/collector/sentry_request_parser.rb
since we do it with middleware now.
We do this to remove code repetition.
No changes from user perspective.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Dmytro Zaporozhets (DZ)