Skip to content

Commit 0920d11

Browse files
authored
Prepare 1.46.0 (#7007)
1 parent 2e0b315 commit 0920d11

File tree

2 files changed

+77
-10
lines changed

2 files changed

+77
-10
lines changed

CHANGELOG.md

+33
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@
22

33
## Unreleased
44

5+
### SDK
6+
7+
* Remove unused dependencies, cleanup code after stabilizing Value
8+
([#6948](https://github.com/open-telemetry/opentelemetry-java/pull/6948))
9+
* Explicitly allow null into CompletableResultCode.failExceptionally()
10+
([#6963](https://github.com/open-telemetry/opentelemetry-java/pull/6963))
11+
12+
#### Traces
13+
14+
* Fix span setStatus
15+
([#6990](https://github.com/open-telemetry/opentelemetry-java/pull/6990))
16+
17+
#### Logs
18+
19+
* Add getters/accessors for readable fields in ReadWriteLogRecord.
20+
([#6924](https://github.com/open-telemetry/opentelemetry-java/pull/6924))
21+
22+
#### Exporters
23+
24+
* OTLP: Update to opentelemetry-proto 1.5
25+
([#6999](https://github.com/open-telemetry/opentelemetry-java/pull/6999))
26+
* Bugfix - OTLP: Ensure Serializer runtime exceptions are rethrown as IOException
27+
([#6969](https://github.com/open-telemetry/opentelemetry-java/pull/6969))
28+
* BREAKING - OTLP: Delete experimental OTLP authenticator concept.
29+
See [OTLP authentication docs](https://opentelemetry.io/docs/languages/java/sdk/#authentication)
30+
for supported solutions.
31+
([#6984](https://github.com/open-telemetry/opentelemetry-java/pull/6984))
32+
33+
#### Extensions
34+
35+
* BREAKING - Autoconfigure: Remove support for deprecated otel.experimental.resource.disabled.keys
36+
([#6931](https://github.com/open-telemetry/opentelemetry-java/pull/6931))
37+
538
## Version 1.45.0 (2024-12-06)
639

740
### API

sdk/logs/src/main/java/io/opentelemetry/sdk/logs/ReadWriteLogRecord.java

+44-10
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)