Interface ExtendedLogRecordBuilder
- All Superinterfaces:
io.opentelemetry.api.logs.LogRecordBuilder
LogRecordBuilder with experimental APIs.-
Method Summary
Modifier and TypeMethodDescriptiondefault ExtendedLogRecordBuildersetAllAttributes(io.opentelemetry.api.common.Attributes attributes) default ExtendedLogRecordBuildersetAllAttributes(ExtendedAttributes attributes) Sets attributes.setAttribute(io.opentelemetry.api.common.AttributeKey<T> key, T value) setAttribute(ExtendedAttributeKey<T> key, T value) Set an attribute.default ExtendedLogRecordBuildersetBody(io.opentelemetry.api.common.Value<?> body) setContext(io.opentelemetry.context.Context context) setEventName(String eventName) Sets the event name, which identifies the class / type of the Event.setException(Throwable throwable) setObservedTimestamp(long timestamp, TimeUnit unit) setObservedTimestamp(Instant instant) setSeverity(io.opentelemetry.api.logs.Severity severity) setSeverityText(String severityText) setTimestamp(long timestamp, TimeUnit unit) setTimestamp(Instant instant) Methods inherited from interface io.opentelemetry.api.logs.LogRecordBuilder
emit, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute
-
Method Details
-
setTimestamp
- Specified by:
setTimestampin interfaceio.opentelemetry.api.logs.LogRecordBuilder
-
setTimestamp
- Specified by:
setTimestampin interfaceio.opentelemetry.api.logs.LogRecordBuilder
-
setObservedTimestamp
- Specified by:
setObservedTimestampin interfaceio.opentelemetry.api.logs.LogRecordBuilder
-
setObservedTimestamp
- Specified by:
setObservedTimestampin interfaceio.opentelemetry.api.logs.LogRecordBuilder
-
setContext
- Specified by:
setContextin interfaceio.opentelemetry.api.logs.LogRecordBuilder
-
setSeverity
- Specified by:
setSeverityin interfaceio.opentelemetry.api.logs.LogRecordBuilder
-
setSeverityText
- Specified by:
setSeverityTextin interfaceio.opentelemetry.api.logs.LogRecordBuilder
-
setBody
- Specified by:
setBodyin interfaceio.opentelemetry.api.logs.LogRecordBuilder
-
setBody
- Specified by:
setBodyin interfaceio.opentelemetry.api.logs.LogRecordBuilder
-
setEventName
Sets the event name, which identifies the class / type of the Event.This name should uniquely identify the event structure (both attributes and body). A log record with a non-empty event name is an Event.
- Specified by:
setEventNamein interfaceio.opentelemetry.api.logs.LogRecordBuilder
-
setAllAttributes
default ExtendedLogRecordBuilder setAllAttributes(io.opentelemetry.api.common.Attributes attributes) NOTE: all standard
AttributeKey-value pairs can also be represented asExtendedAttributeKey-value pairs, but not allExtendedAttributeKey-value pairs can be represented as standardAttributeKey-value pairs. From the standpoint of the emitted log record, there is no difference between adding attributes using the standard or extended attribute APIs.- Specified by:
setAllAttributesin interfaceio.opentelemetry.api.logs.LogRecordBuilder
-
setAllAttributes
Sets attributes. If theLogRecordBuilderpreviously contained a mapping for any of the keys, the old values are replaced by the specified values.NOTE: all standard
AttributeKey-value pairs can also be represented asExtendedAttributeKey-value pairs, but not allExtendedAttributeKey-value pairs can be represented as standardAttributeKey-value pairs. From the standpoint of the emitted log record, there is no difference between adding attributes using the standard or extended attribute APIs. -
setAttribute
<T> ExtendedLogRecordBuilder setAttribute(io.opentelemetry.api.common.AttributeKey<T> key, @Nullable T value) NOTE: all standard
AttributeKey-value pairs can also be represented asExtendedAttributeKey-value pairs, but not allExtendedAttributeKey-value pairs can be represented as standardAttributeKey-value pairs. From the standpoint of the emitted log record, there is no difference between adding attributes using the standard or extended attribute APIs.- Specified by:
setAttributein interfaceio.opentelemetry.api.logs.LogRecordBuilder
-
setAttribute
Set an attribute.NOTE: all standard
AttributeKey-value pairs can also be represented asExtendedAttributeKey-value pairs, but not allExtendedAttributeKey-value pairs can be represented as standardAttributeKey-value pairs. From the standpoint of the emitted log record, there is no difference between adding attributes using the standard or extended attribute APIs. -
setException
- Specified by:
setExceptionin interfaceio.opentelemetry.api.logs.LogRecordBuilder
-