saddle-observability 0.2.0

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::{
    ActiveCorrelationCall, CORRELATION_SCHEMA_VERSION, CorrelationBarrier, CorrelationCallKind,
    CorrelationCallOutcome, CorrelationHealth, CorrelationRecord, CorrelationRecordPhase,
    CorrelationSinkIdentity, CorrelationSinkOwner, CorrelationSubmitError, VerifiedCorrelationSink,
};
pub use fixed_core::{
    CompletionSignal, FixedCompletion, FixedCoreLayout, FixedFailure, FixedFileLimits,
    FixedFileSink, FixedNotification, PreparedProductionFixedFileCore, ProductionFixedWriterEntry,
    SubmitError, fixed_core_layout, 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
    }
}