Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 584 Bytes

File metadata and controls

16 lines (9 loc) · 584 Bytes

Log Appender for API - Example

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.

Usage

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

$ cargo run