3#include "telemetry.hpp"
7#define CVB_TELEMETRY_BEGIN_INLINE_NS \
8 inline namespace CVB_TELEMETRY_MODULE_NAMESPACE \
10#define CVB_TELEMETRY_END_INLINE_NS }
12#ifndef CVB_TELEMETRY_MODULE_NAMESPACE
13# define CVB_TELEMETRY_MODULE_NAMESPACE undefined
15#define CVB_TELEMETRY_END_INLINE_NS }
27 CVB_TELEMETRY_BEGIN_INLINE_NS
57 CExports::CVTGetModule(name.c_str(), version.c_str(), handle_, config_);
73 return CExports::CVTTR_On == config_.Tracing;
83 return config_.Logging == CExports::CVTLO_On;
93 return WouldLog() && config_.LogLevel <= CExports::CVTLL_Debug;
103 return WouldLog() && config_.LogLevel <= CExports::CVTLL_Info;
113 return WouldLog() && config_.LogLevel <= CExports::CVTLL_Warning;
123 return WouldLog() && config_.LogLevel <= CExports::CVTLL_Error;
133 return WouldLog() && config_.LogLevel <= CExports::CVTLL_Fatal;
137 void *Handle() const noexcept
142 CExports::CVTModuleConfig config_;
143 CExports::CVTMODULE handle_ =
nullptr;
146 CVB_TELEMETRY_END_INLINE_NS
A log object to stream messages.
Definition log.hpp:20
A telemetry module or artifact.
Definition module.hpp:40
bool WouldLogFatal() const noexcept
Get if fatal logs are active.
Definition module.hpp:131
static Module & Get()
Get the module singleton.
bool WouldLogInfo() const noexcept
Get if info logs are active.
Definition module.hpp:101
bool WouldLog() const noexcept
Get if logs are active.
Definition module.hpp:81
bool WouldTrace() const noexcept
Get if traces are active.
Definition module.hpp:71
bool WouldLogWarning() const noexcept
Get if warning logs are active.
Definition module.hpp:111
bool WouldLogError() const noexcept
Get if error logs are active.
Definition module.hpp:121
bool WouldLogDebug() const noexcept
Get if debug logs are active.
Definition module.hpp:91
A span object to report traces.
Definition span.hpp:19
Namespace for telemetry.
Definition attribute_map.hpp:16
Root namespace for the Image Manager interface.
Definition version.hpp:11