20#ifndef ORES_TELEMETRY_DOMAIN_TELEMETRY_BATCH_HPP
21#define ORES_TELEMETRY_DOMAIN_TELEMETRY_BATCH_HPP
25#include "ores.telemetry/domain/telemetry_source.hpp"
26#include "ores.telemetry/domain/telemetry_log_entry.hpp"
59 [[nodiscard]] std::size_t
size() const noexcept {
66 [[nodiscard]]
bool empty() const noexcept {
Domain types for telemetry and observability.
Definition attribute_value.hpp:29
telemetry_source
Source type for telemetry log entries.
Definition telemetry_source.hpp:33
@ client
Log entry from a client application.
A batch of telemetry log entries from a single source.
Definition telemetry_batch.hpp:37
void clear() noexcept
Clears all entries from the batch.
Definition telemetry_batch.hpp:73
telemetry_source source
Source type (client or server).
Definition telemetry_batch.hpp:41
bool empty() const noexcept
Returns true if the batch is empty.
Definition telemetry_batch.hpp:66
std::size_t size() const noexcept
Returns the number of entries in the batch.
Definition telemetry_batch.hpp:59
std::vector< telemetry_log_entry > entries
The log entries in this batch.
Definition telemetry_batch.hpp:54
std::string source_name
Name of the source application.
Definition telemetry_batch.hpp:49