Skip to content

A Kotlin multiplatform wrapper around opentelemetry-api for Java and JavaScript

License

Notifications You must be signed in to change notification settings

Zincfox/opentelemetry-kotlin-delegate

Repository files navigation

Opentelemetry kotlin delegate

About

A simple opentelemetry wrapper library which delegates to the JS- and Java-specific opentelemetry libraries under the hood.

The benefit of this approach over dcxp/opentelemetry-kotlin is that it allows the interop with the target-specific libraries, whereas opentelemetry-kotlin reimplements the opentelemetry specification, resulting in its own classes and no interop with libraries not depending on it.

On java no wrapper objects are allocated, nearly everything is done with the actual OpenTelemetry library classes by utilizing actual typealias.

Where did Context.makeCurrent() go?

Context.makeCurrent and Scope.close do not exist in the JavaScript opentelemetry api, as such they cannot be included in the multiplatform wrapper. Instead, use Context.runWithActive to run code with the given context.

TODO

  • Documentation
  • Publish official maven artifact and move to public github repository

About

A Kotlin multiplatform wrapper around opentelemetry-api for Java and JavaScript

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages