Integration
sentry-android
Build System
Gradle
AGP Version
8.9.2
Proguard
Enabled
Version
8.11.1
Steps to Reproduce
- Create
SentryStackFrame object.
- Set
filename, function, lineno, contextLine, preContext and postContext.
- Add it to an event stack frames and capture it.
- Check JSON output.
Expected Result
Having pre_context and post_context in the JSON stacktrace->frames.
Actual Result
Both preContext and postContext are not serialized in serialize(). Take a look at SentryStackFrame code: preContext and postContext are unused variables.

Integration
sentry-android
Build System
Gradle
AGP Version
8.9.2
Proguard
Enabled
Version
8.11.1
Steps to Reproduce
SentryStackFrameobject.filename,function,lineno,contextLine,preContextandpostContext.Expected Result
Having
pre_contextandpost_contextin the JSONstacktrace->frames.Actual Result
Both
preContextandpostContextare not serialized inserialize(). Take a look at SentryStackFrame code:preContextandpostContextare unused variables.