Skip to main content

Module runtime

Module runtime 

Source
Expand description

Owned handles to the logging pipeline.

LogSink is what crate::init_logging and the console initialisers return: a handle onto the database layer inside the installed tracing subscriber. It enqueues entries persisted outside a tracing call, reports the drop count, and flushes the writer on shutdown. LoggingRuntime pairs a sink with the resolved platform owner, so originator-less telemetry is attributed without a process-wide cell. The runtime builds it once at bootstrap and stores it on AppContext; code with no context in scope is handed the value through its constructor.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Structs§

LogSink
Handle onto the database sink of the installed subscriber; clones share it.
LoggingRuntime
The process’s logging handle: the sink plus the platform owner.