Bug reports saying 'it doesn't work' are useless without context. Session replay for Kotlin shows you exactly what the user did, saw, and experienced.
Prerequisites
Before you begin, make sure you have a Bugsly account and a Kotlin project ready to instrument. You'll need your project DSN from the Bugsly dashboard — find it under Settings > Projects > Client Keys.
Step-by-Step Integration
- Add the Bugsly package to your Kotlin project:
implementation 'io.bugsly:bugsly-kotlin'- Configure the SDK at your application's entry point:
import io.bugsly.Bugsly
fun main() {
Bugsly.init { options ->
options.dsn = "YOUR_BUGSLY_DSN"
options.tracesSampleRate = 1.0
}
}- Deploy your changes and verify events appear in the Bugsly dashboard.
Fine-Tuning Your Setup
After the basic integration works, consider these adjustments for Kotlin:
- Sampling rate: Adjust
tracesSampleRatebased on your traffic volume. High-traffic apps should sample at 0.1–0.3 to control costs. - Environment tags: Tag events with
production,staging, ordevelopmentto filter noise. - Release tracking: Pass your version string so Bugsly can track regressions across deployments.
- Custom context: Attach user IDs, request metadata, or business-specific data to events for richer debugging.
Bugsly's session replay for Kotlin runs with minimal overhead. The SDK is designed to be lightweight, batching events and sending them asynchronously so your application performance stays unaffected.
Next Steps
Once session replay is running, configure privacy rules to mask sensitive user data like passwords and credit card fields. Use replay search to find sessions matching specific criteria — like sessions with rage clicks or error events. Connect replays to error reports for instant visual context during debugging.
Try Bugsly Free
AI-powered error tracking that explains your bugs. Set up in 2 minutes, free forever for small projects.
Get Started FreeRelated Articles
Next.js Performance Monitoring: Complete Setup Guide
Add performance monitoring to your Next.js app with Bugsly. Covers installation, SDK setup, and production best practices.
Read moreComplete Bugsly Setup for Nuxt.js
Learn how to set up error monitoring in Nuxt.js with Bugsly. Step-by-step guide with code examples and best practices.
Read moreSetting Up Bugsly in Your Electron Project
Step-by-step tutorial for configuring Bugsly error monitoring in Electron. Includes code snippets and optimization tips.
Read moreRemix Distributed Tracing: Complete Setup Guide
Add distributed tracing to your Remix app with Bugsly. Covers installation, SDK setup, and production best practices.
Read more