NVIDIA DeepStream SDK API Reference

9.2 Release
sdk::logs::ReadWriteLogRecord Class Referencefinal

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 33 of file includes/opentelemetry/sdk/logs/read_write_log_record.h.

Inheritance diagram for sdk::logs::ReadWriteLogRecord:
Collaboration diagram for sdk::logs::ReadWriteLogRecord:

Public Member Functions

 ReadWriteLogRecord ()
 
 ~ReadWriteLogRecord () override
 
void SetTimestamp (opentelemetry::common::SystemTimestamp timestamp) noexcept override
 Set the timestamp for this log. More...
 
opentelemetry::common::SystemTimestamp GetTimestamp () const noexcept override
 Get the timestamp of this log. More...
 
void SetObservedTimestamp (opentelemetry::common::SystemTimestamp timestamp) noexcept override
 Set the observed timestamp for this log. More...
 
opentelemetry::common::SystemTimestamp GetObservedTimestamp () const noexcept override
 Get the observed timestamp of this log. More...
 
void SetSeverity (opentelemetry::logs::Severity severity) noexcept override
 Set the severity for this log. More...
 
opentelemetry::logs::Severity GetSeverity () const noexcept override
 Get the severity of this log. More...
 
void SetBody (const opentelemetry::common::AttributeValue &message) noexcept override
 Set body field for this log. More...
 
const opentelemetry::sdk::common::OwnedAttributeValue & GetBody () const noexcept override
 Get body field of this log. More...
 
void SetEventId (int64_t id, nostd::string_view name) noexcept override
 Set the Event Id object. More...
 
int64_t GetEventId () const noexcept override
 Get event Id of this log. More...
 
nostd::string_view GetEventName () const noexcept override
 Get event name of this log. More...
 
void SetTraceId (const opentelemetry::trace::TraceId &trace_id) noexcept override
 Set the trace id for this log. More...
 
const opentelemetry::trace::TraceId & GetTraceId () const noexcept override
 Get the trace id of this log. More...
 
void SetSpanId (const opentelemetry::trace::SpanId &span_id) noexcept override
 Set the span id for this log. More...
 
const opentelemetry::trace::SpanId & GetSpanId () const noexcept override
 Get the span id of this log. More...
 
void SetTraceFlags (const opentelemetry::trace::TraceFlags &trace_flags) noexcept override
 Inject trace_flags for this log. More...
 
const opentelemetry::trace::TraceFlags & GetTraceFlags () const noexcept override
 Inject trace_flags of this log. More...
 
void SetAttribute (nostd::string_view key, const opentelemetry::common::AttributeValue &value) noexcept override
 Set an attribute of a log. More...
 
const std::unordered_map< std::string, opentelemetry::sdk::common::OwnedAttributeValue > & GetAttributes () const noexcept override
 Get attributes of this log. More...
 
const opentelemetry::sdk::resource::Resource & GetResource () const noexcept override
 Get resource of this log. More...
 
void SetResource (const opentelemetry::sdk::resource::Resource &resource) noexcept override
 Set Resource of this log. More...
 
const opentelemetry::sdk::instrumentationscope::InstrumentationScope & GetInstrumentationScope () const noexcept override
 Get instrumentation_scope of this log. More...
 
void SetInstrumentationScope (const opentelemetry::sdk::instrumentationscope::InstrumentationScope &instrumentation_scope) noexcept override
 Set instrumentation_scope for this log. More...
 
 ReadWriteLogRecord ()
 
 ~ReadWriteLogRecord () override
 
void SetTimestamp (opentelemetry::common::SystemTimestamp timestamp) noexcept override
 Set the timestamp for this log. More...
 
opentelemetry::common::SystemTimestamp GetTimestamp () const noexcept override
 Get the timestamp of this log. More...
 
void SetObservedTimestamp (opentelemetry::common::SystemTimestamp timestamp) noexcept override
 Set the observed timestamp for this log. More...
 
opentelemetry::common::SystemTimestamp GetObservedTimestamp () const noexcept override
 Get the observed timestamp of this log. More...
 
