MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / new

Method new

crates/openshell-server/src/tracing_bus.rs:38–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36impl TracingLogBus {
37 #[must_use]
38 pub fn new() -> Self {
39 Self {
40 inner: Arc::new(Mutex::new(Inner {
41 per_id: HashMap::new(),
42 tails: HashMap::new(),
43 })),
44 platform_event_bus: PlatformEventBus::new(),
45 }
46 }
47
48 /// Install a tracing subscriber that logs to stdout and publishes events into this bus.
49 pub fn install_subscriber(&self, env_filter: EnvFilter) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected