opentelemetry-rust/examples/logs-basic
Anton Grübel 8c29ca7e21
chore: leverage fallback resolver for MSRV check (#2993)
2025-05-22 08:39:53 -07:00
..
src feat: Leverage Suppression Context in Sdk (#2868) 2025-03-28 10:51:40 -07:00
Cargo.toml chore: leverage fallback resolver for MSRV check (#2993) 2025-05-22 08:39:53 -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