Interface ReadWriteLogRecord


public interface ReadWriteLogRecord
A log record that can be read from and written to.
  • Method Details

    • setAttribute

      <T> ReadWriteLogRecord setAttribute(io.opentelemetry.api.common.AttributeKey<T> key, T value)
      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 immutable LogRecordData instance representing this log record.