ktrace
ktools/docs/ktrace.mdktrace is the tracing and logging layer in the ktools stack.
It focuses on explicit, structured diagnostic output rather than ad hoc print statements.
Shared Design
Across languages, ktrace generally provides:
- named channels or selectors
- runtime trace enablement
- operator-facing log output
- integration with
kclifor CLI-controlled tracing
Role In The Stack
ktrace sits above kcli and below the higher-level libraries:
- it uses
kcliwhen a runtime exposes trace controls on the command line - it supplies diagnostics that
kconfigandki18ncan reuse - it keeps diagnostic behavior aligned even when API syntax differs by language
Language Pages
The language-specific pages pull in each implementation's own markdown, with API, behavior, and example material when it exists in that workspace.