20#ifndef ORES_TELEMETRY_MESSAGING_LOG_RECORDS_PROTOCOL_HPP
21#define ORES_TELEMETRY_MESSAGING_LOG_RECORDS_PROTOCOL_HPP
27#include "ores.utility/serialization/error_code.hpp"
28#include "ores.telemetry/domain/log_record.hpp"
32using error_code = ores::utility::serialization::error_code;
74 static std::expected<submit_log_records_request, ores::utility::serialization::error_code>
Network messaging protocol for log records.
Definition telemetry_message_handler.cpp:27
std::basic_ostream< CharT, TraitsT > & operator<<(std::basic_ostream< CharT, TraitsT > &stream, boost_severity level)
Inserter for boost_severity enum.
Definition boost_severity.hpp:80
Request to submit a batch of log records to the server.
Definition log_records_protocol.hpp:44
static std::expected< submit_log_records_request, ores::utility::serialization::error_code > deserialize(std::span< const std::byte > data)
Deserialize request from bytes.
Definition log_records_protocol.cpp:120
std::vector< std::byte > serialize() const
Serialize request to bytes.
Definition log_records_protocol.cpp:53
std::vector< domain::log_record > records
The batch of log records to submit.
Definition log_records_protocol.hpp:48