Skip to content

v0.1.0

Compare
Choose a tag to compare
@vincenzopalazzo vincenzopalazzo released this 01 Oct 07:42
· 10 commits to main since this release
d961bdb

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.