Paul Krill
Editor at Large

JetBrains unveils AI tracing library for Kotlin and Java

news
Mar 12, 20262 mins

Tracy, an open-source Kotlin library, helps developers trace, monitor, and evaluate AI-powered features directly from their Kotlin or Java projects, JetBrains said.

Jet airplane cockpit flight controls flight display instrumentation panel pilot view with cloudy blue sky ahead
Credit: VladyslaV Travel photo / Shutterstock

JetBrains has introduced Tracy, an AI tracing library for the Kotlin and Java languages.

Announced March 11 and accessible from GitHub, Tracy helps developers trace, monitor, and evaluate AI-powered features directly from their Kotlin or Java projects, JetBrains said. The open-source Kotlin library provides a unified API to capture structured traces and helps developers debug failures, measure execution time, and track large language model (LLM) usage across model calls, tool calls, and custom application logic.

Tracy implements the OpenTelemetry Generative AI Semantic Conventions for span attributes and event naming, thus ensuring traces remain compatible with any OpenTelemetry-compliant back end. JetBrains noted the following specific uses for Tracy:

  • Tracing AI clients to capture messages, cost, token usage, and execution time.
  • Tracing any function to record inputs, outputs, and execution duration.
  • Creating and managing spans manually.
  • Exporting traces to supported back ends (currently Langfuse and Weave).

Licensed under the Apache 2.0 License, Tracy is compatible with Kotlin from version 2.0.0 and Java from version 17. Integrations can be made with SDKs from OpenAI, Anthropic, and Gemini. The library also works with common Kotlin/LLM stacks including OkHttp and Ktor clients, as well as OpenAI, Anthropic, and Gemini ones, JetBrains said.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author