void SetSeverity (opentelemetry::logs::Severity severity) noexcept override
 Set the severity for this log. More...
 
opentelemetry::logs::Severity GetSeverity () const noexcept override
 Get the severity of this log. More...
 
void SetBody (const opentelemetry::common::AttributeValue &message) noexcept override
 Set body field for this log. More...
 
const opentelemetry::sdk::common::OwnedAttributeValue & GetBody () const noexcept override
 Get body field of this log. More...
 
void SetEventId (int64_t id, nostd::string_view name) noexcept override
 Set the Event Id object. More...
 
int64_t GetEventId () const noexcept override
 Get event Id of this log. More...
 
nostd::string_view GetEventName () const noexcept override
 Get event name of this log. More...
 
void SetTraceId (const opentelemetry::trace::TraceId &trace_id) noexcept override
 Set the trace id for this log. More...
 
const opentelemetry::trace::TraceId & GetTraceId () const noexcept override
 Get the trace id of this log. More...
 
void SetSpanId (const opentelemetry::trace::SpanId &span_id) noexcept override
 Set the span id for this log. More...
 
const opentelemetry::trace::SpanId & GetSpanId () const noexcept override
 Get the span id of this log. More...
 
void SetTraceFlags (const opentelemetry::trace::TraceFlags &trace_flags) noexcept override
 Inject trace_flags for this log. More...
 
const opentelemetry::trace::TraceFlags & GetTraceFlags () const noexcept override
 Inject trace_flags of this log. More...
 
void SetAttribute (nostd::string_view key, const opentelemetry::common::AttributeValue &value) noexcept override
 Set an attribute of a log. More...
 
const std::unordered_map< std::string, opentelemetry::sdk::common::OwnedAttributeValue > & GetAttributes () const noexcept override
 Get attributes of this log. More...
 
const opentelemetry::sdk::resource::Resource & GetResource () const noexcept override
 Get resource of this log. More...
 
void SetResource (const opentelemetry::sdk::resource::Resource &resource) noexcept override
 Set Resource of this log. More...
 
const opentelemetry::sdk::instrumentationscope::InstrumentationScope & GetInstrumentationScope () const noexcept override
 Get instrumentation_scope of this log. More...
 
void SetInstrumentationScope (const opentelemetry::sdk::instrumentationscope::InstrumentationScope &instrumentation_scope) noexcept override
 Set instrumentation_scope for this log. More...
 
virtual nostd::string_view GetSeverityText () const noexcept
 Get the severity text of this log. More...
 
virtual nostd::string_view GetSeverityText () const noexcept
 Get the severity text of 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::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::resource::Resource & GetDefaultResource () noexcept
 Get default resource of logs. More...
 

Constructor & Destructor Documentation

◆ ReadWriteLogRecord() [1/2]

sdk::logs::ReadWriteLogRecord::ReadWriteLogRecord ( )

◆ ~ReadWriteLogRecord() [1/2]

sdk::logs::ReadWriteLogRecord::~ReadWriteLogRecord ( )
override

◆ ReadWriteLogRecord() [2/2]

sdk::logs::ReadWriteLogRecord::ReadWriteLogRecord ( )

◆ ~ReadWriteLogRecord() [2/2]

sdk::logs::ReadWriteLogRecord::~ReadWriteLogRecord ( )
override

Member Function Documentation

◆ GetAttributes() [1/2]

const std::unordered_map<std::string, opentelemetry::sdk::common::OwnedAttributeValue>& sdk::logs::ReadWriteLogRecord::GetAttributes ( ) const
overridevirtualnoexcept

Get attributes of this log.

Returns
the body field of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetAttributes() [2/2]

const std::unordered_map<std::string, opentelemetry::sdk::common::OwnedAttributeValue>& sdk::logs::ReadWriteLogRecord::GetAttributes ( ) const
overridevirtualnoexcept

Get attributes of this log.

Returns
the body field of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetBody() [1/2]

const opentelemetry::sdk::common::OwnedAttributeValue& sdk::logs::ReadWriteLogRecord::GetBody ( ) const
overridevirtualnoexcept

