Crates.io | opentelemetry-common |
lib.rs | opentelemetry-common |
version | 0.1.0 |
source | src |
created_at | 2024-10-01 07:28:21.131129 |
updated_at | 2024-10-01 07:28:21.131129 |
description | A common library for OpenTelemetry logging in Rust. |
homepage | https://github.com/vincent/opentelemetry-log |
repository | https://github.com/vincent/opentelemetry-log |
max_upload_size | |
id | 1392566 |
size | 80,101 |
A minimal and simple opentelemetry log adapter that allow you to export your rust log to an opentelemetry collector
log
for now) frameworksAdd this to your Cargo.toml
:
[dependencies]
opentelemetry-log = "0.1"
use opentelemetry_common::Opentelemetry;
fn main() {
let mut manager = Opentelemetry::new();
manager.init_log("example", &args.level, &url)?;
// Your application code
}
This project is licensed under the GNU GENERAL PUBLIC LICENSE. See the LICENSE file for details.