(&self, sandbox_id: &str, summary: &NetworkActivitySummary)
| 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)] |
no test coverage detected