20#ifndef ORES_TELEMETRY_LOG_SKIP_TELEMETRY_GUARD_HPP
21#define ORES_TELEMETRY_LOG_SKIP_TELEMETRY_GUARD_HPP
23#include <boost/log/attributes/value_extraction.hpp>
24#include "ores.logging/scoped_attribute.hpp"
70template<
typename RecordView>
73 return skip_attr && skip_attr.get();
Implements logging for ORE Studio.
Definition database_sink_backend.hpp:32
bool should_skip_telemetry(const RecordView &rec)
Checks if a log record should be skipped by telemetry sinks.
Definition skip_telemetry_guard.hpp:71
constexpr const char * skip_telemetry_attribute
Well-known attribute name used to signal telemetry sinks to skip processing a log record.
Definition skip_telemetry_guard.hpp:36
RAII guard that adds a thread-local attribute to Boost.Log for the duration of its scope.
Definition scoped_attribute.hpp:57
scoped_attribute(const std::string &attribute_name)
Constructs a scoped attribute guard.
Definition scoped_attribute.hpp:69
RAII guard that marks log records to be skipped by telemetry sinks.
Definition skip_telemetry_guard.hpp:58