Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Latest commit

86ed1e3 · May 22, 2023

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