pub const ENV_METRICS_TOKEN: &str = "TENSOR_WASM_API_METRICS_TOKEN";Expand description
SECURITY (H3): environment variable carrying an optional bearer token
that gates GET /metrics. When set to a non-empty value the metrics
scrape endpoint requires Authorization: Bearer <token> matching this
value (constant-time compared); when unset or empty the endpoint stays
unauthenticated (the historical Prometheus-scrape posture) and a
one-shot warn! is emitted at startup. See MetricsAuth and
metrics_auth_gate.