@@ -53,52 +53,86 @@ default ReadWriteLogRecord setAllAttributes(Attributes attributes) {
5353 LogRecordData toLogRecordData ();
5454
5555 /**
56- * Returns the value of a given attribute if it exists. This is the equivalent of calling
57- * getAttributes().get(key)
56+ * Returns the value of a given attribute if it exists. This is the equivalent of calling {@code
57+ * getAttributes().get(key)}.
58+ *
59+ * @since 1.46.0
5860 */
5961 @ Nullable
6062 default <T > T getAttribute (AttributeKey <T > key ) {
6163 return toLogRecordData ().getAttributes ().get (key );
6264 }
6365
64- /** Returns the instrumentation scope that generated this log. */
66+ /**
67+ * Returns the instrumentation scope that generated this log.
68+ *
69+ * @since 1.46.0
70+ */
6571 default InstrumentationScopeInfo getInstrumentationScopeInfo () {
6672 return toLogRecordData ().getInstrumentationScopeInfo ();
6773 }
6874
69- /** Returns the timestamp at which the log record occurred, in epoch nanos. */
75+ /**
76+ * Returns the timestamp at which the log record occurred, in epoch nanos.
77+ *
78+ * @since 1.46.0
79+ */
7080 default long getTimestampEpochNanos () {
7181 return toLogRecordData ().getTimestampEpochNanos ();
7282 }
7383
74- /** Returns the timestamp at which the log record was observed, in epoch nanos. */
84+ /**
85+ * Returns the timestamp at which the log record was observed, in epoch nanos.
86+ *
87+ * @since 1.46.0
88+ */
7589 default long getObservedTimestampEpochNanos () {
7690 return toLogRecordData ().getTimestampEpochNanos ();
7791 }
7892
79- /** Return the span context for this log, or {@link SpanContext#getInvalid()} if unset. */
93+ /**
94+ * Return the span context for this log, or {@link SpanContext#getInvalid()} if unset.
95+ *
96+ * @since 1.46.0
97+ */
8098 default SpanContext getSpanContext () {
8199 return toLogRecordData ().getSpanContext ();
82100 }
83101
84- /** Returns the severity for this log, or {@link Severity#UNDEFINED_SEVERITY_NUMBER} if unset. */
102+ /**
103+ * Returns the severity for this log, or {@link Severity#UNDEFINED_SEVERITY_NUMBER} if unset.
104+ *
105+ * @since 1.46.0
106+ */
85107 default Severity getSeverity () {
86108 return toLogRecordData ().getSeverity ();
87109 }
88110
89- /** Returns the severity text for this log, or null if unset. */
111+ /**
112+ * Returns the severity text for this log, or null if unset.
113+ *
114+ * @since 1.46.0
115+ */
90116 @ Nullable
91117 default String getSeverityText () {
92118 return toLogRecordData ().getSeverityText ();
93119 }
94120
95- /** Returns the {@link Value} representation of the log body, of null if unset. */
121+ /**
122+ * Returns the {@link Value} representation of the log body, of null if unset.
123+ *
124+ * @since 1.46.0
125+ */
96126 @ Nullable
97127 default Value <?> getBodyValue () {
98128 return toLogRecordData ().getBodyValue ();
99129 }
100130
101- /** Returns the attributes for this log, or {@link Attributes#empty()} if unset. */
131+ /**
132+ * Returns the attributes for this log, or {@link Attributes#empty()} if unset.
133+ *
134+ * @since 1.46.0
135+ */
102136 default Attributes getAttributes () {
103137 return toLogRecordData ().getAttributes ();
104138 }
0 commit comments