prom 0.1.0
Client-independent C++23 Prometheus/OpenMetrics metric abstraction
Loading...
Searching...
No Matches
Classes | Namespaces
null_adapter.hpp File Reference

NullAdapter — the always-available no-op backend. More...

#include <prom/adapter.hpp>
#include <logman/logman.hpp>
#include <memory>
#include <span>
#include <string_view>
Include dependency graph for null_adapter.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  prom::NullAdapter
 A backend that records nothing. More...
 

Namespaces

namespace  prom
 

Detailed Description

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.