Package io.opentelemetry.sdk.logs
Class SdkLogRecordData
- java.lang.Object
-
- io.opentelemetry.sdk.logs.SdkLogRecordData
-
- All Implemented Interfaces:
LogRecordData
- Direct Known Subclasses:
AutoValue_SdkLogRecordData
@Immutable abstract class SdkLogRecordData extends java.lang.Object implements LogRecordData
-
-
Constructor Summary
Constructors Constructor Description SdkLogRecordData()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) static SdkLogRecordDatacreate(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long epochNanos, long observedEpochNanos, SpanContext spanContext, Severity severity, java.lang.String severityText, Value<?> body, Attributes attributes, int totalAttributeCount)BodygetBody()Returns the body for this log, orBody.empty()if unset.abstract Value<?>getBodyValue()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, wait
-
Methods inherited from interface io.opentelemetry.sdk.logs.data.LogRecordData
getAttributes, getInstrumentationScopeInfo, getObservedTimestampEpochNanos, getResource, getSeverity, getSeverityText, getSpanContext, getTimestampEpochNanos, getTotalAttributeCount
-
-
-
-
Method Detail
-
create
static SdkLogRecordData create(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long epochNanos, long observedEpochNanos, SpanContext spanContext, Severity severity, @Nullable java.lang.String severityText, @Nullable Value<?> body, Attributes attributes, int totalAttributeCount)
-
getBodyValue
@Nullable public abstract Value<?> getBodyValue()
Description copied from interface:LogRecordDataReturns theValuerepresentation of the log body, of null if unset.- Specified by:
getBodyValuein interfaceLogRecordData
-
getBody
public Body 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
-
-