quill
Public Member Functions | List of all members
MetricMetadata Class Referencefinal

MetricMetadata extends MacroMetadata so the existing header-encoding path can carry it in the macro_metadata slot on the SPSC queue. More...

#include <Metric.h>

Inheritance diagram for MetricMetadata:
Inheritance graph
[legend]
Collaboration diagram for MetricMetadata:
Collaboration graph
[legend]

Public Member Functions

 MetricMetadata (std::string metric_key, std::string metric_name, std::vector< MetricLabel > labels={})
 
QUILL_NODISCARD std::string const & metric_key () const noexcept
 
QUILL_NODISCARD std::string const & metric_name () const noexcept
 
QUILL_NODISCARD std::vector< MetricLabel > const & labels () const noexcept
 

Additional Inherited Members

Detailed Description

MetricMetadata extends MacroMetadata so the existing header-encoding path can carry it in the macro_metadata slot on the SPSC queue.

It is marked final because MacroMetadata has no virtual destructor: any future owner of unique_ptr<MacroMetadata> pointing at a MetricMetadata would slice or leak. MetricManager stores unique_ptr<MetricMetadata> directly, so there is no slicing today.


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