Class AutoValue_SdkLogRecordData

  • All Implemented Interfaces:
    LogRecordData

    @Immutable
    @Generated("com.google.auto.value.processor.AutoValueProcessor")
    final class AutoValue_SdkLogRecordData
    extends SdkLogRecordData
    • Field Detail

      • resource

        private final Resource resource
      • timestampEpochNanos

        private final long timestampEpochNanos
      • observedTimestampEpochNanos

        private final long observedTimestampEpochNanos
      • severity

        private final Severity severity
      • severityText

        private final java.lang.String severityText
      • 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.
      • getSeverityText

        @Nullable
        public java.lang.String getSeverityText()
        Description copied from interface: LogRecordData
        Returns the severity text for this log, or null 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().

      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object