v0.1.0
v0.1.0
Features
- Export Rust logs to an OpenTelemetry collector
- Minimal and simple adapter
- Easy integration with existing logging (just
log
for now) frameworks
Installation
Add this to your Cargo.toml
:
[dependencies]
opentelemetry-log = "0.1"
Usage
use opentelemetry_common::Opentelemetry;
fn main() {
let mut manager = Opentelemetry::new();
manager.init_log("example", &args.level, &url)?;
// Your application code
}
Cheers,
Vincent.