opentelemetry-rust/examples/logs-basic/README.md

620 B

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