|
ORE Studio 0.0.4
|
Interface for exporting telemetry log records. More...
#include <log_exporter.hpp>


Public Member Functions | |
| virtual void | export_record (domain::log_record record)=0 |
| Exports a single log record. | |
| virtual void | flush ()=0 |
| Flushes any buffered records. | |
| virtual void | shutdown ()=0 |
| Shuts down the exporter. | |
Interface for exporting telemetry log records.
Implementations of this interface handle the actual export of log records to various backends (files, OpenTelemetry collectors, etc.).
The interface is designed to be simple and allow for different export strategies: synchronous, batched, or streaming.
|
pure virtual |
Exports a single log record.
Implementations may buffer records for batch export or write immediately.
| record | The log record to export. |
Implemented in file_log_exporter, and hybrid_log_exporter.
|
pure virtual |
Flushes any buffered records.
Called to ensure all pending records are exported. Implementations that don't buffer may implement this as a no-op.
Implemented in file_log_exporter, and hybrid_log_exporter.
|
pure virtual |
Shuts down the exporter.
Called during application shutdown. Implementations should flush any pending records and release resources.
Implemented in file_log_exporter, and hybrid_log_exporter.