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 SdkLogRecordData
create(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long epochNanos, long observedEpochNanos, SpanContext spanContext, Severity severity, java.lang.String severityText, Value<?> body, Attributes attributes, int totalAttributeCount)
Body
getBody()
Returns the body for this log, orBody.empty()
if unset.abstract Value<?>
getBodyValue()
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
-
-
-
-
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:LogRecordData
Returns theValue
representation of the log body, of null if unset.- Specified by:
getBodyValue
in interfaceLogRecordData
-
getBody
public Body 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
-
-