Kotlin compiler plugin to emit method execution metadata in logging
Go to file
Harsh Shandilya 923010dfff
refactor(build): realign to Kotlin 1.9.0
2023-08-30 19:22:44 +05:30
.github refactor(build): realign to Kotlin 1.9.0 2023-08-30 19:22:44 +05:30
.idea refactor(build): realign to Kotlin 1.9.0 2023-08-30 19:22:44 +05:30
build-logic refactor(build): realign to Kotlin 1.9.0 2023-08-30 19:22:44 +05:30
compiler-plugin refactor(build): realign to Kotlin 1.9.0 2023-08-30 19:22:44 +05:30
gradle refactor(build): realign to Kotlin 1.9.0 2023-08-30 19:22:44 +05:30
gradle-plugin refactor(build): realign to Kotlin 1.9.0 2023-08-30 19:22:44 +05:30
runtime refactor(build): convert `buildSrc` to an included build 2023-08-29 10:43:39 +05:30
sample-jvm refactor(build): realign to Kotlin 1.9.0 2023-08-30 19:22:44 +05:30
sample-kmp refactor(build): realign to Kotlin 1.9.0 2023-08-30 19:22:44 +05:30
.editorconfig Initial commit 2023-08-18 04:13:01 +05:30
.git-blame-ignore-revs chore: set up blame ignore-revs file 2023-08-19 02:04:29 +05:30
.gitignore feat(runtime): expand KMP targets list 2023-08-27 14:01:00 +05:30
LICENSE chore(build): add basic publishing info 2023-08-29 10:55:10 +05:30
README.md chore: flesh out README 2023-08-18 06:33:43 +05:30
build.gradle.kts refactor(build): convert `buildSrc` to an included build 2023-08-29 10:43:39 +05:30
gradle.properties chore(build): add basic publishing info 2023-08-29 10:55:10 +05:30
gradlew Initial commit 2023-08-18 04:13:01 +05:30
gradlew.bat Initial commit 2023-08-18 04:13:01 +05:30
settings.gradle.kts refactor(build): convert `buildSrc` to an included build 2023-08-29 10:43:39 +05:30

README.md

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!