typelevel / otel4s   0.6.0

Apache License 2.0 Website GitHub

An OpenTelemetry library for Scala based on Cats-Effect

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

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 (only tracing, currently) 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 (tracing only)
otel4s-oteljava

Learn more

See the website.