Tracy is a new open-source Kotlin library from JetBrains that adds production-grade observability to AI-powered applications. It provides three main APIs: scoped spans via `withSpan`, one-line LLM client instrumentation for OpenAI, Anthropic, and Gemini clients, and annotation-based tracing with `@Trace` for tool calls and functions. Built on OpenTelemetry, it exports traces to any compatible backend including Jaeger, Zipkin, Grafana, Langfuse, and W&B Weave. Unlike full AI frameworks like Spring AI or Koog, Tracy instruments at the HTTP/API client level and allows tracing of arbitrary application logic without being locked into a specific framework's APIs.
Table of contents
Components of AI observability and how Tracy helpsAdding observability with TracyWhat’s nextSort: