I’m using sentry with an AWS lambda containing python code. It seems that only a subset of all the local variables are logged (at most 10 per entry in the stacktrace). Is there some option I can pass so that all local variables are logged?
I think this is the default option: https://docs.sentry.io/error-reporting/configuration/?platform=python#with-locals
Hi @teodor, this is a long-standing issue in the Python SDK: https://github.com/getsentry/sentry-python/issues/377
The issue is that we cannot send arbitrarily large event data, so we just have to cut off data at some point. I suggest to log additional data you’re interested in using the methods provided at https://docs.sentry.io/enriching-error-data/context/