Attributes limits vs trimming


#1

So sometimes I have exceptions with a large amount of data. Sentry API currently returns “(413) Request Entity Too Large” and logs nothing. Is there to set sentry to trim and save partial data instead of decarding everything?


#2

The data truncation would need to happen on the client side, before trying to send the data to Sentry.

What SDK are you using?


#3

Hi, we are using C# client. We can put a check on ErrorOnCapture event, but how do we find the original exception so we can try to log it again?


#4

@ke.z in that case you can use:

ravenClient.BeforeSend = requester =>
{
    // Here you can log data from the requester
    // or replace it entirely if you want.
   // Truncate what you can so the payload fits the 100kb limit
    return requester;
};