Skip to main content

send_boot_manifest

Function send_boot_manifest 

Source
pub fn send_boot_manifest<J, S>(
    app_version: Option<&str>,
    git_sha: Option<&str>,
    cron_registry: Option<&CronRegistry<S>>,
)
where J: JobRegistry<S>, S: AppState,
Expand description

Send this app’s boot manifest to Eyes, fire-and-forget.

Builds an AppManifest (see build_boot_manifest) and spawns a background task that POSTs it using the EYES_URL/EYES_ORG_ID/ EYES_APP_ID environment variables — the same configuration crate::setup::setup_tracing uses for the Eyes tracing layer.

This never blocks or fails app boot:

  • If EYES_ORG_ID or EYES_APP_ID is unset, it’s a debug-logged no-op.
  • If called outside a Tokio runtime, it logs a warning and does nothing.
  • If the send fails, the spawned task logs a warning.

See the module docs for the intended call site and how to source app_version/git_sha.