saddle-observability 0.3.0-alpha.8

Saddle structured logging and trace correlation
Documentation
//! Crate-private fixed-resource file core.
//!
//! Observability owns no thread. The Runtime invokes the single blocking writer
//! entry after preparing the Admission-owned fixed queue domain.

mod codec;
mod completion;
mod correlation;
mod fixed_core;
mod generated_layout;
mod linux_backend;
mod termination;

#[doc(hidden)]
pub use saddle_core::{
    VerifiedComponentGenerationPairingReceipt, VerifiedDeploymentBundleApplicabilityOwner,
    VerifiedGeneratedComponentGenerationOwner,
};

pub use completion::{CompletionResult, CompletionRole};
pub use correlation::{
    ALPHA1_TERMINAL_SCHEMA_VERSION, ActiveCorrelationCall, Alpha1CallIdentity,
    Alpha1ExecutionCertainty, Alpha1ResourceState, Alpha1TechnicalCode, Alpha1TechnicalFailure,
    Alpha1TerminalKind, Alpha1TerminalRecord, Alpha1TerminalRecordError, Alpha1TerminalReservation,
    CORRELATION_SCHEMA_VERSION, CorrelationBarrier, CorrelationCallKind, CorrelationCallOutcome,
    CorrelationHealth, CorrelationRecord, CorrelationRecordPhase, CorrelationSinkIdentity,
    CorrelationSinkOwner, CorrelationSubmitError, MAX_ALPHA1_COMPONENT_BYTES, MAX_ALPHA1_ID_BYTES,
    VerifiedCorrelationSink,
};
pub use fixed_core::{
    CompletionSignal, FixedCompletion, FixedCoreLayout, FixedFailure, FixedFileLimits,
    FixedFileSink, FixedNotification, InternalAlpha1FixedIssuer, InternalAlpha1FixedReservation,
    InternalAlpha1IssuerError, PreparedProductionFixedFileCore, ProductionFixedWriterEntry,
    SubmitError, fixed_core_layout, prepare_internal_alpha1_fixed_issuer,
    prepare_signed_provider_fixed_file_core,
};
#[doc(hidden)]
pub use generated_layout::{
    GeneratedLayoutError, ObservabilityGeneratedLayoutObservation,
    ObservabilityGeneratedLayoutSource, observe_release_fixed_core_layout,
};
pub use termination::{
    DeploymentFilesystemServiceAttestation, FilesystemDeploymentIdentity, FilesystemProofError,
    FilesystemServiceRates, FilesystemTarget, FilesystemWorkDomain,
    FinalPairedFilesystemCoreOwners, FinalPairedSignedProviderFilesystemBundle,
    GenerationPairedFilesystemEvidence, NormalizedSignedProviderFilesystemRuntimeEvidence,
    PairedSignedProviderFilesystemEvidence, PhysicalFixedFileStartupOwner,
    ProductionObservabilityQueueProfileWitness, ProviderFilesystemProofBundle,
    SignedProviderFilesystemBundleFailure, SignedProviderFilesystemRuntimeEvidence,
    VerifiedFilesystemServiceProof, VerifiedSignedProviderFilesystemBundle,
    WriterComponentWorkProof, WriterTerminationProof,
    normalize_signed_provider_filesystem_evidence, pair_signed_filesystem_bundle_final,
    production_observability_queue_profile_witness, verify_filesystem_service,
    verify_provider_writer_termination, verify_signed_provider_filesystem_bundle,
    writer_component_work_proof,
};

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum FileStream {
    Access,
    Trace,
    Event,
    System,
}

impl FileStream {
    pub(super) const ALL: [Self; 4] = [Self::Access, Self::Trace, Self::Event, Self::System];

    pub(super) const fn index(self) -> usize {
        self as usize
    }
}