Umbral Logs
Official by Umbral contributorsrequest logs, trusted proxy IPs, sampling, OpenTelemetry
About
When something breaks at 3am, the difference between a five-minute fix and a two-hour hunt is the log line. Umbral Logs gives you structured, per-request logging with the real client IP resolved from your trusted-proxy setup — so behind nginx you log the caller, not the proxy, and never a header an attacker can forge to poison your logs. Sampling and status filters keep the volume sane on a busy service.
Install
Wire it up
use *;
use LogsPlugin;
let app = builder
.database
.plugin
.build?;
Target: sample a high-traffic endpoint
On an endpoint doing thousands of req/s you don't want every line — sample a fraction and keep the signal without the cost.
default.sample_rate; // log 5% of requests
What you get
- Structured, per-request log lines
- Real client IP from your trusted-proxy config (not a forgeable header)
- Exclude noisy prefixes (
/static, health checks) - Sample rate + minimum-status filters to control volume
- Pairs with the framework's trusted-proxy client-IP resolution
Usage
Mount `LogsPlugin::default()` and tune it: `.exclude_prefix(...)` to drop asset noise, `.min_status(n)` to capture only errors, and `.sample_rate(f)` to thin a high-traffic route. The client IP comes from your trusted-proxy config, so it's the caller — never a forgeable header.
cargo add umbral-logs
Feature tracker
Per-feature shipping status, recorded in the directory.
Per-request records with method, path, status, and latency.
Logs the real caller from trusted proxy configuration.
Drop noisy paths such as assets and health probes.
Capture a fraction of high-volume traffic.
Only log responses at or above a configured status code.
Optional OTLP tracing setup with service-name configuration.
Compatibility
Declared support per Umbral version and database backend.
No compatibility rows declared yet.
Community notes
0 notes in the discussion thread.
No notes yet. Be the first to share how this plugin works for you.
Reported issues
Bugs and abuse reports filed against this plugin.
No open issues
No issues have been reported against this plugin. Track upstream bugs on the maintainer's tracker, or report a directory problem to the Umbral team.