Class Recordable

Inheritance Relationships

Base Type

Derived Types

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