Kotlin compiler plugin to emit method execution metadata in logging
Go to file
2023-08-24 19:25:41 +05:30
.github chore(deps): update gradle/gradle-build-action action to v2.7.1 2023-08-18 22:53:40 +00:00
.idea fix(idea): disable UnusedVersionCatalogEntry inspection 2023-08-19 01:29:51 +05:30
buildSrc feat(runtime): migrate to KMP 2023-08-24 19:25:41 +05:30
compiler-plugin feat(runtime): migrate to KMP 2023-08-24 19:25:41 +05:30
gradle feat(runtime): migrate to KMP 2023-08-24 19:25:41 +05:30
gradle-plugin feat(runtime): migrate to KMP 2023-08-24 19:25:41 +05:30
runtime feat(runtime): migrate to KMP 2023-08-24 19:25:41 +05:30
sample-jvm feat(compiler-plugin): make DebugLog annotation an external input 2023-08-21 11:35:02 +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 chore: ditch some IDEA cruft 2023-08-18 06:33:43 +05:30
build.gradle.kts fix(build): exclude generated sources from Spotless 2023-08-19 02:15:39 +05:30
gradle.properties Initial commit 2023-08-18 04:13:01 +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
README.md chore: flesh out README 2023-08-18 06:33:43 +05:30
settings.gradle.kts refactor(build): annotations -> runtime 2023-08-19 01:37:35 +05:30

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!