[−][src]Module opentelemetry::exporter::trace::stdout
Stdout Span Exporter
The stdout SpanExporter
writes debug printed Span
s to its configured
Write
instance. By default it will write to Stdout
.
Examples
use opentelemetry::api::trace::Tracer; use opentelemetry::exporter::trace::stdout; fn main() { let (tracer, _uninstall) = stdout::new_pipeline() .with_pretty_print(true) .install(); tracer.in_span("doing_work", |cx| { // Traced app logic here... }); }
Structs
Exporter | A |
PipelineBuilder | Pipeline builder |
Uninstall | Uninstalls the stdout pipeline on drop. |
Functions
new_pipeline | Create a new stdout exporter pipeline builder. |