mirror of
https://github.com/msfjarvis/TraceLog.git
synced 2024-06-03 04:18:59 +05:30
Kotlin compiler plugin to emit method execution metadata in logging
.github | ||
.idea | ||
buildSrc | ||
compiler-plugin | ||
gradle | ||
gradle-plugin | ||
runtime | ||
sample-jvm | ||
.editorconfig | ||
.git-blame-ignore-revs | ||
.gitignore | ||
build.gradle.kts | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
README.md | ||
settings.gradle.kts |
TraceLog
PoC Kotlin compiler plugin to emit OpenTelemetry-compatible logging metadata from Kotlin projects.
Currently, this prints out a basic textual representation of the method's inputs and execution time. That is, given this code:
@DebugLog
fun debuggableFunction(p0: String): String {
return "Debugging is cool!"
}
The compiler plugin will generate code that writes the following messages
⇢ debuggableFunction(p0=First parameter)
⇠ debuggableFunction [214.209us] = Debugging is cool!