Skip to content

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.

  • Get Started


    Quick introduction to Tracy and how to set it up

  • OpenTelemetry


    Tracy is built on OpenTelemetry, the industry-standard framework for observability

Features

  • Tracing API


    Learn how to instrument your code with Tracy's tracing primitives

  • OpenTelemetry Exporters


    Configure backends like Langfuse, Jaeger, and more

  • LLM Tracing API


    Trace LLM calls with dedicated primitives for prompts, completions, and token usage

  • KCP


    Kotlin Compiler Plugin that enables annotation-based tracing with zero boilerplate

Troubleshooting

  • Debugging


    Tips for troubleshooting when tracing isn't working as expected

  • Limitations


    Known limitations and recommended workarounds for context propagation, local functions, and more