// file: crates/ksp-app-backfill-desk/src/constants.rs // version: 6 //! Application-owned tracing targets and domains. /// Composite component identifier for Logging. pub(crate) const COMPOSITE_COMPONENT_ID_LOGGING: &str = "logging"; /// Composite component identifier for Store. pub(crate) const COMPOSITE_COMPONENT_ID_STORE: &str = "store"; /// Composite component identifier for Transport. pub(crate) const COMPOSITE_COMPONENT_ID_TRANSPORT: &str = "transport"; /// Initial hydration concurrency proposed by the Desk for a new campaign. pub(crate) const DEFAULT_BACKFILL_HYDRATION_CONCURRENCY: u32 = 4; /// Initial candidate cap proposed by the Desk for a new campaign. pub(crate) const DEFAULT_BACKFILL_MAX_CANDIDATES: u32 = 1_000; /// Initial discovery-page cap proposed by the Desk for a new campaign. pub(crate) const DEFAULT_BACKFILL_MAX_PAGES: u32 = 10; /// Initial signature page size proposed by the Desk for a new campaign. pub(crate) const DEFAULT_BACKFILL_PAGE_SIZE: u32 = 100; /// Structured domain used while bootstrapping Config and Logging. pub(crate) const TRACING_DOMAIN_BOOTSTRAP: &str = "backfill.bootstrap"; /// Structured domain used by technical frontend events. pub(crate) const TRACING_DOMAIN_FRONTEND: &str = "frontend"; /// Structured domain used by Backfill campaign admission and request mapping. pub(crate) const TRACING_DOMAIN_REQUEST: &str = "backfill.request"; /// Structured domain used by concrete Backfill run admission and execution. pub(crate) const TRACING_DOMAIN_RUN: &str = "backfill.run"; /// Structured domain used by the Backfill Desk shell. pub(crate) const TRACING_DOMAIN_SHELL: &str = "backfill.shell"; /// Structured domain used by Store readiness and shutdown operations. pub(crate) const TRACING_DOMAIN_STORE: &str = "backfill.store"; /// Structured domain used by Transport readiness and role inventory operations. pub(crate) const TRACING_DOMAIN_TRANSPORT: &str = "backfill.transport"; /// Structured domain used by Tauri window lifecycle operations. pub(crate) const TRACING_DOMAIN_WINDOWS: &str = "desktop.window"; /// Owning target for backend events emitted by Backfill Desk. pub(crate) const TRACING_TARGET: &str = "ksp-app-backfill-desk"; /// Owning target for generic frontend events emitted through the KSP bridge. pub(crate) const TRACING_TARGET_FRONTEND: &str = "ksp-app-backfill-desk.frontend"; /// Owning target for main-window frontend events. pub(crate) const TRACING_TARGET_FRONTEND_MAIN: &str = "ksp-app-backfill-desk.frontend.main"; /// Owning target for splash-window frontend events. pub(crate) const TRACING_TARGET_FRONTEND_SPLASH: &str = "ksp-app-backfill-desk.frontend.splash";