NVIDIA DeepStream SDK API Reference

9.2 Release
exporter::otlp::OtlpLogRecordable Class Referencefinal

Detailed Description

An OTLP Recordable implemenation for Logs.

Definition at line 35 of file includes/opentelemetry/exporters/otlp/otlp_log_recordable.h.

Inheritance diagram for exporter::otlp::OtlpLogRecordable:
Collaboration diagram for exporter::otlp::OtlpLogRecordable:

Public Member Functions

 ~OtlpLogRecordable () override=default
 
proto::logs::v1::LogRecord & log_record () noexcept
 
const proto::logs::v1::LogRecord & log_record () const noexcept
 
const opentelemetry::sdk::resource::Resource & GetResource () const noexcept
 Returns the associated resource. More...
 
const opentelemetry::sdk::instrumentationscope::InstrumentationScope & GetInstrumentationScope () const noexcept
 Returns the associated instruementation scope. More...
 
void SetTimestamp (opentelemetry::common::SystemTimestamp timestamp) noexcept override
 Set the timestamp for this log. More...
 
void SetObservedTimestamp (opentelemetry::common::SystemTimestamp timestamp) noexcept override
 Set the observed timestamp for this log. More...
 
void SetSeverity (opentelemetry::logs::Severity severity) noexcept override
 Set the severity for this log. More...
 
void SetBody (const opentelemetry::common::AttributeValue &message) noexcept override
 Set body field for this log. More...
 
void SetEventId (int64_t, nostd::string_view event_name) noexcept override
 Set the Event Id for this log. More...
 
void SetTraceId (const opentelemetry::trace::TraceId &trace_id) noexcept override
 Set the trace id for this log. More...
 
void SetSpanId (const opentelemetry::trace::SpanId &span_id) noexcept override
 Set the span id for this log. More...
 
void SetTraceFlags (const opentelemetry::trace::TraceFlags &trace_flags) noexcept override
 Inject trace_flags for this log. More...
 
void SetAttribute (nostd::string_view key, const opentelemetry::common::AttributeValue &value) noexcept override
 Set an attribute of a log. More...
 
void SetResource (const opentelemetry::sdk::resource::Resource &resource) noexcept override
 Set Resource of this log. More...
 
void SetInstrumentationScope (const opentelemetry::sdk::instrumentationscope::InstrumentationScope &instrumentation_scope) noexcept override
 Set instrumentation_scope for this log. More...
 
 ~OtlpLogRecordable () override=default
 
proto::logs::v1::LogRecord & log_record () noexcept
 
const proto::logs::v1::LogRecord & log_record () const noexcept
 
const opentelemetry::sdk::resource::Resource & GetResource () const noexcept
 Returns the associated resource. More...
 
const opentelemetry::sdk::instrumentationscope::InstrumentationScope & GetInstrumentationScope () const noexcept
 Returns the associated instruementation scope. More...
 
void SetTimestamp (opentelemetry::common::SystemTimestamp timestamp) noexcept override
 Set the timestamp for this log. More...
 
void SetObservedTimestamp (opentelemetry::common::SystemTimestamp timestamp) noexcept override
 Set the observed timestamp for this log. More...
 
void SetSeverity (opentelemetry::logs::Severity severity) noexcept override
 Set the severity for this log. More...
 
void SetBody (const opentelemetry::common::AttributeValue &message) noexcept override
 Set body field for this log. More...
 
void SetEventId (int64_t, nostd::string_view event_name) noexcept override
 Set the Event Id for this log. More...
 
void SetTraceId (const opentelemetry::trace::TraceId &trace_id) noexcept override
 Set the trace id for this log. More...
 
void SetSpanId (const opentelemetry::trace::SpanId &span_id) noexcept override
 Set the span id for this log. More...
 
void SetTraceFlags (const opentelemetry::trace::TraceFlags &trace_flags) noexcept override
 Inject trace_flags for this log. More...
 
void SetAttribute (nostd::string_view key, const opentelemetry::common::AttributeValue &value) noexcept override
 Set an attribute of a log. More...
 
void SetResource (const opentelemetry::sdk::resource::Resource &resource) noexcept override
 Set Resource of this log. More...
 
void SetInstrumentationScope (const opentelemetry::sdk::instrumentationscope::InstrumentationScope &instrumentation_scope) noexcept override
 Set instrumentation_scope for this log. More...
 

Constructor & Destructor Documentation

◆ ~OtlpLogRecordable() [1/2]

exporter::otlp::OtlpLogRecordable::~OtlpLogRecordable ( )
overridedefault

◆ ~OtlpLogRecordable() [2/2]

exporter::otlp::OtlpLogRecordable::~OtlpLogRecordable ( )
overridedefault

Member Function Documentation

◆ GetInstrumentationScope() [1/2]

const opentelemetry::sdk::instrumentationscope::InstrumentationScope& exporter::otlp::OtlpLogRecordable::GetInstrumentationScope ( ) const
noexcept

Returns the associated instruementation scope.

◆ GetInstrumentationScope() [2/2]

const opentelemetry::sdk::instrumentationscope::InstrumentationScope& exporter::otlp::OtlpLogRecordable::GetInstrumentationScope ( ) const
noexcept

Returns the associated instruementation scope.

◆ GetResource() [1/2]

