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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Attributes
private final Value
<?> private final InstrumentationScopeInfo
private final long
private final Resource
private final Severity
private final String
private final SpanContext
private final long
private 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 TypeMethodDescriptionboolean
Returns the attributes for this log, orAttributes.empty()
if unset.Value
<?> Returns theValue
representation of the log body, of null if unset.Returns the instrumentation scope that generated this log.long
Returns 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_NUMBER
if unset.Returns the severity text for this log, or null if unset.Return the span context for this log, orSpanContext.getInvalid()
if unset.long
Returns the timestamp at which the log record occurred, in epoch nanos.int
Returns the total number of attributes that were recorded on this log.int
hashCode()
toString()
Methods inherited from class io.opentelemetry.sdk.logs.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:LogRecordData
Returns the resource of this log. -
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
Description copied from interface:LogRecordData
Return the span context for this log, orSpanContext.getInvalid()
if unset. -
getSeverity
Description copied from interface:LogRecordData
Returns the severity for this log, orSeverity.UNDEFINED_SEVERITY_NUMBER
if unset. -
getSeverityText
Description copied from interface:LogRecordData
Returns the severity text for this log, or null if unset. -
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
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
-
equals
-
hashCode
public int hashCode()
-