← All platforms

Kotlin error tracking

Null safety helps. It doesn’t make every exception disappear. Use Sentry’s JVM SDK with Kotlin and keep the reports on your Telebugs server.

~/hoofnotes  nvim build.gradle.kts src/main/kotlin/Main.kt
dependencies {
implementation("io.sentry:sentry:8.55.0")
}
import io.sentry.Sentry
fun main() {
Sentry.init { options ->
// Copy the complete DSN, key and path included.
options.dsn = "YOUR_TELEBUGS_DSN"
}
try {
error("Hello from Hoof Notes")
} catch (error: Exception) {
Sentry.captureException(error)
} finally {
Sentry.close()
}
}
~/hoofnotes  ./gradlew run

Space pauses or resumes. R replays. Escape shows the complete setup.

Hang on, I already use Sentry

Keep io.sentry:sentry and change its destination to your Telebugs DSN. Your error reports stay on your server. You don’t need a Sentry account.

Kotlin on the JVM?

Yes. This page covers JVM applications using Sentry’s Java SDK, including server-side Kotlin. It is not a promise of Android or Kotlin/Native crash symbolication.

Can this work with Spring?

Yes. Kotlin apps can use the Spring or Spring Boot integrations for request error handling. Telebugs remains the destination.