Supercharged WebView Observability: Or what h...
summary
Initial Android-only callbacks prove too sparse—page loads and HTTP errors only—so the team builds a hybrid: injects a JavaScript SDK string into every WebView, captures Google Chrome Web Vitals (LCP, INP, CLS), long tasks, rage clicks, console/resource errors and promise rejections, then ships events via postMessage to platform where they merge into the native session timeline. Implementation uses a Gradle plugin for automatic instrumentation, no remote CDN, serialization limits, kill switches, and yields a unified cross-platform session trace.
AI-written summary · about
chapters (9)
- 0:00Introduction to mobile observability
- 1:05WebView telemetry black hole
- 3:53Four goals for WebView observability
- 6:24Android API challenges and prototype
- 8:07JavaScript SDK approach
- 12:59Hybrid observability solution
- 15:50Ensuring safe WebView instrumentation
- 17:35Future plans and improvements
- 19:02Key takeaways and conclusion