Get body field of this log.

Returns
the body field for this log.

Implements sdk::logs::ReadableLogRecord.

◆ GetBody() [2/2]

const opentelemetry::sdk::common::OwnedAttributeValue& sdk::logs::ReadWriteLogRecord::GetBody ( ) const
overridevirtualnoexcept

Get body field of this log.

Returns
the body field for this log.

Implements sdk::logs::ReadableLogRecord.

◆ GetDefaultInstrumentationScope() [1/2]

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

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 ( )
staticnoexceptinherited

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 ( )
staticnoexceptinherited

Get default resource of logs.

Returns
the default resource of logs

◆ GetDefaultResource() [2/2]

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

Get default resource of logs.

Returns
the default resource of logs

◆ GetEventId() [1/2]

int64_t sdk::logs::ReadWriteLogRecord::GetEventId ( ) const
overridevirtualnoexcept

Get event Id of this log.

Returns
the event Id of this log.

Implements sdk::logs::ReadableLogRecord.

◆ GetEventId() [2/2]

int64_t sdk::logs::ReadWriteLogRecord::GetEventId ( ) const
overridevirtualnoexcept

Get event Id of this log.

Returns
the event Id of this log.

Implements sdk::logs::ReadableLogRecord.

◆ GetEventName() [1/2]

nostd::string_view sdk::logs::ReadWriteLogRecord::GetEventName ( ) const
overridevirtualnoexcept

Get event name of this log.

Returns
the event name of this log.

Implements sdk::logs::ReadableLogRecord.

◆ GetEventName() [2/2]

nostd::string_view sdk::logs::ReadWriteLogRecord::GetEventName ( ) const
overridevirtualnoexcept

Get event name of this log.

Returns
the event name of this log.

Implements sdk::logs::ReadableLogRecord.

◆ GetInstrumentationScope() [1/2]

const opentelemetry::sdk::instrumentationscope::InstrumentationScope& sdk::logs::ReadWriteLogRecord::GetInstrumentationScope ( ) const
overridevirtualnoexcept

Get instrumentation_scope of this log.

Returns
the instrumentation_scope of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetInstrumentationScope() [2/2]

const opentelemetry::sdk::instrumentationscope::InstrumentationScope& sdk::logs::ReadWriteLogRecord::GetInstrumentationScope ( ) const
overridevirtualnoexcept

Get instrumentation_scope of this log.

Returns
the instrumentation_scope of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetObservedTimestamp() [1/2]

opentelemetry::common::SystemTimestamp sdk::logs::ReadWriteLogRecord::GetObservedTimestamp ( ) const
overridevirtualnoexcept

Get the observed timestamp of this log.

Returns
the observed timestamp of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetObservedTimestamp() [2/2]

opentelemetry::common::SystemTimestamp sdk::logs::ReadWriteLogRecord::GetObservedTimestamp ( ) const
overridevirtualnoexcept

Get the observed timestamp of this log.

Returns
the observed timestamp of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetResource() [1/2]

const opentelemetry::sdk::resource::Resource& sdk::logs::ReadWriteLogRecord::GetResource ( ) const
overridevirtualnoexcept

Get resource of this log.

Returns
the resource of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetResource() [2/2]

const opentelemetry::sdk::resource::Resource& sdk::logs::ReadWriteLogRecord::GetResource ( ) const
overridevirtualnoexcept

Get resource of this log.

Returns
the resource of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetSeverity() [1/2]

opentelemetry::logs::Severity sdk::logs::ReadWriteLogRecord::GetSeverity ( ) const
overridevirtualnoexcept

Get the severity of this log.

Returns
the severity of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetSeverity() [2/2]

opentelemetry::logs::Severity sdk::logs::ReadWriteLogRecord::GetSeverity ( ) const
overridevirtualnoexcept

Get the severity of this log.

Returns
the severity of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetSeverityText() [1/2]

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

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
virtualnoexceptinherited

Get the severity text of this log.

Returns
the severity text for this log

◆ GetSpanId() [1/2]

