typelevel / otel4s   0.3.0

Apache License 2.0 Website GitHub

An OpenTelemetry library for Scala based on Cats-Effect

Scala versions: 3.x 2.13
Scala.js versions: 1.x
Scala Native versions: 0.4


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.


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

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

Modules availability

Module / Platform JVM Scala Native Scala.js

Learn more

See the website.