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 Attributes
attributes
private Value<?>
bodyValue
private InstrumentationScopeInfo
instrumentationScopeInfo
private long
observedTimestampEpochNanos
private Resource
resource
private Severity
severity
private java.lang.String
severityText
private SpanContext
spanContext
private long
timestampEpochNanos
private int
totalAttributeCount
-
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 boolean
equals(java.lang.Object o)
Attributes
getAttributes()
Returns the attributes for this log, orAttributes.empty()
if unset.Value<?>
getBodyValue()
Returns theValue
representation of the log body, of null if unset.InstrumentationScopeInfo
getInstrumentationScopeInfo()
Returns the instrumentation scope that generated this log.long
getObservedTimestampEpochNanos()
Returns the timestamp at which the log record was observed, in epoch nanos.Resource
getResource()
Returns the resource of this log.Severity
getSeverity()
Returns the severity for this log, orSeverity.UNDEFINED_SEVERITY_NUMBER
if unset.java.lang.String
getSeverityText()
Returns the severity text for this log, or null if unset.SpanContext
getSpanContext()
Return the span context for this log, orSpanContext.getInvalid()
if unset.long
getTimestampEpochNanos()
Returns the timestamp at which the log record occurred, in epoch nanos.int
getTotalAttributeCount()
Returns the total number of attributes that were recorded on this log.int
hashCode()
java.lang.String
toString()
-
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:LogRecordData
Returns the resource of this log.
-
getInstrumentationScopeInfo
public InstrumentationScopeInfo getInstrumentationScopeInfo()
Description copied from interface:LogRecordData
Returns the instrumentation scope that generated this log.
-
getTimestampEpochNanos
public long getTimestampEpochNanos()
Description copied from interface:LogRecordData
Returns the timestamp at which the log record occurred, in epoch nanos.
-
getObservedTimestampEpochNanos
public long getObservedTimestampEpochNanos()
Description copied from interface:LogRecordData
Returns the timestamp at which the log record was observed, in epoch nanos.
-
getSpanContext
public SpanContext getSpanContext()
Description copied from interface:LogRecordData
Return the span context for this log, orSpanContext.getInvalid()
if unset.
-
getSeverity
public Severity getSeverity()
Description copied from interface:LogRecordData
Returns the severity for this log, orSeverity.UNDEFINED_SEVERITY_NUMBER
if unset.
-
getSeverityText
@Nullable public java.lang.String getSeverityText()
Description copied from interface:LogRecordData
Returns the severity text for this log, or null if unset.
-
getAttributes
public Attributes getAttributes()
Description copied from interface:LogRecordData
Returns the attributes for this log, orAttributes.empty()
if unset.
-
getTotalAttributeCount
public int getTotalAttributeCount()
Description copied from interface:LogRecordData
Returns 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:LogRecordData
Returns theValue
representation of the log body, of null if unset.- Specified by:
getBodyValue
in interfaceLogRecordData
- Specified by:
getBodyValue
in classSdkLogRecordData
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-