const opentelemetry::trace::SpanId& sdk::logs::ReadWriteLogRecord::GetSpanId ( ) const
overridevirtualnoexcept

Get the span id of this log.

Returns
the span id of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetSpanId() [2/2]

const opentelemetry::trace::SpanId& sdk::logs::ReadWriteLogRecord::GetSpanId ( ) const
overridevirtualnoexcept

Get the span id of this log.

Returns
the span id of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetTimestamp() [1/2]

opentelemetry::common::SystemTimestamp sdk::logs::ReadWriteLogRecord::GetTimestamp ( ) const
overridevirtualnoexcept

Get the timestamp of this log.

Returns
the timestamp of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetTimestamp() [2/2]

opentelemetry::common::SystemTimestamp sdk::logs::ReadWriteLogRecord::GetTimestamp ( ) const
overridevirtualnoexcept

Get the timestamp of this log.

Returns
the timestamp of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetTraceFlags() [1/2]

const opentelemetry::trace::TraceFlags& sdk::logs::ReadWriteLogRecord::GetTraceFlags ( ) const
overridevirtualnoexcept

Inject trace_flags of this log.

Returns
trace_flags of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetTraceFlags() [2/2]

const opentelemetry::trace::TraceFlags& sdk::logs::ReadWriteLogRecord::GetTraceFlags ( ) const
overridevirtualnoexcept

Inject trace_flags of this log.

Returns
trace_flags of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetTraceId() [1/2]

const opentelemetry::trace::TraceId& sdk::logs::ReadWriteLogRecord::GetTraceId ( ) const
overridevirtualnoexcept

Get the trace id of this log.

Returns
the trace id of this log

Implements sdk::logs::ReadableLogRecord.

◆ GetTraceId() [2/2]

const opentelemetry::trace::TraceId& sdk::logs::ReadWriteLogRecord::GetTraceId ( ) const
overridevirtualnoexcept

Get the trace id of this log.

Returns
the trace id of this log

Implements sdk::logs::ReadableLogRecord.

◆ SetAttribute() [1/2]

void sdk::logs::ReadWriteLogRecord::SetAttribute ( nostd::string_view  key,
const opentelemetry::common::AttributeValue &  value 
)
overridenoexcept

Set an attribute of a log.

Parameters
keythe name of the attribute
valuethe attribute value

◆ SetAttribute() [2/2]

void sdk::logs::ReadWriteLogRecord::SetAttribute ( nostd::string_view  key,
const opentelemetry::common::AttributeValue &  value 
)
overridenoexcept

Set an attribute of a log.

Parameters
keythe name of the attribute
valuethe attribute value

◆ SetBody() [1/2]

void sdk::logs::ReadWriteLogRecord::SetBody ( const opentelemetry::common::AttributeValue &  message)
overridenoexcept

Set body field for this log.

Parameters
messagethe body to set

◆ SetBody() [2/2]

void sdk::logs::ReadWriteLogRecord::SetBody ( const opentelemetry::common::AttributeValue &  message)
overridenoexcept

Set body field for this log.

Parameters
messagethe body to set

◆ SetEventId() [1/2]

void sdk::logs::ReadWriteLogRecord::SetEventId ( int64_t  id,
nostd::string_view  name 
)
overridenoexcept

Set the Event Id object.

Parameters
idthe event Id to set
namethe event name to set

◆ SetEventId() [2/2]

void sdk::logs::ReadWriteLogRecord::SetEventId ( int64_t  id,
nostd::string_view  name 
)
overridenoexcept

Set the Event Id object.

Parameters
idthe event Id to set
namethe event name to set

◆ SetInstrumentationScope() [1/2]

void sdk::logs::ReadWriteLogRecord::SetInstrumentationScope ( const opentelemetry::sdk::instrumentationscope::InstrumentationScope &  instrumentation_scope)
overridevirtualnoexcept

Set instrumentation_scope for this log.

Parameters
instrumentation_scopethe instrumentation scope to set

Implements sdk::logs::Recordable.

◆ SetInstrumentationScope() [2/2]

