diff --git a/CHANGELOG.md b/CHANGELOG.md index 4781926209..889669cc17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,34 @@ ## Unreleased +### SDK + +#### Traces + +* Lazily initialize the container for events in the SDK Span implementation + ([#6244](https://github.com/open-telemetry/opentelemetry-java/pull/6244)) + +#### Exporters + +* Add basic proxy configuration to OtlpHttp{Signal}Exporters + ([#6270](https://github.com/open-telemetry/opentelemetry-java/pull/6270)) +* Add connectTimeout configuration option OtlpGrpc{Signal}Exporters + ([#6079](https://github.com/open-telemetry/opentelemetry-java/pull/6079)) + +#### Extensions + +* Add ComponentLoader to autoconfigure support more scenarios + ([#6217](https://github.com/open-telemetry/opentelemetry-java/pull/6217)) +* Added MetricReader customizer for AutoConfiguredOpenTelemetrySdkBuilder + ([#6231](https://github.com/open-telemetry/opentelemetry-java/pull/6231)) +* Return AutoConfiguredOpenTelemetrySdkBuilder instead of the base type + ([#6248](https://github.com/open-telemetry/opentelemetry-java/pull/6248)) + +### Tooling + +* Add note about draft PRs to CONTRIBUTING.md + ([#6247](https://github.com/open-telemetry/opentelemetry-java/pull/6247)) + ## Version 1.35.0 (2024-02-09) **NOTE:** The `opentelemetry-exporter-jaeger` and `opentelemetry-exporter-jaeger-thift` artifacts diff --git a/docs/apidiffs/current_vs_latest/opentelemetry-exporter-jaeger-thrift.txt b/docs/apidiffs/current_vs_latest/opentelemetry-exporter-jaeger-thrift.txt deleted file mode 100644 index df26146497..0000000000 --- a/docs/apidiffs/current_vs_latest/opentelemetry-exporter-jaeger-thrift.txt +++ /dev/null @@ -1,2 +0,0 @@ -Comparing source compatibility of against -No changes. \ No newline at end of file diff --git a/docs/apidiffs/current_vs_latest/opentelemetry-exporter-jaeger.txt b/docs/apidiffs/current_vs_latest/opentelemetry-exporter-jaeger.txt deleted file mode 100644 index df26146497..0000000000 --- a/docs/apidiffs/current_vs_latest/opentelemetry-exporter-jaeger.txt +++ /dev/null @@ -1,2 +0,0 @@ -Comparing source compatibility of against -No changes. \ No newline at end of file diff --git a/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/logs/OtlpHttpLogRecordExporterBuilder.java b/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/logs/OtlpHttpLogRecordExporterBuilder.java index e81f290bc7..4d330c4254 100644 --- a/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/logs/OtlpHttpLogRecordExporterBuilder.java +++ b/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/logs/OtlpHttpLogRecordExporterBuilder.java @@ -172,7 +172,11 @@ public final class OtlpHttpLogRecordExporterBuilder { return this; } - /** Sets the proxy options. Proxying is disabled by default. */ + /** + * Sets the proxy options. Proxying is disabled by default. + * + * @since 1.36.0 + */ public OtlpHttpLogRecordExporterBuilder setProxyOptions(ProxyOptions proxyOptions) { requireNonNull(proxyOptions, "proxyOptions"); delegate.setProxyOptions(proxyOptions); diff --git a/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/metrics/OtlpHttpMetricExporterBuilder.java b/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/metrics/OtlpHttpMetricExporterBuilder.java index 0ccbbef035..8fa21d1aa5 100644 --- a/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/metrics/OtlpHttpMetricExporterBuilder.java +++ b/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/metrics/OtlpHttpMetricExporterBuilder.java @@ -216,7 +216,11 @@ public final class OtlpHttpMetricExporterBuilder { return this; } - /** Sets the proxy options. Proxying is disabled by default. */ + /** + * Sets the proxy options. Proxying is disabled by default. + * + * @since 1.36.0 + */ public OtlpHttpMetricExporterBuilder setProxyOptions(ProxyOptions proxyOptions) { requireNonNull(proxyOptions, "proxyOptions"); delegate.setProxyOptions(proxyOptions); diff --git a/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/trace/OtlpHttpSpanExporterBuilder.java b/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/trace/OtlpHttpSpanExporterBuilder.java index a9b148739a..e5039c6190 100644 --- a/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/trace/OtlpHttpSpanExporterBuilder.java +++ b/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/trace/OtlpHttpSpanExporterBuilder.java @@ -173,7 +173,11 @@ public final class OtlpHttpSpanExporterBuilder { return this; } - /** Sets the proxy options. Proxying is disabled by default. */ + /** + * Sets the proxy options. Proxying is disabled by default. + * + * @since 1.36.0 + */ public OtlpHttpSpanExporterBuilder setProxy(ProxyOptions proxyOptions) { requireNonNull(proxyOptions, "proxyOptions"); delegate.setProxyOptions(proxyOptions); diff --git a/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/logs/OtlpGrpcLogRecordExporterBuilder.java b/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/logs/OtlpGrpcLogRecordExporterBuilder.java index 9b6cee8291..df5f476958 100644 --- a/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/logs/OtlpGrpcLogRecordExporterBuilder.java +++ b/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/logs/OtlpGrpcLogRecordExporterBuilder.java @@ -104,6 +104,8 @@ public final class OtlpGrpcLogRecordExporterBuilder { /** * Sets the maximum time to wait for new connections to be established. If unset, defaults to * {@value GrpcExporterBuilder#DEFAULT_CONNECT_TIMEOUT_SECS}s. + * + * @since 1.36.0 */ public OtlpGrpcLogRecordExporterBuilder setConnectTimeout(long timeout, TimeUnit unit) { requireNonNull(unit, "unit"); @@ -115,6 +117,8 @@ public final class OtlpGrpcLogRecordExporterBuilder { /** * Sets the maximum time to wait for new connections to be established. If unset, defaults to * {@value GrpcExporterBuilder#DEFAULT_CONNECT_TIMEOUT_SECS}s. + * + * @since 1.36.0 */ public OtlpGrpcLogRecordExporterBuilder setConnectTimeout(Duration timeout) { requireNonNull(timeout, "timeout"); diff --git a/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/metrics/OtlpGrpcMetricExporterBuilder.java b/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/metrics/OtlpGrpcMetricExporterBuilder.java index 4b2ebd2225..2fc86bab6b 100644 --- a/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/metrics/OtlpGrpcMetricExporterBuilder.java +++ b/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/metrics/OtlpGrpcMetricExporterBuilder.java @@ -116,6 +116,8 @@ public final class OtlpGrpcMetricExporterBuilder { /** * Sets the maximum time to wait for new connections to be established. If unset, defaults to * {@value GrpcExporterBuilder#DEFAULT_CONNECT_TIMEOUT_SECS}s. + * + * @since 1.36.0 */ public OtlpGrpcMetricExporterBuilder setConnectTimeout(long timeout, TimeUnit unit) { requireNonNull(unit, "unit"); @@ -127,6 +129,8 @@ public final class OtlpGrpcMetricExporterBuilder { /** * Sets the maximum time to wait for new connections to be established. If unset, defaults to * {@value GrpcExporterBuilder#DEFAULT_CONNECT_TIMEOUT_SECS}s. + * + * @since 1.36.0 */ public OtlpGrpcMetricExporterBuilder setConnectTimeout(Duration timeout) { requireNonNull(timeout, "timeout"); diff --git a/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/trace/OtlpGrpcSpanExporterBuilder.java b/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/trace/OtlpGrpcSpanExporterBuilder.java index b04f4195d5..9f48078b70 100644 --- a/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/trace/OtlpGrpcSpanExporterBuilder.java +++ b/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/trace/OtlpGrpcSpanExporterBuilder.java @@ -100,6 +100,8 @@ public final class OtlpGrpcSpanExporterBuilder { /** * Sets the maximum time to wait for new connections to be established. If unset, defaults to * {@value GrpcExporterBuilder#DEFAULT_CONNECT_TIMEOUT_SECS}s. + * + * @since 1.36.0 */ public OtlpGrpcSpanExporterBuilder setConnectTimeout(long timeout, TimeUnit unit) { requireNonNull(unit, "unit"); @@ -111,6 +113,8 @@ public final class OtlpGrpcSpanExporterBuilder { /** * Sets the maximum time to wait for new connections to be established. If unset, defaults to * {@value GrpcExporterBuilder#DEFAULT_CONNECT_TIMEOUT_SECS}s. + * + * @since 1.36.0 */ public OtlpGrpcSpanExporterBuilder setConnectTimeout(Duration timeout) { requireNonNull(timeout, "timeout"); diff --git a/sdk-extensions/autoconfigure-spi/src/main/java/io/opentelemetry/sdk/autoconfigure/spi/AutoConfigurationCustomizer.java b/sdk-extensions/autoconfigure-spi/src/main/java/io/opentelemetry/sdk/autoconfigure/spi/AutoConfigurationCustomizer.java index d64ec24f49..7ecfa9c8dd 100644 --- a/sdk-extensions/autoconfigure-spi/src/main/java/io/opentelemetry/sdk/autoconfigure/spi/AutoConfigurationCustomizer.java +++ b/sdk-extensions/autoconfigure-spi/src/main/java/io/opentelemetry/sdk/autoconfigure/spi/AutoConfigurationCustomizer.java @@ -163,6 +163,8 @@ public interface AutoConfigurationCustomizer { * customization. The return value of the {@link BiFunction} will replace the passed-in argument. * *

Multiple calls will execute the customizers in order. + * + * @since 1.36.0 */ @SuppressWarnings("UnusedReturnValue") default AutoConfigurationCustomizer addMetricReaderCustomizer( diff --git a/sdk/common/src/main/java/io/opentelemetry/sdk/common/export/ProxyOptions.java b/sdk/common/src/main/java/io/opentelemetry/sdk/common/export/ProxyOptions.java index 79ab1978b3..5e4ad463a9 100644 --- a/sdk/common/src/main/java/io/opentelemetry/sdk/common/export/ProxyOptions.java +++ b/sdk/common/src/main/java/io/opentelemetry/sdk/common/export/ProxyOptions.java @@ -14,7 +14,11 @@ import java.net.URI; import java.util.Collections; import java.util.List; -/** Configuration for proxy settings. */ +/** + * Configuration for proxy settings. + * + * @since 1.36.0 + */ public final class ProxyOptions { private final ProxySelector proxySelector;