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

Function publish_payload

crates/openshell-core/src/telemetry.rs:434–445  ·  view source on GitHub ↗
(endpoint: &str, payload: Value)

Source from the content-addressed store, hash-verified

432
433#[cfg(feature = "telemetry")]
434fn publish_payload(endpoint: &str, payload: Value) -> Result<(), reqwest::Error> {
435 Client::builder()
436 .use_rustls_tls()
437 .tls_built_in_root_certs(true)
438 .timeout(HTTP_TIMEOUT)
439 .build()?
440 .post(endpoint)
441 .json(&payload)
442 .send()?
443 .error_for_status()?;
444 Ok(())
445}
446
447#[cfg(feature = "telemetry")]
448fn try_enqueue_event(sender: &mpsc::SyncSender<TelemetryEvent>, event: TelemetryEvent) -> bool {

Callers 1

telemetry_workerFunction · 0.85

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected