ReadWriteLogRecord class abstract

A mutable view of a log record.

This interface extends ReadableLogRecord to provide write access to log record fields. It is used by LogRecordProcessors that need to modify log records.

Implementations are NOT required to be concurrent-safe. Asynchronous processors should clone the log record if needed.

More information: https://opentelemetry.io/docs/specs/otel/logs/sdk/#readwritelogrecord

Implemented types

Constructors

ReadWriteLogRecord()

Properties

attributes ↔ Attributes?
Sets the attributes of the log record.
getter/setter pairinherited-getter
body ↔ dynamic
Sets the body of the log record.
getter/setter pairinherited-getter
context → Context?
no setterinherited
droppedAttributesCount → int
The count of attributes that were dropped due to limits.
no setterinherited
eventName ↔ String?
Sets the event name.
getter/setter pairinherited-getter
hashCode → int
The hash code for this object.
no setterinherited
instrumentationScope → InstrumentationScope
The instrumentation scope associated with this log record.
no setterinherited
observedTimestamp ↔ Int64?
Sets the timestamp of when the event was observed.
getter/setter pairinherited-getter
resource → Resource?
The resource associated with this log record.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
severityNumber ↔ Severity?
Sets the severity number.
getter/setter pairinherited-getter
severityText ↔ String?
Sets the severity text.
getter/setter pairinherited-getter
spanId ↔ SpanId?
The span ID associated with this log record, if any.
getter/setter pairinherited-getter
timestamp ↔ Int64?
Sets the timestamp of when the event occurred.
getter/setter pairinherited-getter
traceFlags ↔ TraceFlags?
The trace flags associated with this log record, if any.
getter/setter pairinherited-getter
traceId ↔ TraceId?
The trace ID associated with this log record, if any.
getter/setter pairinherited-getter

Methods

addAttribute(Attribute<Object> attribute) → void
Adds an attribute to the log record.
clone() → ReadWriteLogRecord
Creates a deep clone of this log record.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAttribute(String key) → void
Removes an attribute from the log record by key.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited