fastrace 0.7.17

A high-performance timeline tracing library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2020 TiKV Project Authors. Licensed under Apache-2.0.

use crate::collector::SpanRecord;
use crate::collector::global_collector::Reporter;

/// A console reporter that prints span records to the stderr.
pub struct ConsoleReporter;

impl Reporter for ConsoleReporter {
    fn report(&mut self, spans: Vec<SpanRecord>) {
        for span in spans {
            eprintln!("{span:#?}");
        }
    }
}