NVIDIA DeepStream SDK API Reference

9.2 Release
sdk::logs::ReadableLogRecord Class Referenceabstract

Detailed Description

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.

Inheritance diagram for sdk::logs::ReadableLogRecord:
Collaboration diagram for sdk::logs::ReadableLogRecord:

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...
 

Member Function Documentation

◆ GetAttributes() [1/2]

virtual const std::unordered_map<std::string, opentelemetry::sdk::common::OwnedAttributeValue>& sdk::logs::ReadableLogRecord::GetAttributes ( ) const
pure virtualnoexcept

Get attributes of this log.

Returns
the body field of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetAttributes() [2/2]

virtual const std::unordered_map<std::string, opentelemetry::sdk::common::OwnedAttributeValue>& sdk::logs::ReadableLogRecord::GetAttributes ( ) const
pure virtualnoexcept

Get attributes of this log.

Returns
the body field of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetBody() [1/2]

virtual const opentelemetry::sdk::common::OwnedAttributeValue& sdk::logs::ReadableLogRecord::GetBody ( ) const
pure virtualnoexcept

Get body field of this log.

Returns
the body field for this log.

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetBody() [2/2]

virtual const opentelemetry::sdk::common::OwnedAttributeValue& sdk::logs::ReadableLogRecord::GetBody ( ) const
pure virtualnoexcept

Get body field of this log.

Returns
the body field for this log.

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetDefaultInstrumentationScope() [1/2]

static const opentelemetry::sdk::instrumentationscope::InstrumentationScope& sdk::logs::ReadableLogRecord::GetDefaultInstrumentationScope ( )
staticnoexcept

Get default instrumentation scope of logs.

Returns
the default instrumentation scope of logs

◆ GetDefaultInstrumentationScope() [2/2]

static const opentelemetry::sdk::instrumentationscope::InstrumentationScope& sdk::logs::ReadableLogRecord::GetDefaultInstrumentationScope ( )
staticnoexcept

Get default instrumentation scope of logs.

Returns
the default instrumentation scope of logs

◆ GetDefaultResource() [1/2]

static const opentelemetry::sdk::resource::Resource& sdk::logs::ReadableLogRecord::GetDefaultResource ( )
staticnoexcept

Get default resource of logs.

Returns
the default resource of logs

◆ GetDefaultResource() [2/2]

static const opentelemetry::sdk::resource::Resource& sdk::logs::ReadableLogRecord::GetDefaultResource ( )
staticnoexcept

Get default resource of logs.

Returns
the default resource of logs

◆ GetEventId() [1/2]

virtual int64_t sdk::logs::ReadableLogRecord::GetEventId ( ) const
pure virtualnoexcept

Get the Event id.

Returns
the event id

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetEventId() [2/2]

virtual int64_t sdk::logs::ReadableLogRecord::GetEventId ( ) const
pure virtualnoexcept

Get the Event id.

Returns
the event id

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetEventName() [1/2]

virtual nostd::string_view sdk::logs::ReadableLogRecord::GetEventName ( ) const
pure virtualnoexcept

Get the Event Name.

Returns
the event name

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetEventName() [2/2]

virtual nostd::string_view sdk::logs::ReadableLogRecord::GetEventName ( ) const
pure virtualnoexcept

Get the Event Name.

Returns
the event name

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetInstrumentationScope() [1/2]

virtual const opentelemetry::sdk::instrumentationscope::InstrumentationScope& sdk::logs::ReadableLogRecord::GetInstrumentationScope ( ) const
pure virtualnoexcept

Get instrumentation scope of this log.

Returns
the instrumentation scope of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetInstrumentationScope() [2/2]

virtual const opentelemetry::sdk::instrumentationscope::InstrumentationScope& sdk::logs::ReadableLogRecord::GetInstrumentationScope ( ) const
pure virtualnoexcept

Get instrumentation scope of this log.

Returns
the instrumentation scope of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetObservedTimestamp() [1/2]

virtual opentelemetry::common::SystemTimestamp sdk::logs::ReadableLogRecord::GetObservedTimestamp ( ) const
pure virtualnoexcept

Get the observed timestamp of this log.

Returns
the observed timestamp of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetObservedTimestamp() [2/2]

virtual opentelemetry::common::SystemTimestamp sdk::logs::ReadableLogRecord::GetObservedTimestamp ( ) const
pure virtualnoexcept

Get the observed timestamp of this log.

Returns
the observed timestamp of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetResource() [1/2]

virtual const opentelemetry::sdk::resource::Resource& sdk::logs::ReadableLogRecord::GetResource ( ) const
pure virtualnoexcept

Get resource of this log.

Returns
the resource of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetResource() [2/2]

virtual const opentelemetry::sdk::resource::Resource& sdk::logs::ReadableLogRecord::GetResource ( ) const
pure virtualnoexcept

Get resource of this log.

Returns
the resource of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetSeverity() [1/2]

