/otel4s

An OpenTelemetry library for Scala based on Cats-Effect

Primary LanguageScalaApache License 2.0Apache-2.0

otel4s

Typelevel Organization Project Maven Central

Telemetry meets higher-kinded types

otel4s is an OpenTelemetry implementation for Scala. The design goal is to fully and faithfully implement the OpenTelemetry Specification atop Cats Effect.

Features

  • 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.

Status

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.

Modules availability

Module / Platform JVM Scala Native Scala.js
otel4s-core
otel4s-sdk
otel4s-oteljava

Learn more

See the website.