PostHog / PostHog/posthog-android
Bundle source code context lines with Android stack frames
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 90
- Forks
- 49
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 61
Description
Extracted from PostHog/posthog#43012.
Problem
Captured frames carry only module, function, lineno, and filename (ThrowableCoercer.kt builds them without any surrounding source), so the error UI can't show the lines around a frame.
Scope
- Emit
pre_context,context_line, andpost_contextfor in-app frames. - Bundle and upload the source from the Gradle plugin, teach
posthog-clito carry it, and render it on the backend.
Components: SDK, Gradle plugin, posthog-cli, backend. iOS and Flutter-iOS already have source context.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with ThrowableCoercer.kt to trace how Android frames are built, then inspect the SDK, Gradle plugin, posthog-cli, and backend components named in the scope. Done means in-app frames carry pre_context, context_line, and post_context, with source bundled, uploaded, transported, and rendered across those components.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- backend, build-system, cli, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100