Class TestLogRecordData

java.lang.Object
io.opentelemetry.sdk.testing.logs.TestLogRecordData
All Implemented Interfaces:
io.opentelemetry.sdk.logs.data.LogRecordData

@Immutable public abstract class TestLogRecordData extends Object implements io.opentelemetry.sdk.logs.data.LogRecordData
Immutable representation of LogRecordData.
Since:
1.27.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    A Builder class for TestLogRecordData.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new Builder for creating an LogRecordData instance.
    io.opentelemetry.sdk.logs.data.Body
    Deprecated.
    abstract io.opentelemetry.api.common.Value<?>
    abstract String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.opentelemetry.sdk.logs.data.LogRecordData

    getAttributes, getInstrumentationScopeInfo, getObservedTimestampEpochNanos, getResource, getSeverity, getSeverityText, getSpanContext, getTimestampEpochNanos, getTotalAttributeCount
  • Method Details

    • builder

      public static TestLogRecordData.Builder builder()
      Creates a new Builder for creating an LogRecordData instance.
    • getBody

      @Deprecated public io.opentelemetry.sdk.logs.data.Body getBody()
      Deprecated.
      Specified by:
      getBody in interface io.opentelemetry.sdk.logs.data.LogRecordData
    • getBodyValue

      @Nullable public abstract io.opentelemetry.api.common.Value<?> getBodyValue()
      Specified by:
      getBodyValue in interface io.opentelemetry.sdk.logs.data.LogRecordData
      Since:
      1.42.0
    • getEventName

      @Nullable public abstract String getEventName()
      Specified by:
      getEventName in interface io.opentelemetry.sdk.logs.data.LogRecordData