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 SdkLogRecordDatacreate(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 theValuerepresentation 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, waitMethods 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:LogRecordDataReturns theValuerepresentation of the log body, of null if unset.- Specified by:
getBodyValuein interfaceLogRecordData
-
getBody
Description copied from interface:LogRecordDataReturns the body for this log, orBody.empty()if unset.If the body has been set to some
ValueTypeother thanValueType.STRING, this will return aBodywith a string representation of theValue.- Specified by:
getBodyin interfaceLogRecordData
-