Skip to content

Commit 99857c6

Browse files
authored
Prepare for 1.60.0 release (#8146)
1 parent 50f5607 commit 99857c6

File tree

9 files changed

+133
-3
lines changed

9 files changed

+133
-3
lines changed

CHANGELOG.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,112 @@
22

33
## Unreleased
44

5+
### API
6+
7+
* Support W3C trace context random flag
8+
([#8012](https://github.com/open-telemetry/opentelemetry-java/pull/8012))
9+
* Clarify that `SpanBuilder.setAttribute` allows null values
10+
([#8072](https://github.com/open-telemetry/opentelemetry-java/pull/8072))
11+
12+
#### Incubating
13+
14+
* Implement environment variable context propagation carriers
15+
([#8074](https://github.com/open-telemetry/opentelemetry-java/pull/8074))
16+
* Deprecate `ExtendedAttributes`, `ExtendedAttributeKey`, `ExtendedAttributeType`,
17+
`ExtendedAttributesBuilder`
18+
([#8060](https://github.com/open-telemetry/opentelemetry-java/pull/8060))
19+
* Deprecate `peerServiceMapping` accessor from `InstrumentationConfigUtil`
20+
([#8088](https://github.com/open-telemetry/opentelemetry-java/pull/8088))
21+
22+
### SDK
23+
24+
#### Traces
25+
26+
* Disable warning when using `TraceIdRatioBasedSampler` as root sampler
27+
([#8065](https://github.com/open-telemetry/opentelemetry-java/pull/8065))
28+
* User-supplied attributes take precedence over exception-derived attributes
29+
([#7993](https://github.com/open-telemetry/opentelemetry-java/pull/7993))
30+
* Exclude META-INF/maven from traces SDK shaded dependencies
31+
([#8096](https://github.com/open-telemetry/opentelemetry-java/pull/8096))
32+
* Fix inverted condition in LegacySpanProcessorInstrumentation#finishSpans
33+
([#8145](https://github.com/open-telemetry/opentelemetry-java/pull/8145))
34+
35+
#### Metrics
36+
37+
* Split out cumulative vs. delta storage
38+
([#8015](https://github.com/open-telemetry/opentelemetry-java/pull/8015))
39+
* Add metrics for `PeriodicMetricReader`
40+
([#8038](https://github.com/open-telemetry/opentelemetry-java/pull/8038))
41+
* Allow configuring min/max in histograms
42+
([#8095](https://github.com/open-telemetry/opentelemetry-java/pull/8095))
43+
* Remove deprecated `otel.experimental.metrics.cardinality.limit` property
44+
([#8124](https://github.com/open-telemetry/opentelemetry-java/pull/8124))
45+
46+
#### Logs
47+
48+
* Stabilize `LogRecordBuilder.setException`
49+
([#8089](https://github.com/open-telemetry/opentelemetry-java/pull/8089))
50+
* Clarify `setTimestamp` javadoc for event timestamp behavior
51+
([#8104](https://github.com/open-telemetry/opentelemetry-java/pull/8104))
52+
53+
#### Exporters
54+
55+
* OTLP: Fix marshaling for empty string attributes
56+
([#8014](https://github.com/open-telemetry/opentelemetry-java/pull/8014))
57+
* Prometheus: Update Prometheus client to 1.5.0
58+
([#8080](https://github.com/open-telemetry/opentelemetry-java/pull/8080))
59+
* OTLP: Serialize exponential histogram sum as optional double
60+
([#8107](https://github.com/open-telemetry/opentelemetry-java/pull/8107))
61+
* OTLP: Use `KeyManagerFactory.getDefaultAlgorithm()` in `TlsUtil.keyManager()`
62+
([#8122](https://github.com/open-telemetry/opentelemetry-java/pull/8122))
63+
* OTLP: Ensure proto serializer idCache is cleared when exception is thrown
64+
([#8147](https://github.com/open-telemetry/opentelemetry-java/pull/8147))
65+
66+
#### Extensions
67+
68+
* Autoconfigure: Decode plus sign in resource attributes
69+
([#8059](https://github.com/open-telemetry/opentelemetry-java/pull/8059))
70+
* Declarative config: update to 1.0 schema
71+
([#8123](https://github.com/open-telemetry/opentelemetry-java/pull/8123))
72+
* Declarative config: add support for setting schema URL
73+
([#8028](https://github.com/open-telemetry/opentelemetry-java/pull/8028))
74+
* Declarative config: add version mismatch warning
75+
([#8069](https://github.com/open-telemetry/opentelemetry-java/pull/8069))
76+
* Declarative config: cache component providers in `DeclarativeConfigContext`
77+
([#8070](https://github.com/open-telemetry/opentelemetry-java/pull/8070))
78+
* Declarative config: add system property substitution
79+
([#8073](https://github.com/open-telemetry/opentelemetry-java/pull/8073))
80+
* Declarative config: add exporter customizers
81+
([#8081](https://github.com/open-telemetry/opentelemetry-java/pull/8081))
82+
* Declarative config: add support for setting internal telemetry version
83+
([#8045](https://github.com/open-telemetry/opentelemetry-java/pull/8045))
84+
* Deprecate View File Configuration mechanism
85+
([#8133](https://github.com/open-telemetry/opentelemetry-java/pull/8133))
86+
* Autoconfigure: add property to allow autoconfiguration of SDK telemetry version
87+
([#8037](https://github.com/open-telemetry/opentelemetry-java/pull/8037))
88+
* Jaeger remote sampler: refactor to leverage senders
89+
([#8046](https://github.com/open-telemetry/opentelemetry-java/pull/8046))
90+
* Declarative config: document ObjectMapper config
91+
([#8075](https://github.com/open-telemetry/opentelemetry-java/pull/8075))
92+
* Declarative config: Remove unchecked warning
93+
([#8090](https://github.com/open-telemetry/opentelemetry-java/pull/8090))
94+
95+
### Project tooling
96+
97+
* Add architecture test to detect usage of shared internal code
98+
([#6978](https://github.com/open-telemetry/opentelemetry-java/pull/6978))
99+
* Replace Xlint deprecation check with custom error-prone check
100+
([#8061](https://github.com/open-telemetry/opentelemetry-java/pull/8061))
101+
* Enable error-prone's UnnecessarilyFullyQualified check
102+
([#8078](https://github.com/open-telemetry/opentelemetry-java/pull/8078))
103+
* Small refactoring to make safety clearer
104+
([#8083](https://github.com/open-telemetry/opentelemetry-java/pull/8083))
105+
* Rework span record benchmark and publish results
106+
([#8031](https://github.com/open-telemetry/opentelemetry-java/pull/8031))
107+
* Add `LogRecordBenchmark`
108+
([#8106](https://github.com/open-telemetry/opentelemetry-java/pull/8106),
109+
[#8117](https://github.com/open-telemetry/opentelemetry-java/pull/8117))
110+
5111
## Version 1.59.0 (2026-02-06)
6112

7113
### API

api/all/src/main/java/io/opentelemetry/api/logs/LogRecordBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ default LogRecordBuilder setEventName(String eventName) {
211211
/**
212212
* Set {@code exception.type}, {@code exception.message}, and {@code exception.stacktrace}
213213
* attributes based on the {@code throwable}.
214+
*
215+
* @since 1.60.0
214216
*/
215217
default LogRecordBuilder setException(Throwable throwable) {
216218
return this;

api/all/src/main/java/io/opentelemetry/api/trace/TraceFlags.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ static TraceFlags fromByte(byte traceFlagsByte) {
8383
*
8484
* @return {@code true} if the randomTraceId bit is on for this {@link TraceFlags}, otherwise
8585
* {@code false}.
86+
* @since 1.60.0
8687
*/
8788
default boolean isTraceIdRandom() {
8889
return false;
@@ -102,7 +103,11 @@ default boolean isTraceIdRandom() {
102103
*/
103104
byte asByte();
104105

105-
/** Returns an instance of {@link TraceFlagsBuilder} for {@link TraceFlags}. */
106+
/**
107+
* Returns an instance of {@link TraceFlagsBuilder} for {@link TraceFlags}.
108+
*
109+
* @since 1.60.0
110+
*/
106111
static TraceFlagsBuilder builder() {
107112
return ImmutableTraceFlags.DEFAULT;
108113
}

api/all/src/main/java/io/opentelemetry/api/trace/TraceFlagsBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
*
1818
* <p>Implementation note: no new objects are created by the methods defined by this interface when
1919
* the default implementation, {@link ImmutableTraceFlags}, is used.
20+
*
21+
* @since 1.60.0
2022
*/
2123
public interface TraceFlagsBuilder {
2224

sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/Aggregation.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ static Aggregation explicitBucketHistogram(List<Double> bucketBoundaries) {
7777
* Aggregates measurements into an explicit bucket {@link MetricDataType#HISTOGRAM}.
7878
*
7979
* @param options histogram options
80+
* @since 1.60.0
8081
*/
8182
static Aggregation explicitBucketHistogram(ExplicitBucketHistogramOptions options) {
8283
List<Double> boundaries = options.getBucketBoundaries();
@@ -122,6 +123,7 @@ static Aggregation base2ExponentialBucketHistogram(int maxBuckets, int maxScale)
122123
* Aggregates measurements into a base-2 {@link MetricDataType#EXPONENTIAL_HISTOGRAM}.
123124
*
124125
* @param options histogram options
126+
* @since 1.60.0
125127
*/
126128
static Aggregation base2ExponentialBucketHistogram(Base2ExponentialHistogramOptions options) {
127129
return Base2ExponentialHistogramAggregation.create(

sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/Base2ExponentialHistogramOptions.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* Options for configuring base-2 exponential histogram aggregations.
1515
*
1616
* @see Aggregation#base2ExponentialBucketHistogram(Base2ExponentialHistogramOptions)
17+
* @since 1.60.0
1718
*/
1819
@AutoValue
1920
@Immutable
@@ -57,7 +58,11 @@ public static Builder builder() {
5758
/** Returns whether min and max values should be recorded. Defaults to {@code true}. */
5859
public abstract boolean getRecordMinMax();
5960

60-
/** Builder for {@link Base2ExponentialHistogramOptions}. */
61+
/**
62+
* Builder for {@link Base2ExponentialHistogramOptions}.
63+
*
64+
* @since 1.60.0
65+
*/
6166
@AutoValue.Builder
6267
public abstract static class Builder {
6368

sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/ExplicitBucketHistogramOptions.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* Options for configuring explicit bucket histogram aggregations.
1515
*
1616
* @see Aggregation#explicitBucketHistogram(ExplicitBucketHistogramOptions)
17+
* @since 1.60.0
1718
*/
1819
@AutoValue
1920
@Immutable
@@ -46,7 +47,11 @@ public static Builder builder() {
4647
/** Returns whether min and max values should be recorded. Defaults to {@code true}. */
4748
public abstract boolean getRecordMinMax();
4849

49-
/** Builder for {@link ExplicitBucketHistogramOptions}. */
50+
/**
51+
* Builder for {@link ExplicitBucketHistogramOptions}.
52+
*
53+
* @since 1.60.0
54+
*/
5055
@AutoValue.Builder
5156
public abstract static class Builder {
5257

sdk/testing/src/main/java/io/opentelemetry/sdk/testing/assertj/LogRecordDataAssert.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ public <T> LogRecordDataAssert hasBodyField(AttributeKey<T> key, T value) {
360360
/**
361361
* Asserts the log has exception attributes for the given {@link Throwable}. The stack trace is
362362
* not matched against.
363+
*
364+
* @since 1.60.0
363365
*/
364366
@SuppressWarnings("NullAway")
365367
public LogRecordDataAssert hasException(Throwable exception) {

sdk/trace/src/main/java/io/opentelemetry/sdk/trace/IdGenerator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ static IdGenerator random() {
4646
* "https://www.w3.org/TR/trace-context-2/#random-trace-id-flag">Random TraceId flag</a>.
4747
*
4848
* @return true if the generated TraceIds are random
49+
* @since 1.60.0
4950
*/
5051
default boolean generatesRandomTraceIds() {
5152
return false;

0 commit comments

Comments
 (0)