otel4s is an OpenTelemetry implementation for Scala. The design goal is to fully and faithfully implement the OpenTelemetry Specification atop Cats Effect.
-
otel4s provides APIs and implementations for metrics and tracing.
-
Core modules for JVM, Scala.js, and Scala Native offer an API with no-op implementations. These are appropriate for library instrumentation.
-
SDK modules provide working telemetry for applications. SDK modules are implemented in Scala from scratch. Available for JVM, Scala.js, and Scala Native. The implementation remains experimental and some functionality may be lacking.
-
opentelemetry-java backend provided for the JVM. This provides working telemetry for applications.
The API is still highly experimental, but we are actively instrumenting various libraries and applications to check for fit. Don't put it in a binary-stable library yet, but we invite you to try it out and let us know what you think.
Module / Platform | JVM | Scala Native | Scala.js |
---|---|---|---|
otel4s-core |
✅ | ✅ | ✅ |
otel4s-sdk |
✅ | ✅ | ✅ |
otel4s-oteljava |
✅ | ❌ | ❌ |
See the website.