Package io.opentelemetry.sdk.logs
Class SdkLogRecordData
java.lang.Object
io.opentelemetry.sdk.logs.SdkLogRecordData
- All Implemented Interfaces:
LogRecordData
- Direct Known Subclasses:
AutoValue_SdkLogRecordData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static SdkLogRecordData
create
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long epochNanos, long observedEpochNanos, SpanContext spanContext, Severity severity, String severityText, Value<?> body, Attributes attributes, int totalAttributeCount) getBody()
Returns the body for this log, orBody.empty()
if unset.abstract Value
<?> Returns theValue
representation of the log body, of null if unset.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
-
Constructor Details
-
SdkLogRecordData
SdkLogRecordData()
-
-
Method Details
-
create
static SdkLogRecordData create(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long epochNanos, long observedEpochNanos, SpanContext spanContext, Severity severity, @Nullable String severityText, @Nullable Value<?> body, Attributes attributes, int totalAttributeCount) -
getBodyValue
Description copied from interface:LogRecordData
Returns theValue
representation of the log body, of null if unset.- Specified by:
getBodyValue
in interfaceLogRecordData
-
getBody
Description copied from interface:LogRecordData
Returns the body for this log, orBody.empty()
if unset.If the body has been set to some
ValueType
other thanValueType.STRING
, this will return aBody
with a string representation of theValue
.- Specified by:
getBody
in interfaceLogRecordData
-