Interface LogRecordData

    • Method Detail

      • getResource

        Resource getResource()
        Returns the resource of this log.
      • getInstrumentationScopeInfo

        InstrumentationScopeInfo getInstrumentationScopeInfo()
        Returns the instrumentation scope that generated this log.
      • getTimestampEpochNanos

        long getTimestampEpochNanos()
        Returns the timestamp at which the log record occurred, in epoch nanos.
      • getObservedTimestampEpochNanos

        long getObservedTimestampEpochNanos()
        Returns the timestamp at which the log record was observed, in epoch nanos.
      • getSeverityText

        @Nullable
        java.lang.String getSeverityText()
        Returns the severity text for this log, or null if unset.
      • getBodyValue

        @Nullable
        default Value<?> getBodyValue()
        Returns the Value representation of the log body, of null if unset.
        Since:
        1.42.0
      • getTotalAttributeCount

        int getTotalAttributeCount()
        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().