Class LogRecord

java.lang.Object
io.opentelemetry.sdk.logging.data.LogRecord

public abstract class LogRecord extends Object
A LogRecord is an implementation of the OpenTelemetry logging model.
  • Constructor Details

    • LogRecord

      public LogRecord()
  • Method Details

    • builder

      public static LogRecordBuilder builder(io.opentelemetry.sdk.resources.Resource resource, io.opentelemetry.sdk.common.InstrumentationLibraryInfo instrumentationLibraryInfo)
    • getResource

      public abstract io.opentelemetry.sdk.resources.Resource getResource()
    • getInstrumentationLibraryInfo

      public abstract io.opentelemetry.sdk.common.InstrumentationLibraryInfo getInstrumentationLibraryInfo()
    • getTimeUnixNano

      public abstract long getTimeUnixNano()
    • getTraceId

      public abstract String getTraceId()
    • getSpanId

      public abstract String getSpanId()
    • getFlags

      public abstract int getFlags()
    • getSeverity

      public abstract LogRecord.Severity getSeverity()
    • getSeverityText

      @Nullable public abstract String getSeverityText()
    • getName

      @Nullable public abstract String getName()
    • getBody

      public abstract Body getBody()
    • getAttributes

      public abstract io.opentelemetry.api.common.Attributes getAttributes()