This example shows how to use the opentelemetry-appender-log crate, which is a logging appender that bridges logs from the log crate to OpenTelemetry. The example setups a LoggerProvider with stdout exporter, so logs are emitted to stdout.
Run the following, and Logs emitted using log will be written out to stdout.
$ cargo run