Interface Body

  • All Known Implementing Classes:
    AutoValue_StringBody, EmptyBody, StringBody

    @Immutable
    @Deprecated
    public interface Body
    Deprecated.
    This represents all the possible values for a log message body. A Body can currently only have 1 type of values: String, represented through Body.Type. This class will likely be extended in the future to include additional body types supported by the OpenTelemetry log data model.
    Since:
    1.27.0
    • Method Detail

      • string

        static Body string​(java.lang.String stringValue)
        Deprecated.
        Returns an Body with a string value.
        Parameters:
        stringValue - The new value.
        Returns:
        a Body with a string value.
      • empty

        static Body empty()
        Deprecated.
        Return an empty Body.
        Returns:
        a Body without a value.