#[repr(align(64))]pub struct TuiMetrics {Show 28 fields
pub total_events: AtomicUsize,
pub error_count: AtomicUsize,
pub active_spans: AtomicUsize,
pub throughput: AtomicUsize,
pub peak_throughput: AtomicUsize,
pub start_epoch_secs: AtomicUsize,
pub level_trace: AtomicUsize,
pub level_debug: AtomicUsize,
pub level_info: AtomicUsize,
pub level_warn: AtomicUsize,
pub level_error: AtomicUsize,
pub level_fatal: AtomicUsize,
pub level_critical: AtomicUsize,
pub dropped_events: AtomicUsize,
pub fmt_clf: AtomicUsize,
pub fmt_json: AtomicUsize,
pub fmt_cef: AtomicUsize,
pub fmt_elf: AtomicUsize,
pub fmt_w3c: AtomicUsize,
pub fmt_gelf: AtomicUsize,
pub fmt_apache: AtomicUsize,
pub fmt_logstash: AtomicUsize,
pub fmt_log4j: AtomicUsize,
pub fmt_ndjson: AtomicUsize,
pub fmt_mcp: AtomicUsize,
pub fmt_otlp: AtomicUsize,
pub fmt_logfmt: AtomicUsize,
pub fmt_ecs: AtomicUsize,
}Expand description
Atomic counters for the TUI dashboard. Cache-line aligned (repr(align(64))).
Fields§
§total_events: AtomicUsizeTotal number of log events ingested.
error_count: AtomicUsizeNumber of error/fatal events.
active_spans: AtomicUsizeNumber of active spans (OpenTelemetry style).
throughput: AtomicUsizeCalculated events per second.
peak_throughput: AtomicUsizePeak throughput (events per second).
start_epoch_secs: AtomicUsizeEngine start time (epoch seconds).
level_trace: AtomicUsizeTRACE-level event count.
level_debug: AtomicUsizeDEBUG-level event count.
level_info: AtomicUsizeINFO-level event count.
level_warn: AtomicUsizeWARN-level event count.
level_error: AtomicUsizeERROR-level event count.
level_fatal: AtomicUsizeFATAL-level event count.
level_critical: AtomicUsizeCRITICAL-level event count.
dropped_events: AtomicUsizeNumber of events dropped due to full ring buffer.
fmt_clf: AtomicUsizeCLF format count.
fmt_json: AtomicUsizeJSON format count.
fmt_cef: AtomicUsizeCEF format count.
fmt_elf: AtomicUsizeELF format count.
fmt_w3c: AtomicUsizeW3C format count.
fmt_gelf: AtomicUsizeGELF format count.
fmt_apache: AtomicUsizeApache Access Log format count.
fmt_logstash: AtomicUsizeLogstash format count.
fmt_log4j: AtomicUsizeLog4j XML format count.
fmt_ndjson: AtomicUsizeNDJSON format count.
fmt_mcp: AtomicUsizeMCP format count.
fmt_otlp: AtomicUsizeOTLP format count.
fmt_logfmt: AtomicUsizeLogfmt format count.
fmt_ecs: AtomicUsizeECS format count.
Implementations§
Source§impl TuiMetrics
impl TuiMetrics
Sourcepub fn inc_events(&self)
pub fn inc_events(&self)
Increments the total event count.
Sourcepub fn inc_errors(&self)
pub fn inc_errors(&self)
Increments the error count.
Sourcepub fn inc_dropped(&self)
pub fn inc_dropped(&self)
Increments the dropped event count.
Sourcepub fn inc_format(&self, format: LogFormat)
pub fn inc_format(&self, format: LogFormat)
Increments the counter for the given log format.