Kotlin compiler plugin to emit method execution metadata in logging
Go to file
Harsh Shandilya c592f4b385
chore: set up blame ignore-revs file
2023-08-19 02:04:29 +05:30
.idea fix(idea): disable `UnusedVersionCatalogEntry` inspection 2023-08-19 01:29:51 +05:30
buildSrc fix(build): explicitly use ktfmt Google style 2023-08-19 02:03:59 +05:30
compiler-plugin fix(build): explicitly use ktfmt Google style 2023-08-19 02:03:59 +05:30
gradle refactor(build): commonize publishing config 2023-08-19 01:20:52 +05:30
gradle-plugin fix(build): explicitly use ktfmt Google style 2023-08-19 02:03:59 +05:30
runtime fix(build): explicitly use ktfmt Google style 2023-08-19 02:03:59 +05:30
sample-jvm fix(build): explicitly use ktfmt Google style 2023-08-19 02:03:59 +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
README.md chore: flesh out README 2023-08-18 06:33:43 +05:30
build.gradle.kts fix(build): explicitly use ktfmt Google style 2023-08-19 02:03:59 +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
settings.gradle.kts refactor(build): `annotations` -> `runtime` 2023-08-19 01:37:35 +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!