owiwi

Crates.ioowiwi
lib.rsowiwi
version0.3.0
created_at2025-09-23 18:33:08.264013+00
updated_at2025-09-25 12:29:51.424667+00
descriptionA library to initialize tracing with opentelemetry
homepage
repositoryhttps://github.com/aklanti/owiwi
max_upload_size
id1851885
size84,545
Sede Soukossi (styvane)

documentation

README

Crates.io Documentation MIT licensed Build Status

Overview

Owiwi is a library for initializing tracing subscriber with OpenTelemetry

Usage

To use owiwi, add the following to your Cargo.toml

[dependencies]
owiwi = "0.2"
tracing = "0.1"

Then initiate the subscriber using the init() method

use owiwi::Owiwi

fn main() {
  // Initialize the subscriber with an exporter that prints telemetry
  // (logs, metrics and traces) to the standard output.
  Owiwi::init("demo-service");
  tracing::info!("All good!");
}

You can also initialize the subscriber in asynchronous code.

use owiwi::Owiwi
use tracing::info;

async fn main() {
  // Initialize the subscriber with an exporter that prints telemetry
  // (logs, metrics and traces) to the standard output.
  Owiwi::init("demo-service");
  tracing::info!("All good!");
}

The optional bon feature allows initializing the subscriber with non default exporter.

Optional features

By default owiwi depends on clap and serde. There are optional features that enable

Supported Rust Versions

Owiwi currently only support the latest stable version.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Owiwi by you, shall be licensed as MIT, without any additional terms or conditions.

Acknowledgments

This project was inspired by this blog post.

Commit count: 19

cargo fmt