opentelemetry-rust/examples/logs-basic
Dimitris Apostolou 81fea0747c
Avoid duplicate crates (#2703)
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2025-02-25 08:07:55 -08:00
..
src Show using tracing layer filters in examples (#2667) 2025-02-14 09:44:33 -08:00
Cargo.toml Avoid duplicate crates (#2703) 2025-02-25 08:07:55 -08:00
README.md Modify logs basic example to use tracing (#2397) 2024-12-09 09:38:48 -08:00

README.md

OpenTelemetry Log Appender for tracing - Example

This example shows how to use the opentelemetry-appender-tracing crate, which is a logging appender that bridges logs from the tracing crate to OpenTelemetry. The example setups a LoggerProvider with stdout exporter, so logs are emitted to stdout.

Usage

Run the following, and Logs emitted using tracing will be written out to stdout.

cargo run