Skip to content

Commit 3a62b7a

Browse files
Prepare 1.62.0 (#8378)
Co-authored-by: jason plumb <75337021+breedx-splk@users.noreply.github.com>
1 parent 893910b commit 3a62b7a

13 files changed

Lines changed: 110 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,82 @@
22

33
## Unreleased
44

5+
### API
6+
7+
#### Context
8+
9+
* Apply limits to baggage entries for `W3CBaggagePropagator`, `OtTracePropagator`, `JaegerPropagator`
10+
([#8378](https://github.com/open-telemetry/opentelemetry-java/pull/8378))
11+
512
### SDK
613

14+
#### Traces
15+
16+
* Avoid `parentContext` allocation on span start for the common case
17+
([#8332](https://github.com/open-telemetry/opentelemetry-java/pull/8332))
18+
19+
#### Metrics
20+
21+
* Add `setMaxExportBatchSize` to `PeriodicMetricReaderBuilder`
22+
([#8296](https://github.com/open-telemetry/opentelemetry-java/pull/8296))
23+
* Fix `PeriodicMetricReader` shutdown race that could drop the final flush
24+
([#8299](https://github.com/open-telemetry/opentelemetry-java/pull/8299))
25+
26+
#### Exporters
27+
28+
* **BREAKING** Prometheus: Change default server host from `0.0.0.0` to `localhost`
29+
([#8298](https://github.com/open-telemetry/opentelemetry-java/pull/8298))
30+
* **BREAKING** Prometheus: Stop converting unit `"1"` to `"ratio"`
31+
([#8252](https://github.com/open-telemetry/opentelemetry-java/pull/8252))
32+
* OTLP: Fix null input handling in `StringEncoder`
33+
([#8312](https://github.com/open-telemetry/opentelemetry-java/pull/8312))
34+
* OTLP: Align proto field types and wire tag names in marshalers
35+
([#8293](https://github.com/open-telemetry/opentelemetry-java/pull/8293))
36+
* OTLP: Fix `MarshalerUtil` `sizeRepeatedString` calculation
37+
([#8284](https://github.com/open-telemetry/opentelemetry-java/pull/8284))
38+
* OTLP: Bound `JdkHttpSender` thread pool size to prevent unbounded thread creation
39+
([#8276](https://github.com/open-telemetry/opentelemetry-java/pull/8276))
40+
* OTLP Profiles: Split profiles data model into separate `sdk-profiles` and JFR shim modules
41+
([#8207](https://github.com/open-telemetry/opentelemetry-java/pull/8207))
42+
* OTLP Profiles: Publish alpha release of `opentelemetry-sdk-profiles` and
43+
`opentelemetry-exporter-otlp-profiles`
44+
([#8351](https://github.com/open-telemetry/opentelemetry-java/pull/8351))
45+
46+
#### Extensions
47+
48+
* **BREAKING** Declarative config: Extract to new `opentelemetry-sdk-extension-declarative-config`
49+
artifact with new package `io.opentelemetry.sdk.autoconfigure.declarativeconfig`
50+
([#8265](https://github.com/open-telemetry/opentelemetry-java/pull/8265))
51+
* Autoconfigure: Add file size validation in `OtlpConfigUtil` to avoid unsafe cast to `int`
52+
([#8287](https://github.com/open-telemetry/opentelemetry-java/pull/8287))
53+
* Declarative config: Fix collection fields to not be initialized to empty by default
54+
([#8356](https://github.com/open-telemetry/opentelemetry-java/pull/8356))
55+
* Incubator: Add `EventToSpanEventBridge` to bridge log-based events to span events
56+
([#8372](https://github.com/open-telemetry/opentelemetry-java/pull/8372))
57+
758
#### Testing
859

60+
* Add `@Nullable` to `equalTo` value argument in `OpenTelemetryAssertions`
61+
([#8301](https://github.com/open-telemetry/opentelemetry-java/pull/8301))
962
* Add `hasValueSatisfying` to `LongPointAssert` and `DoublePointAssert` for fuzzy value matching
63+
([#8328](https://github.com/open-telemetry/opentelemetry-java/pull/8328))
1064
* Add `containsPointsSatisfying` to metric data asserts for "each given assertion must be
1165
satisfied by at least one point, extras allowed" checks on sum, gauge, histogram, exponential
1266
histogram, and summary data
67+
([#8329](https://github.com/open-telemetry/opentelemetry-java/pull/8329))
68+
69+
### Project tooling
70+
71+
* Add initial OSGi support
72+
([#7964](https://github.com/open-telemetry/opentelemetry-java/pull/7964))
73+
* Promote `ApiUsageLogger` to `opentelemetry-common` public API
74+
([#8318](https://github.com/open-telemetry/opentelemetry-java/pull/8318))
75+
* Establish exception logging guidelines and fix inconsistent patterns across exporters and SDK
76+
([#8231](https://github.com/open-telemetry/opentelemetry-java/pull/8231))
77+
* Add `*.impl.*` package naming convention for internal code with japicmp compatibility
78+
([#8325](https://github.com/open-telemetry/opentelemetry-java/pull/8325))
79+
* Add Sonatype dependency audit to build
80+
([#8365](https://github.com/open-telemetry/opentelemetry-java/pull/8365))
1381

1482
## Version 1.61.0 (2026-04-10)
1583

@@ -20,8 +88,6 @@
2088

2189
#### Incubating
2290

23-
* Add support for configuring `setMaxExportBatchSize` in `PeriodicMetricReader` ([#8296](https://github.com/open-telemetry/opentelemetry-java/pull/8296))
24-
2591
* **BREAKING** Update `EnvironmentGetter` and `EnvironmentSetter` key normalization to reflect spec
2692
changes
2793
([#8233](https://github.com/open-telemetry/opentelemetry-java/pull/8233))

common/src/main/java/io/opentelemetry/common/impl/ApiUsageLogger.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
*
2626
* <p>This class is not intended for use by application developers. Its API is stable and will not
2727
* be changed or removed in a backwards-incompatible manner.
28+
*
29+
* @since 1.62.0
2830
*/
2931
public final class ApiUsageLogger {
3032

docs/knowledge/api-design.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ unambiguously.
8080
### Runtime / instrumentation-time boundaries (Span methods, metric recordings, log builders)
8181

8282
Do **not** throw. Log the violation via
83-
[`ApiUsageLogger`](../../common/src/main/java/io/opentelemetry/common/ApiUsageLogger.java)
83+
[`ApiUsageLogger`](../../common/src/main/java/io/opentelemetry/common/impl/ApiUsageLogger.java)
8484
which logs at `FINEST` with a stack trace so the offending call site is visible — then degrade
8585
gracefully (return `this`, an empty/noop result, or substitute a safe default such as
8686
`Attributes.empty()` or `Context.current()`):

docs/knowledge/build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ All tasks can be scoped to a single module by prefixing with the module path:
2525

2626
`./gradlew build` and `./gradlew check` both depend on the `jApiCmp` task, which compares the
2727
locally-built jars against the latest release and writes diffs to `docs/apidiffs/current_vs_latest/`.
28-
Include any changes to those files in your PR. See [api-stability.md](api-stability.md#japicmp)
28+
Include any changes to those files in your PR. See [api-design.md](api-design.md#japicmp)
2929
for details.
3030

3131
If your branch is not up to date with `main`, `jApiCmp` may produce a diff that reflects changes

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public DoubleGaugeAssert hasPointsSatisfying(
5050
* Asserts that for each given assertion, at least one point in the gauge satisfies it. Extra
5151
* points that match none of the assertions are allowed, and a single point may satisfy multiple
5252
* assertions.
53+
*
54+
* @since 1.62.0
5355
*/
5456
@SafeVarargs
5557
@SuppressWarnings("varargs")
@@ -62,6 +64,8 @@ public final DoubleGaugeAssert containsPointsSatisfying(
6264
* Asserts that for each given assertion, at least one point in the gauge satisfies it. Extra
6365
* points that match none of the assertions are allowed, and a single point may satisfy multiple
6466
* assertions.
67+
*
68+
* @since 1.62.0
6569
*/
6670
public DoubleGaugeAssert containsPointsSatisfying(
6771
Iterable<? extends Consumer<DoublePointAssert>> assertions) {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ public DoublePointAssert hasValue(double expected) {
3434
return this;
3535
}
3636

37-
/** Asserts the point's value satisfies the given assertion. */
37+
/**
38+
* Asserts the point's value satisfies the given assertion.
39+
*
40+
* @since 1.62.0
41+
*/
3842
public DoublePointAssert hasValueSatisfying(Consumer<AbstractDoubleAssert<?>> valueAssertion) {
3943
isNotNull();
4044
valueAssertion.accept(Assertions.assertThat(actual.getValue()).as("value"));

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ public DoubleSumAssert hasPointsSatisfying(
9393
* Asserts that for each given assertion, at least one point in the sum satisfies it. Extra points
9494
* that match none of the assertions are allowed, and a single point may satisfy multiple
9595
* assertions.
96+
*
97+
* @since 1.62.0
9698
*/
9799
@SafeVarargs
98100
@SuppressWarnings("varargs")
@@ -104,6 +106,8 @@ public final DoubleSumAssert containsPointsSatisfying(Consumer<DoublePointAssert
104106
* Asserts that for each given assertion, at least one point in the sum satisfies it. Extra points
105107
* that match none of the assertions are allowed, and a single point may satisfy multiple
106108
* assertions.
109+
*
110+
* @since 1.62.0
107111
*/
108112
public DoubleSumAssert containsPointsSatisfying(
109113
Iterable<? extends Consumer<DoublePointAssert>> assertions) {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public ExponentialHistogramAssert hasPointsSatisfying(
7979
* Asserts that for each given assertion, at least one point in the exponential histogram
8080
* satisfies it. Extra points that match none of the assertions are allowed, and a single point
8181
* may satisfy multiple assertions.
82+
*
83+
* @since 1.62.0
8284
*/
8385
@SafeVarargs
8486
@SuppressWarnings("varargs")
@@ -91,6 +93,8 @@ public final ExponentialHistogramAssert containsPointsSatisfying(
9193
* Asserts that for each given assertion, at least one point in the exponential histogram
9294
* satisfies it. Extra points that match none of the assertions are allowed, and a single point
9395
* may satisfy multiple assertions.
96+
*
97+
* @since 1.62.0
9498
*/
9599
public ExponentialHistogramAssert containsPointsSatisfying(
96100
Iterable<? extends Consumer<ExponentialHistogramPointAssert>> assertions) {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ public HistogramAssert hasPointsSatisfying(
7777
* Asserts that for each given assertion, at least one point in the histogram satisfies it. Extra
7878
* points that match none of the assertions are allowed, and a single point may satisfy multiple
7979
* assertions.
80+
*
81+
* @since 1.62.0
8082
*/
8183
@SafeVarargs
8284
@SuppressWarnings("varargs")
@@ -89,6 +91,8 @@ public final HistogramAssert containsPointsSatisfying(
8991
* Asserts that for each given assertion, at least one point in the histogram satisfies it. Extra
9092
* points that match none of the assertions are allowed, and a single point may satisfy multiple
9193
* assertions.
94+
*
95+
* @since 1.62.0
9296
*/
9397
public HistogramAssert containsPointsSatisfying(
9498
Iterable<? extends Consumer<HistogramPointAssert>> assertions) {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public LongGaugeAssert hasPointsSatisfying(
4949
* Asserts that for each given assertion, at least one point in the gauge satisfies it. Extra
5050
* points that match none of the assertions are allowed, and a single point may satisfy multiple
5151
* assertions.
52+
*
53+
* @since 1.62.0
5254
*/
5355
@SafeVarargs
5456
@SuppressWarnings("varargs")
@@ -60,6 +62,8 @@ public final LongGaugeAssert containsPointsSatisfying(Consumer<LongPointAssert>.
6062
* Asserts that for each given assertion, at least one point in the gauge satisfies it. Extra
6163
* points that match none of the assertions are allowed, and a single point may satisfy multiple
6264
* assertions.
65+
*
66+
* @since 1.62.0
6367
*/
6468
public LongGaugeAssert containsPointsSatisfying(
6569
Iterable<? extends Consumer<LongPointAssert>> assertions) {

0 commit comments

Comments
 (0)