Crates.io | owiwi |
lib.rs | owiwi |
version | 0.3.0 |
created_at | 2025-09-23 18:33:08.264013+00 |
updated_at | 2025-09-25 12:29:51.424667+00 |
description | A library to initialize tracing with opentelemetry |
homepage | |
repository | https://github.com/aklanti/owiwi |
max_upload_size | |
id | 1851885 |
size | 84,545 |
Owiwi is a library for initializing tracing subscriber with OpenTelemetry
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.
By default owiwi
depends on clap
and serde
. There are optional features that enable
bon
adds bon::Builder
implementation for TracerProviderOptions
and Owiwi
Owiwi
currently only support the latest stable version.
This project is licensed under the MIT license.
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.
This project was inspired by this blog post.