Package io.opentelemetry.sdk.logs
Class AutoValue_SdkLogRecordData
- java.lang.Object
-
- io.opentelemetry.sdk.logs.SdkLogRecordData
-
- io.opentelemetry.sdk.logs.AutoValue_SdkLogRecordData
-
- All Implemented Interfaces:
LogRecordData
@Immutable @Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_SdkLogRecordData extends SdkLogRecordData
-
-
Field Summary
Fields Modifier and Type Field Description private Attributesattributesprivate Value<?>bodyValueprivate InstrumentationScopeInfoinstrumentationScopeInfoprivate longobservedTimestampEpochNanosprivate Resourceresourceprivate Severityseverityprivate java.lang.StringseverityTextprivate SpanContextspanContextprivate longtimestampEpochNanosprivate inttotalAttributeCount
-
Constructor Summary
Constructors Constructor Description AutoValue_SdkLogRecordData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, java.lang.String severityText, Attributes attributes, int totalAttributeCount, Value<?> bodyValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)AttributesgetAttributes()Returns the attributes for this log, orAttributes.empty()if unset.Value<?>getBodyValue()Returns theValuerepresentation of the log body, of null if unset.InstrumentationScopeInfogetInstrumentationScopeInfo()Returns the instrumentation scope that generated this log.longgetObservedTimestampEpochNanos()Returns the timestamp at which the log record was observed, in epoch nanos.ResourcegetResource()Returns the resource of this log.SeveritygetSeverity()Returns the severity for this log, orSeverity.UNDEFINED_SEVERITY_NUMBERif unset.java.lang.StringgetSeverityText()Returns the severity text for this log, or null if unset.SpanContextgetSpanContext()Return the span context for this log, orSpanContext.getInvalid()if unset.longgetTimestampEpochNanos()Returns the timestamp at which the log record occurred, in epoch nanos.intgetTotalAttributeCount()Returns the total number of attributes that were recorded on this log.inthashCode()java.lang.StringtoString()-
Methods inherited from class io.opentelemetry.sdk.logs.SdkLogRecordData
create, getBody
-
-
-
-
Field Detail
-
resource
private final Resource resource
-
instrumentationScopeInfo
private final InstrumentationScopeInfo instrumentationScopeInfo
-
timestampEpochNanos
private final long timestampEpochNanos
-
observedTimestampEpochNanos
private final long observedTimestampEpochNanos
-
spanContext
private final SpanContext spanContext
-
severity
private final Severity severity
-
severityText
private final java.lang.String severityText
-
attributes
private final Attributes attributes
-
totalAttributeCount
private final int totalAttributeCount
-
bodyValue
private final Value<?> bodyValue
-
-
Constructor Detail
-
AutoValue_SdkLogRecordData
AutoValue_SdkLogRecordData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, @Nullable java.lang.String severityText, Attributes attributes, int totalAttributeCount, @Nullable Value<?> bodyValue)
-
-
Method Detail
-
getResource
public Resource getResource()
Description copied from interface:LogRecordDataReturns the resource of this log.
-
getInstrumentationScopeInfo
public InstrumentationScopeInfo 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
public SpanContext getSpanContext()
Description copied from interface:LogRecordDataReturn the span context for this log, orSpanContext.getInvalid()if unset.
-
getSeverity
public Severity getSeverity()
Description copied from interface:LogRecordDataReturns the severity for this log, orSeverity.UNDEFINED_SEVERITY_NUMBERif unset.
-
getSeverityText
@Nullable public java.lang.String getSeverityText()
Description copied from interface:LogRecordDataReturns the severity text for this log, or null if unset.
-
getAttributes
public Attributes 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
@Nullable public Value<?> getBodyValue()
Description copied from interface:LogRecordDataReturns theValuerepresentation of the log body, of null if unset.- Specified by:
getBodyValuein interfaceLogRecordData- Specified by:
getBodyValuein classSdkLogRecordData
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-