-
@JsonClass(generateAdapter = true) public final class LogA recording of an event. Typically the record includes a timestamp indicating when the event happened, as well as other data that describes what happened, where it happened, etc.
-
-
Field Summary
Fields Modifier and Type Field Description private final LongtimeUnixNanoprivate final IntegerseverityNumberprivate final StringseverityTextprivate final Stringbodyprivate final List<Attribute>attributesprivate final StringtraceIdprivate final StringspanId
-
Method Summary
Modifier and Type Method Description final LonggetTimeUnixNano()final IntegergetSeverityNumber()final StringgetSeverityText()final StringgetBody()final List<Attribute>getAttributes()final StringgetTraceId()final StringgetSpanId()-
-
Constructor Detail
-
Log
Log(Long timeUnixNano, Integer severityNumber, String severityText, String body, List<Attribute> attributes, String traceId, String spanId)
- Parameters:
timeUnixNano- The time the log was captured, in nanoseconds since the Unix epochseverityNumber- Numerical value of the severity, normalized to values going from 1 to 24, where 1 is the least severe and 24 is the most severe.severityText- Also known as log level.traceId- Request trace ID as defined in W3C Trace Context.spanId- The span ID of the log.
-
-
Method Detail
-
getTimeUnixNano
final Long getTimeUnixNano()
-
getSeverityNumber
final Integer getSeverityNumber()
-
getSeverityText
final String getSeverityText()
-
getAttributes
final List<Attribute> getAttributes()
-
getTraceId
final String getTraceId()
-
-
-
-