Package io.opentelemetry.sdk.logs
Interface ReadWriteLogRecord
public interface ReadWriteLogRecord
A log record that can be read from and written to.
- Since:
- 1.27.0
-
Method Summary
Modifier and TypeMethodDescriptionsetAttribute(io.opentelemetry.api.common.AttributeKey<T> key, T value) Sets an attribute on the log record.Return an immutableLogRecordDatainstance representing this log record.
-
Method Details
-
setAttribute
Sets an attribute on the log record. If the log record previously contained a mapping for the key, the old value is replaced by the specified value.Note: the behavior of null values is undefined, and hence strongly discouraged.
-
toLogRecordData
LogRecordData toLogRecordData()Return an immutableLogRecordDatainstance representing this log record.
-