void sdk::logs::ReadWriteLogRecord::SetInstrumentationScope ( const opentelemetry::sdk::instrumentationscope::InstrumentationScope &  instrumentation_scope)
overridevirtualnoexcept

Set instrumentation_scope for this log.

Parameters
instrumentation_scopethe instrumentation scope to set

Implements sdk::logs::Recordable.

◆ SetObservedTimestamp() [1/2]

void sdk::logs::ReadWriteLogRecord::SetObservedTimestamp ( opentelemetry::common::SystemTimestamp  timestamp)
overridenoexcept

Set the observed timestamp for this log.

Parameters
timestampthe timestamp to set

◆ SetObservedTimestamp() [2/2]

void sdk::logs::ReadWriteLogRecord::SetObservedTimestamp ( opentelemetry::common::SystemTimestamp  timestamp)
overridenoexcept

Set the observed timestamp for this log.

Parameters
timestampthe timestamp to set

◆ SetResource() [1/2]

void sdk::logs::ReadWriteLogRecord::SetResource ( const opentelemetry::sdk::resource::Resource &  resource)
overridevirtualnoexcept

Set Resource of this log.

Parameters
resourcethe resource to set

Implements sdk::logs::Recordable.

◆ SetResource() [2/2]

void sdk::logs::ReadWriteLogRecord::SetResource ( const opentelemetry::sdk::resource::Resource &  resource)
overridevirtualnoexcept

Set Resource of this log.

Parameters
resourcethe resource to set

Implements sdk::logs::Recordable.

◆ SetSeverity() [1/2]

void sdk::logs::ReadWriteLogRecord::SetSeverity ( opentelemetry::logs::Severity  severity)
overridenoexcept

Set the severity for this log.

Parameters
severitythe severity of the event

◆ SetSeverity() [2/2]

void sdk::logs::ReadWriteLogRecord::SetSeverity ( opentelemetry::logs::Severity  severity)
overridenoexcept

Set the severity for this log.

Parameters
severitythe severity of the event

◆ SetSpanId() [1/2]

void sdk::logs::ReadWriteLogRecord::SetSpanId ( const opentelemetry::trace::SpanId &  span_id)
overridenoexcept

Set the span id for this log.

Parameters
span_idthe span id to set

◆ SetSpanId() [2/2]

void sdk::logs::ReadWriteLogRecord::SetSpanId ( const opentelemetry::trace::SpanId &  span_id)
overridenoexcept

Set the span id for this log.

Parameters
span_idthe span id to set

◆ SetTimestamp() [1/2]

void sdk::logs::ReadWriteLogRecord::SetTimestamp ( opentelemetry::common::SystemTimestamp  timestamp)
overridenoexcept

Set the timestamp for this log.

Parameters
timestampthe timestamp to set

◆ SetTimestamp() [2/2]

void sdk::logs::ReadWriteLogRecord::SetTimestamp ( opentelemetry::common::SystemTimestamp  timestamp)
overridenoexcept

Set the timestamp for this log.

Parameters
timestampthe timestamp to set

◆ SetTraceFlags() [1/2]

void sdk::logs::ReadWriteLogRecord::SetTraceFlags ( const opentelemetry::trace::TraceFlags &  trace_flags)
overridenoexcept

Inject trace_flags for this log.

Parameters
trace_flagsthe trace flags to set

◆ SetTraceFlags() [2/2]

void sdk::logs::ReadWriteLogRecord::SetTraceFlags ( const opentelemetry::trace::TraceFlags &  trace_flags)
overridenoexcept

Inject trace_flags for this log.

Parameters
trace_flagsthe trace flags to set

◆ SetTraceId() [1/2]

void sdk::logs::ReadWriteLogRecord::SetTraceId ( const opentelemetry::trace::TraceId &  trace_id)
overridenoexcept

Set the trace id for this log.

Parameters
trace_idthe trace id to set

◆ SetTraceId() [2/2]

void sdk::logs::ReadWriteLogRecord::SetTraceId ( const opentelemetry::trace::TraceId &  trace_id)
overridenoexcept

Set the trace id for this log.

Parameters
trace_idthe trace id to set

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