prom 0.1.0
Client-independent C++23 Prometheus/OpenMetrics metric abstraction
Loading...
Searching...
No Matches
Public Attributes | List of all members
prom::MetricBase< Derived >::Binding Struct Reference

A resolved (adapter, handle) snapshot — the result of bind(). More...

#include <metric_base.hpp>

Collaboration diagram for prom::MetricBase< Derived >::Binding:
Collaboration graph
[legend]

Public Attributes

AdapterPtr adapter
 
MetricHandle handle
 

Detailed Description

template<class Derived>
struct prom::MetricBase< Derived >::Binding

A resolved (adapter, handle) snapshot — the result of bind().

Callers operate on this copy so a concurrent re-bind of a scoped metric cannot invalidate the adapter/handle mid-operation.

Member Data Documentation

◆ adapter

template<class Derived >
AdapterPtr prom::MetricBase< Derived >::Binding::adapter

◆ handle

template<class Derived >
MetricHandle prom::MetricBase< Derived >::Binding::handle

The documentation for this struct was generated from the following file: