sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Attach request body for more MIME types

Open adinauer opened this issue 5 months ago • 0 comments

Problem Statement

Currently Sentry filters by MIME type when attaching the request body to an event, only doing so for JSON.

A user asked for this in https://github.com/getsentry/sentry-java/pull/3641#issuecomment-2306640322

form-urlencoded requests are also used a lot, so I would like to support for “application/x-www-form-urlencoded”.

Solution Brainstorm

Python attaches JSON, form and files, see https://github.com/getsentry/sentry-python/blob/master/sentry_sdk%2Fintegrations%2F_wsgi_common.py#L129-L143.

We can extend from only JSON to more in v8.

adinauer avatar Aug 26 '24 09:08 adinauer