Skip to navigation

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct ComponentRecorder { /* private fields */ }

Producer capability scoped to one admitted registration.

Clones share its lease; the last recorder drop closes the component. Producers cannot refresh or replace registrations. Disabled recorders have no active identity and skip lazy observation factories.

Implementations

impl ComponentRecorder

impl ComponentRecorder

Referenced types: ComponentRecorder

identity

pub fn identity(&self) -> Option<&ComponentIdentity>

Referenced types: Option, ComponentIdentity

Borrow the original registration identity, or None while disabled.

Closure or retention cannot relabel this handle as another registration.

reader

pub fn reader(&self) -> DiagnosticsReader

Referenced types: DiagnosticsReader

Read the same source context without granting lifecycle authority.

capture_origin

pub fn capture_origin(&self) -> Result<OriginRecorder, DiagnosticError>

Referenced types: Result, OriginRecorder, DiagnosticError

Capture bounded configuration attribution for an operation’s completion.

Refreshing does not pin history or invalidate the captured origin. Disabled collection returns an inert recorder without allocating.

register_extension

pub fn register_extension(
&self,
registration: ExtensionRegistration<'_>,
) -> Result<Option<ExtensionHandle>, DiagnosticError>

Referenced types: ExtensionRegistration, Result, Option, ExtensionHandle, DiagnosticError

Admit namespaced extension metadata and its component code counter.

The handle retains registration/descriptor generation scope. Disabled mode returns None without backend allocation. Explicit capacity failure may be reported using a summary-only classification overflow observation.

register_extension_class

pub fn register_extension_class(
&self,
extension: ExtensionHandle,
name: &str,
) -> Result<Option<ExtensionClassHandle>, DiagnosticError>

Referenced types: ExtensionHandle, str, Result, Option, ExtensionClassHandle, DiagnosticError

Admit a custom failure-class name for a registered extension. Each code has four fixed class slots, each at most 32 bytes, within metadata budgets. Disabled contexts return None without registering metadata.

record_lazy

pub fn record_lazy<'a>(
&self,
make: impl FnOnce() -> Observation<'a>,
) -> Result<RecordOutcome, DiagnosticError>

Referenced types: FnOnce, Observation, Result, RecordOutcome, DiagnosticError

Build and record one observation synchronously only when enabled.

Reserved summaries accept positive deltas independently of history pressure. Projections follow store unlocking. Disabled mode skips the factory and returns RecordOutcome::Disabled without loss accounting.

record_without_projection_lazy

pub fn record_without_projection_lazy<'a>(
&self,
make: impl FnOnce() -> Observation<'a>,
) -> Result<RecordOutcome, DiagnosticError>

Referenced types: FnOnce, Observation, Result, RecordOutcome, DiagnosticError

Use the same recording boundary while bypassing every projection.

Sink feedback and existing operational emitters use this path to avoid output recursion or duplicates. Disabled mode skips the factory.

record

pub fn record(
&self,
observation: Observation<'_>,
) -> Result<RecordOutcome, DiagnosticError>

Referenced types: Observation, Result, RecordOutcome, DiagnosticError

Record constructed evidence and attempt optional projections.

Disabled mode discards it but cannot undo caller construction work. Built-in producers use Self::record_lazy for diagnostic-only work.

record_without_projection

pub fn record_without_projection(
&self,
observation: Observation<'_>,
) -> Result<RecordOutcome, DiagnosticError>

Referenced types: Observation, Result, RecordOutcome, DiagnosticError

Record constructed evidence without any projection callback.

Prefer Self::record_without_projection_lazy to skip construction while disabled. Counting and retention use the same canonical boundary.

Trait Implementations

impl Clone for ComponentRecorder

impl Clone for ComponentRecorder

Referenced types: Clone, ComponentRecorder

clone

fn clone(&self) -> ComponentRecorder

Referenced types: clone, ComponentRecorder

clone_from

fn clone_from(&mut self, source: &Self)

Referenced types: clone_from

impl Debug for ComponentRecorder

impl Debug for ComponentRecorder

Referenced types: Debug, ComponentRecorder

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Referenced types: fmt, Formatter, Result, (), Error