Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vincenzopalazzo/opentelemetry-log
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
https://github.com/vincenzopalazzo/opentelemetry-log
observability opentelemetry rust rust-crate rust-lang rust-library
Last synced: about 1 month ago
JSON representation
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
- Host: GitHub
- URL: https://github.com/vincenzopalazzo/opentelemetry-log
- Owner: vincenzopalazzo
- License: gpl-2.0
- Created: 2024-10-01T07:10:50.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-31T09:12:45.000Z (3 months ago)
- Last Synced: 2024-12-16T20:18:12.268Z (about 1 month ago)
- Topics: observability, opentelemetry, rust, rust-crate, rust-lang, rust-library
- Language: Rust
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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 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`:
```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.
## 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