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:BodyReturns the type of theBody. -
asString
Description copied from interface:BodyReturns the String value of thisBody.If the log record body is some
ValueTypeother thanValueType.STRING, this returnsValue.asString(). Consumers should useLogRecordData.getBodyValue()instead.
-