Class Recordable
Defined in File recordable.h
Inheritance Relationships
Base Type
public opentelemetry::logs::LogRecord
(Class LogRecord)
Derived Types
public opentelemetry::sdk::logs::MultiRecordable
(Class MultiRecordable)public opentelemetry::sdk::logs::ReadableLogRecord
(Class ReadableLogRecord)
Class Documentation
-
class Recordable : public opentelemetry::logs::LogRecord
Maintains a representation of a log in a format that can be processed by a recorder.
This class is thread-compatible.
Subclassed by opentelemetry::sdk::logs::MultiRecordable, opentelemetry::sdk::logs::ReadableLogRecord
Public Functions
-
virtual void SetResource(const opentelemetry::sdk::resource::Resource &resource) noexcept = 0
Set Resource of this log
- Parameters:
Resource – the resource to set
-
virtual void SetInstrumentationScope(const opentelemetry::sdk::instrumentationscope::InstrumentationScope &instrumentation_scope) noexcept = 0
Set instrumentation_scope for this log.
- Parameters:
instrumentation_scope – the instrumentation scope to set
-
virtual void SetResource(const opentelemetry::sdk::resource::Resource &resource) noexcept = 0