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, and post_context for in-app frames.
- Bundle and upload the source from the Gradle plugin, teach
posthog-cli to carry it, and render it on the backend.
Components: SDK, Gradle plugin, posthog-cli, backend. iOS and Flutter-iOS already have source context.
Extracted from PostHog/posthog#43012.
Problem
Captured frames carry only
module,function,lineno, andfilename(ThrowableCoercer.ktbuilds them without any surrounding source), so the error UI can't show the lines around a frame.Scope
pre_context,context_line, andpost_contextfor in-app frames.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.