Skip to content

A lightweight and straightforward OpenTelemetry log adapter for Rust, enabling seamless export of logs to an OpenTelemetry collector. Designed for simplicity and ease of integration, it bridges your Rust application’s logging with distributed tracing systems, allowing you to monitor and analyze logs efficiently in observability platforms

License

Notifications You must be signed in to change notification settings

vincenzopalazzo/opentelemetry-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opentelemetry-log

CI Latest Version License

A minimal and simple OpenTelemetry log adapter that allows you to export your Rust logs 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:

[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
}

License

This project is licensed under the GNU General Public License. See the LICENSE file for details.

How to Deploy OpenTelemetry with Grafana

How to inspect the logs is something that is dependent on the user, but if you are starting from scratch and you want to learn how to work with Grafana and OpenTelemetry, I suggest starting from here: https://github.com/grafana/docker-otel-lgtm

About

A lightweight and straightforward OpenTelemetry log adapter for Rust, enabling seamless export of logs to an OpenTelemetry collector. Designed for simplicity and ease of integration, it bridges your Rust application’s logging with distributed tracing systems, allowing you to monitor and analyze logs efficiently in observability platforms

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project