Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
start documenting Runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed May 20, 2024
1 parent 71fcb97 commit 436f716
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions core/src/runtime.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*!
The [`Runtime`] type.
Runtimes combine components into a fully encapsulated diagnostic pipeline. Each runtime includes:
- An [`Emitter`] to receive diagnostic events.
- A [`Filter`] to limit the volume of diagnostic events.
- A [`Ctxt`] to capture and attach ambient state to events.
- A [`Clock`] to timestamp events.
- A [`Rng`] to generate correlation ids for events.
Runtimes are fully isolated and may be short-lived.
Applications should emit their events through the [`shared()`] runtime. Code running within a runtime itself, such as an implementation of [`Emitter`] should emit their events through the [`internal()`] runtime.
*/

use crate::{
clock::Clock, ctxt::Ctxt, emitter::Emitter, empty::Empty, event::ToEvent, extent::ToExtent,
filter::Filter, props::Props, rng::Rng, timestamp::Timestamp,
Expand Down

0 comments on commit 436f716

Please sign in to comment.