const opentelemetry::sdk::resource::Resource& exporter::otlp::OtlpLogRecordable::GetResource ( ) const
noexcept

Returns the associated resource.

◆ GetResource() [2/2]

const opentelemetry::sdk::resource::Resource& exporter::otlp::OtlpLogRecordable::GetResource ( ) const
noexcept

Returns the associated resource.

◆ log_record() [1/4]

const proto::logs::v1::LogRecord& exporter::otlp::OtlpLogRecordable::log_record ( ) const
inlinenoexcept

◆ log_record() [2/4]

const proto::logs::v1::LogRecord& exporter::otlp::OtlpLogRecordable::log_record ( ) const
inlinenoexcept

◆ log_record() [3/4]

proto::logs::v1::LogRecord& exporter::otlp::OtlpLogRecordable::log_record ( )
inlinenoexcept

◆ log_record() [4/4]

proto::logs::v1::LogRecord& exporter::otlp::OtlpLogRecordable::log_record ( )
inlinenoexcept

◆ SetAttribute() [1/2]

void exporter::otlp::OtlpLogRecordable::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 exporter::otlp::OtlpLogRecordable::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 exporter::otlp::OtlpLogRecordable::SetBody ( const opentelemetry::common::AttributeValue &  message)
overridenoexcept

Set body field for this log.

Parameters
messagethe body to set

◆ SetBody() [2/2]

void exporter::otlp::OtlpLogRecordable::SetBody ( const opentelemetry::common::AttributeValue &  message)
overridenoexcept

Set body field for this log.

Parameters
messagethe body to set

◆ SetEventId() [1/2]

void exporter::otlp::OtlpLogRecordable::SetEventId ( int64_t  ,
nostd::string_view  event_name 
)
overridenoexcept

Set the Event Id for this log.

Parameters
idthe event Id to set
namethe event name to set

◆ SetEventId() [2/2]

void exporter::otlp::OtlpLogRecordable::SetEventId ( int64_t  ,
nostd::string_view  event_name 
)
overridenoexcept

Set the Event Id for this log.

Parameters
idthe event Id to set
namethe event name to set

◆ SetInstrumentationScope() [1/2]

void exporter::otlp::OtlpLogRecordable::SetInstrumentationScope ( const opentelemetry::sdk::instrumentationscope::InstrumentationScope &  instrumentation_scope)
overridenoexcept

Set instrumentation_scope for this log.

Parameters
instrumentation_scopethe instrumentation scope to set

◆ SetInstrumentationScope() [2/2]

void exporter::otlp::OtlpLogRecordable::SetInstrumentationScope ( const opentelemetry::sdk::instrumentationscope::InstrumentationScope &  instrumentation_scope)
overridenoexcept

Set instrumentation_scope for this log.

Parameters
instrumentation_scopethe instrumentation scope to set

◆ SetObservedTimestamp() [1/2]

void exporter::otlp::OtlpLogRecordable::SetObservedTimestamp ( opentelemetry::common::SystemTimestamp  timestamp)
overridenoexcept

Set the observed timestamp for this log.

Parameters
timestampthe timestamp to set

◆ SetObservedTimestamp() [2/2]

void exporter::otlp::OtlpLogRecordable::SetObservedTimestamp ( opentelemetry::common::SystemTimestamp  timestamp)
overridenoexcept

Set the observed timestamp for this log.

Parameters
timestampthe timestamp to set

◆ SetResource() [1/2]

void exporter::otlp::OtlpLogRecordable::SetResource ( const opentelemetry::sdk::resource::Resource &  resource)
overridenoexcept

Set Resource of this log.

Parameters
Resourcethe resource to set

◆ SetResource() [2/2]

void exporter::otlp::OtlpLogRecordable::SetResource ( const opentelemetry::sdk::resource::Resource &  resource)
overridenoexcept

Set Resource of this log.

Parameters
Resourcethe resource to set

◆ SetSeverity() [1/2]

void exporter::otlp::OtlpLogRecordable::SetSeverity ( opentelemetry::logs::Severity  severity)
overridenoexcept

Set the severity for this log.

Parameters
severitythe severity of the event

◆ SetSeverity() [2/2]

void exporter::otlp::OtlpLogRecordable::SetSeverity ( opentelemetry::logs::Severity  severity)
overridenoexcept

Set the severity for this log.

Parameters
severitythe severity of the event

◆ SetSpanId() [1/2]

void exporter::otlp::OtlpLogRecordable::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 exporter::otlp::OtlpLogRecordable::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 exporter::otlp::OtlpLogRecordable::SetTimestamp ( opentelemetry::common::SystemTimestamp  timestamp)
overridenoexcept

Set the timestamp for this log.

Parameters
timestampthe timestamp to set

◆ SetTimestamp() [2/2]

void exporter::otlp::OtlpLogRecordable::SetTimestamp ( opentelemetry::common::SystemTimestamp  timestamp)
overridenoexcept

Set the timestamp for this log.

Parameters
timestampthe timestamp to set

◆ SetTraceFlags() [1/2]

void exporter::otlp::OtlpLogRecordable::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 exporter::otlp::OtlpLogRecordable::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 exporter::otlp::OtlpLogRecordable::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 exporter::otlp::OtlpLogRecordable::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: