Package io.opentelemetry.sdk.logs.data
Class StringBody
java.lang.Object
io.opentelemetry.sdk.logs.data.StringBody
- All Implemented Interfaces:
Body
- Direct Known Subclasses:
AutoValue_StringBody
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StringBody
StringBody()
-
-
Method Details
-
create
-
getType
Description copied from interface:Body
Returns the type of theBody
. -
asString
Description copied from interface:Body
Returns the String value of thisBody
.If the log record body is some
ValueType
other thanValueType.STRING
, this returnsValue.asString()
. Consumers should useLogRecordData.getBodyValue()
instead.
-