Skip to main content

Crate noxu_observe

Crate noxu_observe 

Source
Expand description

Internal component of the noxu database.

This crate is published only so the noxu umbrella crate can depend on it. Use noxu (noxu = "3") in applications; depend on this crate directly only if you are extending the engine internals. Its API may change without a major version bump.

Optional observability integration for Noxu DB.

Enable with features = ["observability"] on the noxu-db crate. Uses the metrics crate facade — install any compatible recorder (prometheus, statsd, etc.) in your application to collect metrics. Uses the tracing crate for structured spans and events.

When the observability feature is disabled on noxu-db, all instrumentation compiles away to zero-cost no-ops.

Re-exports§

pub use metrics;
pub use tracing;

Macros§

counter_inc
Increment a counter metric.
gauge_dec
Decrement a gauge.
gauge_inc
Increment a gauge.
histogram_record
Record a histogram value.

Functions§

describe_metrics
Describe all Noxu DB metrics. Call once at application startup after installing a metrics recorder.