Class AutoValue_SdkLogRecordData
java.lang.Object
io.opentelemetry.sdk.logs.SdkLogRecordData
io.opentelemetry.sdk.logs.AutoValue_SdkLogRecordData
- All Implemented Interfaces:
LogRecordData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Attributesprivate final Value<?> private final InstrumentationScopeInfoprivate final longprivate final Resourceprivate final Severityprivate final Stringprivate final SpanContextprivate final longprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionAutoValue_SdkLogRecordData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, String severityText, Attributes attributes, int totalAttributeCount, Value<?> bodyValue) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the attributes for this log, orAttributes.empty()if unset.Value<?> Returns theValuerepresentation of the log body, of null if unset.Returns the instrumentation scope that generated this log.longReturns the timestamp at which the log record was observed, in epoch nanos.Returns the resource of this log.Returns the severity for this log, orSeverity.UNDEFINED_SEVERITY_NUMBERif unset.Returns the severity text for this log, or null if unset.Return the span context for this log, orSpanContext.getInvalid()if unset.longReturns the timestamp at which the log record occurred, in epoch nanos.intReturns the total number of attributes that were recorded on this log.inthashCode()toString()Methods inherited from class SdkLogRecordData
create, getBody
-
Field Details
-
resource
-
instrumentationScopeInfo
-
timestampEpochNanos
private final long timestampEpochNanos -
observedTimestampEpochNanos
private final long observedTimestampEpochNanos -
spanContext
-
severity
-
severityText
-
attributes
-
totalAttributeCount
private final int totalAttributeCount -
bodyValue
-
-
Constructor Details
-
AutoValue_SdkLogRecordData
AutoValue_SdkLogRecordData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, @Nullable String severityText, Attributes attributes, int totalAttributeCount, @Nullable Value<?> bodyValue)
-
-
Method Details
-
getResource
Description copied from interface:LogRecordDataReturns the resource of this log. -
getInstrumentationScopeInfo
Description copied from interface:LogRecordDataReturns the instrumentation scope that generated this log. -
getTimestampEpochNanos
public long getTimestampEpochNanos()Description copied from interface:LogRecordDataReturns the timestamp at which the log record occurred, in epoch nanos. -
getObservedTimestampEpochNanos
public long getObservedTimestampEpochNanos()Description copied from interface:LogRecordDataReturns the timestamp at which the log record was observed, in epoch nanos. -
getSpanContext
Description copied from interface:LogRecordDataReturn the span context for this log, orSpanContext.getInvalid()if unset. -
getSeverity
Description copied from interface:LogRecordDataReturns the severity for this log, orSeverity.UNDEFINED_SEVERITY_NUMBERif unset. -
getSeverityText
Description copied from interface:LogRecordDataReturns the severity text for this log, or null if unset. -
getAttributes
Description copied from interface:LogRecordDataReturns the attributes for this log, orAttributes.empty()if unset. -
getTotalAttributeCount
public int getTotalAttributeCount()Description copied from interface:LogRecordDataReturns the total number of attributes that were recorded on this log.This number may be larger than the number of attributes that are attached to this log, if the total number recorded was greater than the configured maximum value. See
LogLimits.getMaxNumberOfAttributes(). -
getBodyValue
Description copied from interface:LogRecordDataReturns theValuerepresentation of the log body, of null if unset.- Specified by:
getBodyValuein interfaceLogRecordData- Specified by:
getBodyValuein classSdkLogRecordData
-
toString
-
equals
-
hashCode
-