Attributes limits vs trimming

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?

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

What SDK are you using?

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?

1 Like

@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;