From e38ebf5dc39565a15699ba104eb8b18e9c3a7596 Mon Sep 17 00:00:00 2001 From: jack-berg <34418638+jack-berg@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:42:51 -0600 Subject: [PATCH] Prepare 1.44.0 (#6861) --- CHANGELOG.md | 57 +++++++++++++++++++ .../sdk/metrics/SdkMeterProviderBuilder.java | 2 + .../io/opentelemetry/sdk/metrics/View.java | 6 +- .../sdk/metrics/ViewBuilder.java | 1 + .../export/CardinalityLimitSelector.java | 3 +- .../sdk/trace/data/ExceptionEventData.java | 6 +- 6 files changed, 71 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa3f1afb9ac..bef5be2c39b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,63 @@ ## Unreleased +### API + +* Fix ConfigUtil#getString ConcurrentModificationException + ([#6841](https://github.com/open-telemetry/opentelemetry-java/pull/6841)) + +### SDK + +#### Traces + +* Stabilize ExceptionEventData + ([#6795](https://github.com/open-telemetry/opentelemetry-java/pull/6795)) + +#### Metrics + +* Stabilize metric cardinality limits + ([#6794](https://github.com/open-telemetry/opentelemetry-java/pull/6794)) +* Refactor metrics internals to remove MeterSharedState + ([#6845](https://github.com/open-telemetry/opentelemetry-java/pull/6845)) + +#### Exporters + +* Add memory mode option to stdout exporters + ([#6774](https://github.com/open-telemetry/opentelemetry-java/pull/6774)) +* Log a warning if OTLP endpoint port is likely incorrect given the protocol + ([#6813](https://github.com/open-telemetry/opentelemetry-java/pull/6813)) +* Fix OTLP gRPC retry mechanism for unsuccessful HTTP responses + ([#6829](https://github.com/open-telemetry/opentelemetry-java/pull/6829)) +* Add ByteBuffer field type marshaling support + ([#6686](https://github.com/open-telemetry/opentelemetry-java/pull/6686)) +* Fix stdout exporter format by adding newline after each export + ([#6848](https://github.com/open-telemetry/opentelemetry-java/pull/6848)) +* Enable `reusuable_data` memory mode by default for `OtlpGrpc{Signal}Exporter`, + `OtlpHttp{Signal}Exporter`, `OtlpStdout{Signal}Exporter`, and `PrometheusHttpServer` + ([#6799](https://github.com/open-telemetry/opentelemetry-java/pull/6799)) + +#### Extension + +* Rebrand file configuration to declarative configuration in documentation + ([#6812](https://github.com/open-telemetry/opentelemetry-java/pull/6812)) +* Fix declarative config `file_format` validation + ([#6786](https://github.com/open-telemetry/opentelemetry-java/pull/6786)) +* Fix declarative config env substitution by disallowing '}' in default value + ([#6793](https://github.com/open-telemetry/opentelemetry-java/pull/6793)) +* Set declarative config default OTLP protocol to http/protobuf + ([#6800](https://github.com/open-telemetry/opentelemetry-java/pull/6800)) +* Stabilize autoconfigure disabling of resource keys via `otel.resource.disabled.keys` + ([#6809](https://github.com/open-telemetry/opentelemetry-java/pull/6809)) + +### Tooling + +* Run tests on Java 23 + ([#6825](https://github.com/open-telemetry/opentelemetry-java/pull/6825)) +* Test Windows in CI + ([#6824](https://github.com/open-telemetry/opentelemetry-java/pull/6824)) +* Add error prone checks for internal javadoc and private constructors + ([#6844](https://github.com/open-telemetry/opentelemetry-java/pull/6844)) + ## Version 1.43.0 (2024-10-11) ### API diff --git a/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/SdkMeterProviderBuilder.java b/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/SdkMeterProviderBuilder.java index 1a9e5b27a64..90d0c7a8fef 100644 --- a/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/SdkMeterProviderBuilder.java +++ b/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/SdkMeterProviderBuilder.java @@ -139,6 +139,8 @@ public SdkMeterProviderBuilder registerMetricReader(MetricReader reader) { * *

If {@link #registerMetricReader(MetricReader)} is used, the {@link * CardinalityLimitSelector#defaultCardinalityLimitSelector()} is used. + * + * @since 1.44.0 */ public SdkMeterProviderBuilder registerMetricReader( MetricReader reader, CardinalityLimitSelector cardinalityLimitSelector) { diff --git a/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/View.java b/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/View.java index be60974eaed..32f4309b600 100644 --- a/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/View.java +++ b/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/View.java @@ -60,7 +60,11 @@ static View create( /** Returns the attribute processor used for this view. */ abstract AttributesProcessor getAttributesProcessor(); - /** Returns the cardinality limit for this view. */ + /** + * Returns the cardinality limit for this view. + * + * @since 1.44.0 + */ public abstract int getCardinalityLimit(); @Override diff --git a/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/ViewBuilder.java b/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/ViewBuilder.java index af591c2ef62..87ce139f81b 100644 --- a/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/ViewBuilder.java +++ b/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/ViewBuilder.java @@ -114,6 +114,7 @@ ViewBuilder addAttributesProcessor(AttributesProcessor attributesProcessor) { * limit. * * @param cardinalityLimit the maximum number of series for a metric + * @since 1.44.0 */ public ViewBuilder setCardinalityLimit(int cardinalityLimit) { if (cardinalityLimit <= 0) { diff --git a/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/export/CardinalityLimitSelector.java b/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/export/CardinalityLimitSelector.java index ad0d4e717e2..43318b2ce0b 100644 --- a/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/export/CardinalityLimitSelector.java +++ b/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/export/CardinalityLimitSelector.java @@ -14,8 +14,7 @@ * function of {@link InstrumentType}. Register via {@link * SdkMeterProviderBuilder#registerMetricReader(MetricReader, CardinalityLimitSelector)}. * - *

This class is internal and is hence not for public use. Its APIs are unstable and can change - * at any time. + * @since 1.44.0 */ @FunctionalInterface public interface CardinalityLimitSelector { diff --git a/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/data/ExceptionEventData.java b/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/data/ExceptionEventData.java index f717a0aef00..c5170e2485a 100644 --- a/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/data/ExceptionEventData.java +++ b/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/data/ExceptionEventData.java @@ -8,7 +8,11 @@ import io.opentelemetry.api.common.Attributes; import javax.annotation.concurrent.Immutable; -/** Data representation of an event for a recorded exception. */ +/** + * Data representation of an event for a recorded exception. + * + * @since 1.44.0 + */ @Immutable public interface ExceptionEventData extends EventData {