How to get all the data from the traceback


#1

Hello, I am trying to capture all the data from a traceback

This is how I configure the client:

sc = Client(dsn, string_max_length=4000, list_max_length=500)

but when I try creating a local variable of say 100 elements, it always truncates them, is there any configuration I have to do on the server side?

I am supecting this is from the client side, but I could be wrong


#2

Just did a tcpdump on it, and the client seems to be behaving fine, all the data is there, the server might be chopping it out, any ideas where this could be set?


#3

Just posted this response to your Google Group submission, but going to repost it here for anyone who comes across this question in the future:

In addition to the client side trimming (which you already noted), there are a few different server side maximum lengths, defined here: https://github.com/getsentry/sentry/blob/6ba6d960b0e5bcb5e0598f5f8c8f49cba96d3142/src/sentry/conf/server.py#L947-L965

The bulk of the trimming is handled within the normalize function of the event manager, if you want to dig in further to identify what’s happening in your specific scenario: https://github.com/getsentry/sentry/blob/6ba6d960b0e5bcb5e0598f5f8c8f49cba96d3142/src/sentry/event_manager.py#L233

One thing worth noting is that the trim function https://github.com/getsentry/sentry/blob/6ba6d960b0e5bcb5e0598f5f8c8f49cba96d3142/src/sentry/utils/safe.py#L45 will track the size of the entire data structure, so variations in the size of the individual members may cause different results in the case of a sequence or mapping type.


Referer header not fully viewable after 512 char