dcxp / opentelemetry-kotlin

Apache License 2.0
35 stars 2 forks source link

Opentelemetry - Kotlin

This repository contains a port of Opentelemetry-Java in to Kotlin Multiplatform

It contains ports for:

Working on JVM, JS and native (windows, mac, linux)

Most unit tests are also ported.

Installation

To use the library, add the following to your build.gradle.kts file:

repositories {
    maven(url = "https://maven.pkg.github.com/dcxp/opentelemetry-kotlin")
}

dependencies {
    implementation("io.opentelemetry.kotlin.api:all:VERSION")
    implementation("io.opentelemetry.kotlin.api:metrics:VERSION")
    implementation("io.opentelemetry.kotlin.sdk:sdk-metrics:VERSION")
    implementation("io.opentelemetry.kotlin.sdk:sdk-trace:VERSION")
}

Ported by SNK