20#ifndef ORES_TELEMETRY_DOMAIN_LOG_RECORD_HPP
21#define ORES_TELEMETRY_DOMAIN_LOG_RECORD_HPP
27#include "ores.telemetry/domain/trace_id.hpp"
28#include "ores.telemetry/domain/span_id.hpp"
29#include "ores.logging/severity_level.hpp"
30#include "ores.telemetry/domain/attribute_value.hpp"
31#include "ores.telemetry/domain/resource.hpp"
62 severity_level
severity = severity_level::info;
77 std::optional<span_id>
span;
severity_level
Log severity levels following OpenTelemetry conventions.
Definition severity_level.hpp:34
Domain types for telemetry and observability.
Definition attribute_value.hpp:29
std::map< std::string, attribute_value > attributes
A collection of attributes as key-value pairs.
Definition attribute_value.hpp:52
A log record with trace correlation.
Definition log_record.hpp:46
std::shared_ptr< resource > source_resource
The resource that produced this log.
Definition log_record.hpp:94
std::string body
The log message body.
Definition log_record.hpp:67
attributes attrs
Additional attributes providing context.
Definition log_record.hpp:87
std::string logger_name
The name of the logger/component that emitted this log.
Definition log_record.hpp:82
std::optional< std::chrono::system_clock::time_point > observed_timestamp
When the event that the log describes occurred.
Definition log_record.hpp:57
std::chrono::system_clock::time_point timestamp
When the log was emitted.
Definition log_record.hpp:50
std::optional< span_id > span
The span this log was emitted from, if any.
Definition log_record.hpp:77
std::optional< trace_id > trace
The trace this log belongs to, if any.
Definition log_record.hpp:72
severity_level severity
The severity of the log message.
Definition log_record.hpp:62