LogRecordBuilder
Immutable builder for constructing LogRecord instances with fluent API.
The builder provides sensible defaults for all fields:
- timestamps default to current system time in nanoseconds
- severity defaults to Info
- severityText defaults to "INFO"
- body defaults to empty string
- attributes defaults to empty Attributes
- trace fields default to 0 (absent)
- resource defaults to Resource.empty
- instrumentationScope defaults to InstrumentationScope with name "unknown"
Attributes
- Source
- LogRecord.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Builds the final LogRecord.
Builds the final LogRecord.
Uses current system time for any timestamps not explicitly set.
Attributes
- Source
- LogRecord.scala
Adds an attribute to the log record.
Sets the log message body.
Sets the log message body from a LogMessage.
Sets the instrumentation scope.
Sets the observed timestamp (time when the event was recorded).
Sets the resource that generated this log record.
Sets the severity level of the log record.
Sets the span ID for correlation with distributed traces.
Sets the timestamp (time when the event occurred).
Sets the trace flags (e.g., sampled flag).
Sets the trace ID for correlation with distributed traces.
Inherited methods
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
- Source
- Product.scala
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
- Source
- Product.scala