Skip to content

Commit 3a6613f

Browse files
authored
Prepare for 1.33.0 release (#6065)
1 parent e90a6f6 commit 3a6613f

File tree

9 files changed

+81
-1
lines changed

9 files changed

+81
-1
lines changed

CHANGELOG.md

+48
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,54 @@
22

33
## Unreleased
44

5+
### API
6+
7+
* Fix issue where wrapping "invalid" SpanContexts in Span does not preserve SpanContext
8+
([#6044](https://github.com/open-telemetry/opentelemetry-java/pull/6044))
9+
10+
#### Incubator
11+
12+
* Refactor and add to ExtendedTracer, add ExtendedContextPropagators
13+
([#6017](https://github.com/open-telemetry/opentelemetry-java/pull/6017))
14+
* Base64 encode AnyValue bytes in string representation
15+
([#6003](https://github.com/open-telemetry/opentelemetry-java/pull/6003))
16+
17+
### SDK
18+
19+
#### Exporters
20+
21+
* Add connectTimeout configuration option OtlpHttp{Signal}Exporters
22+
([#5941](https://github.com/open-telemetry/opentelemetry-java/pull/5941))
23+
* Add ability for Otlp{Protocol}LogRecordExporter to serialize log body any value
24+
([#5938](https://github.com/open-telemetry/opentelemetry-java/pull/5938))
25+
* Android environments can now handle base64 encoded PEM keys, remove exception handling in
26+
TlsUtil#decodePem
27+
([#6034](https://github.com/open-telemetry/opentelemetry-java/pull/6034))
28+
* Add header supplier configuration option to OTLP exporters
29+
([#6004](https://github.com/open-telemetry/opentelemetry-java/pull/6004))
30+
31+
32+
#### Extensions
33+
34+
* Add autoconfigure option for customizing SpanProcessor, LogRecordProcessor
35+
([#5986](https://github.com/open-telemetry/opentelemetry-java/pull/5986))
36+
* Incubator allows for simpler creation of start-only and end-only SpanProcessors.
37+
([#5923](https://github.com/open-telemetry/opentelemetry-java/pull/5923))
38+
39+
#### Testing
40+
41+
* Add hasAttributesSatisfying overload to AbstractPointAssert
42+
([#6048](https://github.com/open-telemetry/opentelemetry-java/pull/6048))
43+
44+
### Project Tooling
45+
46+
* Building animal sniffer signatures directly from android corelib
47+
([#5973](https://github.com/open-telemetry/opentelemetry-java/pull/5973))
48+
* Target kotlin 1.6 in kotlin extension
49+
([#5910](https://github.com/open-telemetry/opentelemetry-java/pull/5910))
50+
* Define language version compatibility requirements
51+
([#5983](https://github.com/open-telemetry/opentelemetry-java/pull/5983))
52+
553
## Version 1.32.0 (2023-11-13)
654

755
### API

exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/logs/OtlpHttpLogRecordExporterBuilder.java

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ public OtlpHttpLogRecordExporterBuilder setTimeout(Duration timeout) {
6464
/**
6565
* Sets the maximum time to wait for new connections to be established. If unset, defaults to
6666
* {@value HttpExporterBuilder#DEFAULT_CONNECT_TIMEOUT_SECS}s.
67+
*
68+
* @since 1.33.0
6769
*/
6870
public OtlpHttpLogRecordExporterBuilder setConnectTimeout(long timeout, TimeUnit unit) {
6971
requireNonNull(unit, "unit");
@@ -75,6 +77,8 @@ public OtlpHttpLogRecordExporterBuilder setConnectTimeout(long timeout, TimeUnit
7577
/**
7678
* Sets the maximum time to wait for new connections to be established. If unset, defaults to
7779
* {@value HttpExporterBuilder#DEFAULT_CONNECT_TIMEOUT_SECS}s.
80+
*
81+
* @since 1.33.0
7882
*/
7983
public OtlpHttpLogRecordExporterBuilder setConnectTimeout(Duration timeout) {
8084
requireNonNull(timeout, "timeout");
@@ -116,6 +120,8 @@ public OtlpHttpLogRecordExporterBuilder addHeader(String key, String value) {
116120
/**
117121
* Set the supplier of headers to add to requests. If a key from the map collides with a constant
118122
* from {@link #addHeader(String, String)}, the values from both are included.
123+
*
124+
* @since 1.33.0
119125
*/
120126
public OtlpHttpLogRecordExporterBuilder setHeaders(Supplier<Map<String, String>> headerSupplier) {
121127
delegate.setHeadersSupplier(headerSupplier);

exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/metrics/OtlpHttpMetricExporterBuilder.java

+6
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ public OtlpHttpMetricExporterBuilder setTimeout(Duration timeout) {
7676
/**
7777
* Sets the maximum time to wait for new connections to be established. If unset, defaults to
7878
* {@value HttpExporterBuilder#DEFAULT_CONNECT_TIMEOUT_SECS}s.
79+
*
80+
* @since 1.33.0
7981
*/
8082
public OtlpHttpMetricExporterBuilder setConnectTimeout(long timeout, TimeUnit unit) {
8183
requireNonNull(unit, "unit");
@@ -87,6 +89,8 @@ public OtlpHttpMetricExporterBuilder setConnectTimeout(long timeout, TimeUnit un
8789
/**
8890
* Sets the maximum time to wait for new connections to be established. If unset, defaults to
8991
* {@value HttpExporterBuilder#DEFAULT_CONNECT_TIMEOUT_SECS}s.
92+
*
93+
* @since 1.33.0
9094
*/
9195
public OtlpHttpMetricExporterBuilder setConnectTimeout(Duration timeout) {
9296
requireNonNull(timeout, "timeout");
@@ -128,6 +132,8 @@ public OtlpHttpMetricExporterBuilder addHeader(String key, String value) {
128132
/**
129133
* Set the supplier of headers to add to requests. If a key from the map collides with a constant
130134
* from {@link #addHeader(String, String)}, the values from both are included.
135+
*
136+
* @since 1.33.0
131137
*/
132138
public OtlpHttpMetricExporterBuilder setHeaders(Supplier<Map<String, String>> headerSupplier) {
133139
delegate.setHeadersSupplier(headerSupplier);

exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/http/trace/OtlpHttpSpanExporterBuilder.java

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ public OtlpHttpSpanExporterBuilder setTimeout(Duration timeout) {
6464
/**
6565
* Sets the maximum time to wait for new connections to be established. If unset, defaults to
6666
* {@value HttpExporterBuilder#DEFAULT_CONNECT_TIMEOUT_SECS}s.
67+
*
68+
* @since 1.33.0
6769
*/
6870
public OtlpHttpSpanExporterBuilder setConnectTimeout(long timeout, TimeUnit unit) {
6971
requireNonNull(unit, "unit");
@@ -75,6 +77,8 @@ public OtlpHttpSpanExporterBuilder setConnectTimeout(long timeout, TimeUnit unit
7577
/**
7678
* Sets the maximum time to wait for new connections to be established. If unset, defaults to
7779
* {@value HttpExporterBuilder#DEFAULT_CONNECT_TIMEOUT_SECS}s.
80+
*
81+
* @since 1.33.0
7882
*/
7983
public OtlpHttpSpanExporterBuilder setConnectTimeout(Duration timeout) {
8084
requireNonNull(timeout, "timeout");
@@ -116,6 +120,8 @@ public OtlpHttpSpanExporterBuilder addHeader(String key, String value) {
116120
/**
117121
* Set the supplier of headers to add to requests. If a key from the map collides with a constant
118122
* from {@link #addHeader(String, String)}, the values from both are included.
123+
*
124+
* @since 1.33.0
119125
*/
120126
public OtlpHttpSpanExporterBuilder setHeaders(Supplier<Map<String, String>> headerSupplier) {
121127
delegate.setHeadersSupplier(headerSupplier);

exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/logs/OtlpGrpcLogRecordExporterBuilder.java

+2
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ public OtlpGrpcLogRecordExporterBuilder addHeader(String key, String value) {
170170
* Set the supplier of headers to add to requests. If a key from the map collides with a constant
171171
* from {@link #addHeader(String, String)}, the values from both are included. Applicable only if
172172
* {@link OtlpGrpcLogRecordExporterBuilder#setChannel(ManagedChannel)} is not used to set channel.
173+
*
174+
* @since 1.33.0
173175
*/
174176
public OtlpGrpcLogRecordExporterBuilder setHeaders(Supplier<Map<String, String>> headerSupplier) {
175177
delegate.setHeadersSupplier(headerSupplier);

exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/metrics/OtlpGrpcMetricExporterBuilder.java

+2
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ public OtlpGrpcMetricExporterBuilder addHeader(String key, String value) {
183183
* Set the supplier of headers to add to requests. If a key from the map collides with a constant
184184
* from {@link #addHeader(String, String)}, the values from both are included. Applicable only if
185185
* {@link OtlpGrpcMetricExporterBuilder#setChannel(ManagedChannel)} is not used to set channel.
186+
*
187+
* @since 1.33.0
186188
*/
187189
public OtlpGrpcMetricExporterBuilder setHeaders(Supplier<Map<String, String>> headerSupplier) {
188190
delegate.setHeadersSupplier(headerSupplier);

exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/trace/OtlpGrpcSpanExporterBuilder.java

+2
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ public OtlpGrpcSpanExporterBuilder addHeader(String key, String value) {
167167
* Set the supplier of headers to add to requests. If a key from the map collides with a constant
168168
* from {@link #addHeader(String, String)}, the values from both are included. Applicable only if
169169
* {@link OtlpGrpcSpanExporterBuilder#setChannel(ManagedChannel)} is not used to set channel.
170+
*
171+
* @since 1.33.0
170172
*/
171173
public OtlpGrpcSpanExporterBuilder setHeaders(Supplier<Map<String, String>> headerSupplier) {
172174
delegate.setHeadersSupplier(headerSupplier);

sdk-extensions/autoconfigure-spi/src/main/java/io/opentelemetry/sdk/autoconfigure/spi/AutoConfigurationCustomizer.java

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ AutoConfigurationCustomizer addSpanExporterCustomizer(
7373
* delayed data.
7474
*
7575
* <p>Multiple calls will execute the customizers in order.
76+
*
77+
* @since 1.33.0
7678
*/
7779
default AutoConfigurationCustomizer addSpanProcessorCustomizer(
7880
BiFunction<? super SpanProcessor, ConfigProperties, ? extends SpanProcessor>
@@ -192,6 +194,8 @@ default AutoConfigurationCustomizer addLogRecordExporterCustomizer(
192194
* logs or delay logs for enhancing them with external, delayed data.
193195
*
194196
* <p>Multiple calls will execute the customizers in order.
197+
*
198+
* @since 1.33.0
195199
*/
196200
default AutoConfigurationCustomizer addLogRecordProcessorCustomizer(
197201
BiFunction<? super LogRecordProcessor, ConfigProperties, ? extends LogRecordProcessor>

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ public final PointAssertT hasAttributesSatisfying(Iterable<AttributeAssertion> a
112112
return myself;
113113
}
114114

115-
/** Asserts the point has attributes satisfying the given condition. */
115+
/**
116+
* Asserts the point has attributes satisfying the given condition.
117+
*
118+
* @since 1.33.0
119+
*/
116120
public final PointAssertT hasAttributesSatisfying(Consumer<Attributes> attributes) {
117121
isNotNull();
118122
assertThat(actual.getAttributes()).as("attributes").satisfies(attributes);

0 commit comments

Comments
 (0)