Class AutoValue_SdkLogRecordData

java.lang.Object
io.opentelemetry.sdk.logs.SdkLogRecordData
io.opentelemetry.sdk.logs.AutoValue_SdkLogRecordData
All Implemented Interfaces:
LogRecordData

@Immutable final class AutoValue_SdkLogRecordData extends SdkLogRecordData
  • Field Details

    • 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 String severityText
    • attributes

      private final Attributes attributes
    • totalAttributeCount

      private final int totalAttributeCount
    • bodyValue

      private final Value<?> bodyValue
  • Constructor Details

  • Method Details

    • 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, or SpanContext.getInvalid() if unset.
    • getSeverity

      public Severity getSeverity()
      Description copied from interface: LogRecordData
      Returns the severity for this log, or Severity.UNDEFINED_SEVERITY_NUMBER if unset.
    • getSeverityText

      @Nullable public 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, or Attributes.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 the Value representation of the log body, of null if unset.
      Specified by:
      getBodyValue in interface LogRecordData
      Specified by:
      getBodyValue in class SdkLogRecordData
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object