|
quill
|
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>


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 |
Public Member Functions inherited from MacroMetadata | |
| constexpr | MacroMetadata (char const *source_location, char const *caller_function, char const *message_format, char const *tags, LogLevel log_level, Event event) noexcept |
| QUILL_NODISCARD char const * | source_location () const noexcept |
| QUILL_NODISCARD char const * | caller_function () const noexcept |
| QUILL_NODISCARD char const * | message_format () const noexcept |
| QUILL_NODISCARD char const * | line () const noexcept |
| QUILL_NODISCARD std::string_view | full_path () const noexcept |
| QUILL_NODISCARD std::string_view | file_name () const noexcept |
| QUILL_NODISCARD char const * | short_source_location () const noexcept |
| QUILL_NODISCARD LogLevel | log_level () const noexcept |
| QUILL_NODISCARD char const * | tags () const noexcept |
| QUILL_NODISCARD constexpr bool | has_named_args () const noexcept |
| QUILL_NODISCARD Event | event () const noexcept |
Additional Inherited Members | |
Public Types inherited from MacroMetadata | |
| enum | Event : uint8_t { None, Log, InitBacktrace, FlushBacktrace, Flush, LogWithRuntimeMetadataDeepCopy, LogWithRuntimeMetadataHybridCopy, LogWithRuntimeMetadataShallowCopy, LoggerRemovalRequest, Metric, MdcSet, MdcErase, MdcClear } |
Static Public Member Functions inherited from MacroMetadata | |
| static QUILL_NODISCARD constexpr bool | contains_named_args (std::string_view fmt) noexcept |
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.
1.8.13