Maintains a representation of a log in a format that can be processed by a recorder.
This class is thread-compatible.
Definition at line 47 of file includes/opentelemetry/sdk/logs/readable_log_record.h.


Public Member Functions | |
| virtual opentelemetry::common::SystemTimestamp | GetTimestamp () const noexcept=0 |
| Get the timestamp of this log. More... | |
| virtual opentelemetry::common::SystemTimestamp | GetObservedTimestamp () const noexcept=0 |
| Get the observed timestamp of this log. More... | |
| virtual opentelemetry::logs::Severity | GetSeverity () const noexcept=0 |
| Get the severity of this log. More... | |
| virtual nostd::string_view | GetSeverityText () const noexcept |
| Get the severity text of this log. More... | |
| virtual const opentelemetry::sdk::common::OwnedAttributeValue & | GetBody () const noexcept=0 |
| Get body field of this log. More... | |
| virtual int64_t | GetEventId () const noexcept=0 |
| Get the Event id. More... | |
| virtual nostd::string_view | GetEventName () const noexcept=0 |
| Get the Event Name. More... | |
| virtual const opentelemetry::trace::TraceId & | GetTraceId () const noexcept=0 |
| Get the trace id of this log. More... | |
| virtual const opentelemetry::trace::SpanId & | GetSpanId () const noexcept=0 |
| Get the span id of this log. More... | |
| virtual const opentelemetry::trace::TraceFlags & | GetTraceFlags () const noexcept=0 |
| Inject trace_flags of this log. More... | |
| virtual const std::unordered_map< std::string, opentelemetry::sdk::common::OwnedAttributeValue > & | GetAttributes () const noexcept=0 |
| Get attributes of this log. More... | |
| virtual const opentelemetry::sdk::resource::Resource & | GetResource () const noexcept=0 |
| Get resource of this log. More... | |
| virtual const opentelemetry::sdk::instrumentationscope::InstrumentationScope & | GetInstrumentationScope () const noexcept=0 |
| Get instrumentation scope of this log. More... | |
| virtual opentelemetry::common::SystemTimestamp | GetTimestamp () const noexcept=0 |
| Get the timestamp of this log. More... | |
| virtual opentelemetry::common::SystemTimestamp | GetObservedTimestamp () const noexcept=0 |
| Get the observed timestamp of this log. More... | |
| virtual opentelemetry::logs::Severity | GetSeverity () const noexcept=0 |
| Get the severity of this log. More... | |
| virtual nostd::string_view | GetSeverityText () const noexcept |
| Get the severity text of this log. More... | |
| virtual const opentelemetry::sdk::common::OwnedAttributeValue & | GetBody () const noexcept=0 |
| Get body field of this log. More... | |
| virtual int64_t | GetEventId () const noexcept=0 |
| Get the Event id. More... | |
| virtual nostd::string_view | GetEventName () const noexcept=0 |
| Get the Event Name. More... | |
| virtual const opentelemetry::trace::TraceId & | GetTraceId () const noexcept=0 |
| Get the trace id of this log. More... | |
| virtual const opentelemetry::trace::SpanId & | GetSpanId () const noexcept=0 |
| Get the span id of this log. More... | |
| virtual const opentelemetry::trace::TraceFlags & | GetTraceFlags () const noexcept=0 |
| Inject trace_flags of this log. More... | |
| virtual const std::unordered_map< std::string, opentelemetry::sdk::common::OwnedAttributeValue > & | GetAttributes () const noexcept=0 |
| Get attributes of this log. More... | |
| virtual const opentelemetry::sdk::resource::Resource & | GetResource () const noexcept=0 |
| Get resource of this log. More... | |
| virtual const opentelemetry::sdk::instrumentationscope::InstrumentationScope & | GetInstrumentationScope () const noexcept=0 |
| Get instrumentation scope of this log. More... | |
| virtual void | SetResource (const opentelemetry::sdk::resource::Resource &resource) noexcept=0 |
| Set Resource of this log. More... | |
| virtual void | SetResource (const opentelemetry::sdk::resource::Resource &resource) noexcept=0 |
| Set Resource of this log. More... | |
| virtual void | SetInstrumentationScope (const opentelemetry::sdk::instrumentationscope::InstrumentationScope &instrumentation_scope) noexcept=0 |
| Set instrumentation_scope for this log. More... | |
| virtual void | SetInstrumentationScope (const opentelemetry::sdk::instrumentationscope::InstrumentationScope &instrumentation_scope) noexcept=0 |
| Set instrumentation_scope for this log. More... | |
Static Public Member Functions | |
| static const opentelemetry::sdk::instrumentationscope::InstrumentationScope & | GetDefaultInstrumentationScope () noexcept |
| Get default instrumentation scope of logs. More... | |
| static const opentelemetry::sdk::resource::Resource & | GetDefaultResource () noexcept |
| Get default resource of logs. More... | |
| static const opentelemetry::sdk::instrumentationscope::InstrumentationScope & | GetDefaultInstrumentationScope () noexcept |
| Get default instrumentation scope of logs. More... | |
| static const opentelemetry::sdk::resource::Resource & | GetDefaultResource () noexcept |
| Get default resource of logs. More... | |
|
pure virtualnoexcept |
Get attributes of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get attributes of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get body field of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get body field of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
staticnoexcept |
Get default instrumentation scope of logs.
|
staticnoexcept |
Get default instrumentation scope of logs.
|
staticnoexcept |
Get default resource of logs.
|
staticnoexcept |
Get default resource of logs.
|
pure virtualnoexcept |
Get the Event id.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get the Event id.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get the Event Name.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get the Event Name.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get instrumentation scope of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get instrumentation scope of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get the observed timestamp of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get the observed timestamp of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get resource of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get resource of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get the severity of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get the severity of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
virtualnoexcept |
Get the severity text of this log.
|
virtualnoexcept |
Get the severity text of this log.
|
pure virtualnoexcept |
Get the span id of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get the span id of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get the timestamp of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get the timestamp of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Inject trace_flags of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Inject trace_flags of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get the trace id of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexcept |
Get the trace id of this log.
Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.
|
pure virtualnoexceptinherited |
Set instrumentation_scope for this log.
| instrumentation_scope | the instrumentation scope to set |
Implemented in sdk::logs::ReadWriteLogRecord, sdk::logs::ReadWriteLogRecord, sdk::logs::MultiRecordable, and sdk::logs::MultiRecordable.
|
pure virtualnoexceptinherited |
Set instrumentation_scope for this log.
| instrumentation_scope | the instrumentation scope to set |
Implemented in sdk::logs::ReadWriteLogRecord, sdk::logs::ReadWriteLogRecord, sdk::logs::MultiRecordable, and sdk::logs::MultiRecordable.
|
pure virtualnoexceptinherited |
Set Resource of this log.
| resource | the resource to set |
Implemented in sdk::logs::ReadWriteLogRecord, sdk::logs::ReadWriteLogRecord, sdk::logs::MultiRecordable, and sdk::logs::MultiRecordable.
|
pure virtualnoexceptinherited |
Set Resource of this log.
| resource | the resource to set |
Implemented in sdk::logs::ReadWriteLogRecord, sdk::logs::ReadWriteLogRecord, sdk::logs::MultiRecordable, and sdk::logs::MultiRecordable.