Uses of Interface
io.opentelemetry.api.logs.LogRecordBuilder
Packages that use LogRecordBuilder
Package
Description
API for writing log appenders.
-
Uses of LogRecordBuilder in io.opentelemetry.api.incubator.logs
Subinterfaces of LogRecordBuilder in io.opentelemetry.api.incubator.logs -
Uses of LogRecordBuilder in io.opentelemetry.api.logs
Methods in io.opentelemetry.api.logs that return LogRecordBuilderModifier and TypeMethodDescriptionLogger.logRecordBuilder()Return aLogRecordBuilderto emit a log record.default LogRecordBuilderLogRecordBuilder.setAllAttributes(Attributes attributes) Sets attributes.<T> LogRecordBuilderLogRecordBuilder.setAttribute(AttributeKey<T> key, T value) Sets an attribute.default LogRecordBuilderSet the bodyValue.Set the body string.LogRecordBuilder.setContext(Context context) Set the context.LogRecordBuilder.setObservedTimestamp(long timestamp, TimeUnit unit) Set the epochobservedTimestamp, using the timestamp and unit.LogRecordBuilder.setObservedTimestamp(Instant instant) Set theobservedTimestamp, using the instant.LogRecordBuilder.setSeverity(Severity severity) Set the severity.LogRecordBuilder.setSeverityText(String severityText) Set the severity text.LogRecordBuilder.setTimestamp(long timestamp, TimeUnit unit) Set the epochtimestamp, using the timestamp and unit.LogRecordBuilder.setTimestamp(Instant instant) Set the epochtimestamp, using the instant.