obs-core 0.2.1

Runtime engine for the obs SDK: Observer, Sink, schema registry, sampling, config.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Envelope construction and projection helpers.
//!
//! Spec 10 § 6 defines the wire envelope (`obs.v1.ObsEnvelope`); this
//! module provides the typed `EventSchema` trait that codegen targets,
//! the `Envelope` newtype around the wire envelope (so tests can
//! manipulate it without going through buffa), and the
//! `build_envelope` / project helpers used by the emit hot path
//! (spec 11 § 5).

mod builder;
mod projection;

pub use builder::{Envelope, build_envelope, build_envelope_at};
pub use projection::{EventSchema, FieldMeta, FieldRole};