Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/elastic/devfiler
/ tail
Function
tail
src/log.rs:46–49 ·
view source on GitHub ↗
(limit: usize)
Source
from the content-addressed store, hash-verified
44
}
45
46
pub fn tail(limit: usize) -> Vec<LoggedMessage> {
47
let ring = COLLECTOR.ring.lock().unwrap();
48
ring.iter().rev().take(limit).cloned().collect()
49
}
50
51
#[derive(Debug, Clone)]
52
pub struct LoggedMessage {
Callers
1
update
Method · 0.85
Calls
1
iter
Method · 0.80
Tested by
no test coverage detected