virtual opentelemetry::logs::Severity sdk::logs::ReadableLogRecord::GetSeverity ( ) const
pure virtualnoexcept

Get the severity of this log.

Returns
the severity of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetSeverity() [2/2]

virtual opentelemetry::logs::Severity sdk::logs::ReadableLogRecord::GetSeverity ( ) const
pure virtualnoexcept

Get the severity of this log.

Returns
the severity of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetSeverityText() [1/2]

virtual nostd::string_view sdk::logs::ReadableLogRecord::GetSeverityText ( ) const
virtualnoexcept

Get the severity text of this log.

Returns
the severity text for this log

◆ GetSeverityText() [2/2]

virtual nostd::string_view sdk::logs::ReadableLogRecord::GetSeverityText ( ) const
virtualnoexcept

Get the severity text of this log.

Returns
the severity text for this log

◆ GetSpanId() [1/2]

virtual const opentelemetry::trace::SpanId& sdk::logs::ReadableLogRecord::GetSpanId ( ) const
pure virtualnoexcept

Get the span id of this log.

Returns
the span id of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetSpanId() [2/2]

virtual const opentelemetry::trace::SpanId& sdk::logs::ReadableLogRecord::GetSpanId ( ) const
pure virtualnoexcept

Get the span id of this log.

Returns
the span id of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetTimestamp() [1/2]

virtual opentelemetry::common::SystemTimestamp sdk::logs::ReadableLogRecord::GetTimestamp ( ) const
pure virtualnoexcept

Get the timestamp of this log.

Returns
the timestamp of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetTimestamp() [2/2]

virtual opentelemetry::common::SystemTimestamp sdk::logs::ReadableLogRecord::GetTimestamp ( ) const
pure virtualnoexcept

Get the timestamp of this log.

Returns
the timestamp of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetTraceFlags() [1/2]

virtual const opentelemetry::trace::TraceFlags& sdk::logs::ReadableLogRecord::GetTraceFlags ( ) const
pure virtualnoexcept

Inject trace_flags of this log.

Returns
trace_flags of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetTraceFlags() [2/2]

virtual const opentelemetry::trace::TraceFlags& sdk::logs::ReadableLogRecord::GetTraceFlags ( ) const
pure virtualnoexcept

Inject trace_flags of this log.

Returns
trace_flags of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetTraceId() [1/2]

virtual const opentelemetry::trace::TraceId& sdk::logs::ReadableLogRecord::GetTraceId ( ) const
pure virtualnoexcept

Get the trace id of this log.

Returns
the trace id of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ GetTraceId() [2/2]

virtual const opentelemetry::trace::TraceId& sdk::logs::ReadableLogRecord::GetTraceId ( ) const
pure virtualnoexcept

Get the trace id of this log.

Returns
the trace id of this log

Implemented in sdk::logs::ReadWriteLogRecord, and sdk::logs::ReadWriteLogRecord.

◆ SetInstrumentationScope() [1/2]

virtual void sdk::logs::Recordable::SetInstrumentationScope ( const opentelemetry::sdk::instrumentationscope::InstrumentationScope &  instrumentation_scope)
pure virtualnoexceptinherited

Set instrumentation_scope for this log.

Parameters
instrumentation_scopethe instrumentation scope to set

Implemented in sdk::logs::ReadWriteLogRecord, sdk::logs::ReadWriteLogRecord, sdk::logs::MultiRecordable, and sdk::logs::MultiRecordable.

◆ SetInstrumentationScope() [2/2]

virtual void sdk::logs::Recordable::SetInstrumentationScope ( const opentelemetry::sdk::instrumentationscope::InstrumentationScope &  instrumentation_scope)
pure virtualnoexceptinherited

Set instrumentation_scope for this log.

Parameters
instrumentation_scopethe instrumentation scope to set

Implemented in sdk::logs::ReadWriteLogRecord, sdk::logs::ReadWriteLogRecord, sdk::logs::MultiRecordable, and sdk::logs::MultiRecordable.

◆ SetResource() [1/2]

virtual void sdk::logs::Recordable::SetResource ( const opentelemetry::sdk::resource::Resource &  resource)
pure virtualnoexceptinherited

Set Resource of this log.

Parameters
resourcethe resource to set

Implemented in sdk::logs::ReadWriteLogRecord, sdk::logs::ReadWriteLogRecord, sdk::logs::MultiRecordable, and sdk::logs::MultiRecordable.

◆ SetResource() [2/2]

virtual void sdk::logs::Recordable::SetResource ( const opentelemetry::sdk::resource::Resource &  resource)
pure virtualnoexceptinherited

Set Resource of this log.

Parameters
resourcethe resource to set

Implemented in sdk::logs::ReadWriteLogRecord, sdk::logs::ReadWriteLogRecord, sdk::logs::MultiRecordable, and sdk::logs::MultiRecordable.


The documentation for this class was generated from the following file: