# opentelemetry-log [![CI](https://github.com/vincent/open-source/opentelemetry-log/actions/workflows/ci.yml/badge.svg)](https://github.com/vincent/open-source/opentelemetry-log/actions/workflows/ci.yml) [![Latest Version](https://img.shields.io/crates/v/opentelemetry-log.svg)](https://crates.io/crates/opentelemetry-log) [![License](https://img.shields.io/crates/l/opentelemetry-log.svg)](https://github.com/vincent/open-source/opentelemetry-log/blob/main/LICENSE) A minimal and simple opentelemetry log adapter that allow you to export your rust log to an opentelemetry collector ## 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`: ```toml [dependencies] opentelemetry-log = "0.1" ``` ## Usage ```rust use opentelemetry_common::Opentelemetry; fn main() { let mut manager = Opentelemetry::new(); manager.init_log("example", &args.level, &url)?; // Your application code } ``` ## License This project is licensed under the GNU GENERAL PUBLIC LICENSE. See the [LICENSE](LICENSE) file for details.