You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: opentelemetry-appender-log/examples/logs-basic.rs
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,15 @@
1
1
//! run with `$ cargo run --example logs-basic`
2
2
3
-
/// This example shows how to use in_memory_exporter for logs. This uses opentelemetry-appender-log crate, which is a
4
-
/// [logging appender](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/glossary.md#log-appender--bridge) that bridges logs from the [log crate](https://docs.rs/log/latest/log/) to OpenTelemetry.
5
-
/// The example setups a LoggerProvider with a in-memory exporter, so emitted logs are stored in memory.
3
+
/// This example shows how to use stdout exporter for logs. This uses
4
+
/// opentelemetry-appender-log crate, which is a [logging
0 commit comments