Tracy: AI Tracing Library for Kotlin and Java
Tracy is an open-source JetBrains Kotlin library that adds OpenTelemetry observability to JVM applications. It provides APIs that help define what needs to be traced at a high level, while hiding implementation details such as span structures and attribute names. The library also supports multiple OpenTelemetry backends out of the box.
-
Quick introduction to Tracy and how to set it up
-
Tracy is built on OpenTelemetry, the industry-standard framework for observability
Features
-
Learn how to instrument your code with Tracy's tracing primitives
-
Configure backends like Langfuse, Jaeger, and more
-
Trace LLM calls with dedicated primitives for prompts, completions, and token usage
-
Kotlin Compiler Plugin that enables annotation-based tracing with zero boilerplate
Troubleshooting
-
Tips for troubleshooting when tracing isn't working as expected
-
Known limitations and recommended workarounds for context propagation, local functions, and more