opentelemetry-rust/examples/logs-basic
Cijo Thomas 62e43c5489
feat: Leverage Suppression Context in Sdk (#2868)
Co-authored-by: Utkarsh Umesan Pillai <66651184+utpilla@users.noreply.github.com>
2025-03-28 10:51:40 -07:00
..
src feat: Leverage Suppression Context in Sdk (#2868) 2025-03-28 10:51:40 -07:00
Cargo.toml perf: Run all benchmarks for shorter time (#2870) 2025-03-28 09:23:06 -07: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