|
prom 0.1.0
Client-independent C++23 Prometheus/OpenMetrics metric abstraction
|
NullAdapter — the always-available no-op backend.
More...
#include <prom/adapter.hpp>#include <logman/logman.hpp>#include <memory>#include <span>#include <string_view>

Go to the source code of this file.
Classes | |
| class | prom::NullAdapter |
| A backend that records nothing. More... | |
Namespaces | |
| namespace | prom |
NullAdapter — the always-available no-op backend.
NullAdapter is what a library binds to when the host application has not installed a real backend. Every definition and mutation becomes a logged no-op, so a library can declare and exercise metrics unconditionally. It is stateless after construction and therefore fully thread-safe.