Crate unc_o11y

source ·
Expand description

Observability (o11y) helpers for the Utility codebase.

This crate contains all sorts of utilities to enable a more convenient observability implementation in the UNC codebase.

The are three infrastructures:

  • tracing, for structured, hierarchical logging of events (see default_subscriber function function in particular)
  • metrics – convenience wrappers around prometheus metric, for reporting statistics.
  • io-tracer – custom infrastructure for observing DB accesses in particular (mostly for parameter estimator)

Re-exports§

Modules§

Macros§

  • A macro that lets attach handle() functions to the tracing context that generated the actix message being processed. Creates a DEBUG-level span with the handler type name and the message type name as attributes.
  • Internal use only.
  • A macro that lets attach handle() functions to the tracing context that generated the actix message being processed. Creates a TRACE-level span with the handler type name and the message type name as attributes.
  • Asserts that the condition is true, logging an error otherwise.
  • The same as ‘log_assert’ but always fails.

Structs§

  • Configures exporter of span and trace data.

Enums§

Traits§

Functions§