LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
OtlpPayloadSplitter.hpp File Reference

Splits oversized OTLP log batches into multiple JSON payload chunks. More...

#include "OtlpJsonSerializer.hpp"
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  logit
 The primary namespace for the LogIt++ library.
 

Macros

#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_OTLP_OTLPPAYLOADSPLITTER_HPP_INCLUDED
 

Functions

std::vector< std::string > logit::build_otlp_logs_json_payload_chunks (const std::vector< OtlpLogItem > &batch, const OtlpJsonFormatConfig &format, std::size_t max_payload_bytes)
 Builds OTLP JSON payload chunks from a batch, splitting when a chunk would exceed max_payload_bytes.
 

Detailed Description

Splits oversized OTLP log batches into multiple JSON payload chunks.

Definition in file OtlpPayloadSplitter.hpp.

Macro Definition Documentation

◆ LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_OTLP_OTLPPAYLOADSPLITTER_HPP_INCLUDED

#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_OTLP_OTLPPAYLOADSPLITTER_HPP_INCLUDED

Definition at line 3 of file OtlpPayloadSplitter.hpp.