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

Method record_network_activity

crates/openshell-server/src/telemetry.rs:26–34  ·  view source on GitHub ↗
(&self, sandbox_id: &str, summary: &NetworkActivitySummary)

Source from the content-addressed store, hash-verified

24 pub fn end_sandbox_session(&self, _sandbox_id: &str) {}
25
26 pub fn record_network_activity(&self, sandbox_id: &str, summary: &NetworkActivitySummary) {
27 if sandbox_id.is_empty() || !openshell_core::telemetry::enabled() {
28 return;
29 }
30 #[cfg(not(test))]
31 emit_network_activity_summary(summary);
32 #[cfg(test)]
33 let _ = summary;
34 }
35}
36
37#[allow(clippy::cast_precision_loss)]

Callers 1

Calls 3

enabledFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected