Add support of Kotlin's SourceDebugExtension by jpbempel · Pull Request #10448 · DataDog/dd-trace-java

@jpbempel

In Kotlin some constructions remap source line beyond of the end of
file (ex: stream operations, ...) which leads to incorrect line
numbering in SymDB. The Kotlin classfiles contains information
about this line remapping using the SourceDebugExtension (JSR-45).
We are leveraging this extension to remap correctly the line numbers
and send corrected lines to SymDB.
We are introducing a SourceRemapper interface with one implementation
for Kotlin for now, but keeping open door for other languages like
Scala.

evanchooly

@jpbempel jpbempel deleted the jpbempel/add-kotlin-source-debug-ext branch

January 28, 2026 06:15