Read-only view a scoped metric uses to re-resolve its name, constant labels, and display metadata against the live scope configuration on every use.
More...
#include <metric_base.hpp>
Read-only view a scoped metric uses to re-resolve its name, constant labels, and display metadata against the live scope configuration on every use.
Implemented by prom::Scope. It is declared abstractly here so that metric_base carries no dependency on Scope/Registry (which would be a cycle). version() advances on every configuration change, which is how a scoped metric notices it must re-register.
◆ ScopeState() [1/3]
| prom::ScopeState::ScopeState |
( |
| ) |
|
|
default |
◆ ScopeState() [2/3]
| prom::ScopeState::ScopeState |
( |
const ScopeState & |
| ) |
|
|
delete |
◆ ScopeState() [3/3]
◆ ~ScopeState()
| virtual prom::ScopeState::~ScopeState |
( |
| ) |
|
|
virtualdefault |
◆ decorates()
| virtual bool prom::ScopeState::decorates |
( |
| ) |
const |
|
pure virtualnoexcept |
Whether this decoration actually changes anything (a non-empty prefix, constant labels, or display — directly or via a parent it chains onto).
Drives the scoped flag on MetricInfo: an empty decoration leaves a metric reported as un-decorated.
Implemented in prom::detail::DecorationState, and prom::Scope.
◆ effective_display()
| virtual comms::DisplayInfo prom::ScopeState::effective_display |
( |
const comms::DisplayInfo & |
own | ) |
const |
|
pure virtual |
◆ effective_labels()
| virtual Labels prom::ScopeState::effective_labels |
( |
const Labels & |
own | ) |
const |
|
pure virtual |
◆ full_name()
| virtual std::string prom::ScopeState::full_name |
( |
std::string_view |
base | ) |
const |
|
pure virtual |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ version()
| virtual std::uint64_t prom::ScopeState::version |
( |
| ) |
const |
|
pure virtualnoexcept |
The documentation for this class was generated from the following file: