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

Function telemetry_endpoint_from

crates/openshell-core/src/telemetry.rs:349–357  ·  view source on GitHub ↗
(endpoint: Option<&str>)

Source from the content-addressed store, hash-verified

347
348#[cfg(feature = "telemetry")]
349fn telemetry_endpoint_from(endpoint: Option<&str>) -> Option<String> {
350 let endpoint = endpoint.unwrap_or(DEFAULT_ENDPOINT);
351 let endpoint = endpoint.trim();
352 if endpoint.is_empty() {
353 None
354 } else {
355 Some(endpoint.to_string())
356 }
357}
358
359#[cfg(feature = "telemetry")]
360fn timestamp() -> String {

Callers 1

telemetry_endpointFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected