Skip to content

Commit ca18354

Browse files
authored
Prepare for 1.21.0 release (#5028)
* Update bom to point to opentelemetry-extension-aws:1.20.1 * Update changelog for 1.21.0 release * Add missing since annotations * Spotless * Include 1.16.0 semantic convention update in changelog * Add attribute assertions change
1 parent 6a793ba commit ca18354

File tree

8 files changed

+109
-2
lines changed

8 files changed

+109
-2
lines changed

.github/scripts/draft-change-log-entries.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ echo
2929
git log --reverse \
3030
--perl-regexp \
3131
--author='^(?!dependabot\[bot\] )' \
32-
--pretty=format:"- %s" \
32+
--pretty=format:"* %s" \
3333
"$range" \
3434
| sed -E 's,\(#([0-9]+)\)$,\n ([#\1](https://github.com/open-telemetry/opentelemetry-java/pull/\1)),'

CHANGELOG.md

+83
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,89 @@
22

33
## Unreleased
44

5+
### API
6+
7+
### API Extensions
8+
9+
* WARNING: `opentelemetry-extension-aws` has been removed following its relocation
10+
to [opentelemetry-java-contrib/aws-xray-propagator](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/aws-xray-propagator),
11+
which is published under
12+
coordinates `io.opentelemetry.contrib:opentelemetry-aws-xray-propagator:{version}`.
13+
We will push security patches to `1.20.x` as needed. The latest `opentelemetry-bom` will point
14+
to the latest published version, currently `1.20.1`.
15+
([#4945](https://github.com/open-telemetry/opentelemetry-java/pull/4945))
16+
* Add toString implementation to various propagator components
17+
([#4996](https://github.com/open-telemetry/opentelemetry-java/pull/4996))
18+
19+
### SDK
20+
21+
#### Logs
22+
23+
* Add toString implementation to various log SDK components
24+
([#4979](https://github.com/open-telemetry/opentelemetry-java/pull/4979))
25+
26+
#### Metrics
27+
28+
* Add histogram collection benchmark
29+
([#4912](https://github.com/open-telemetry/opentelemetry-java/pull/4912))
30+
* Add ExponentialHistogramIndexerBenchmark
31+
([#4989](https://github.com/open-telemetry/opentelemetry-java/pull/4989))
32+
* Stop extra copy of exponential histogram buckets
33+
([#5020](https://github.com/open-telemetry/opentelemetry-java/pull/5020))
34+
35+
#### Exporter
36+
37+
* Zipkin exporter serializes EventData attributes as JSON
38+
([#4934](https://github.com/open-telemetry/opentelemetry-java/pull/4934))
39+
* Add support for EC mTLS keys (applies to `OtlpHttp{Signal}Exporter`, `OtlpGrpc{Signal}Exporter`,
40+
`JaegerGrpcSpanExporter`, `JaegerRemoteSampler`)
41+
([#4920](https://github.com/open-telemetry/opentelemetry-java/pull/4920))
42+
* Add `Configurable{Signal}ExporterProvider` implementations for `Logging{Signal}Exporter`s
43+
([#4950](https://github.com/open-telemetry/opentelemetry-java/pull/4950))
44+
* Add `ConfigurableSpanExporterProvider` implementation for `ZipkinSpanExporter`
45+
([#4991](https://github.com/open-telemetry/opentelemetry-java/pull/4991))
46+
* Add `Configurable{Signal}ExporterProvider` implementations for `OtlpJsonLogging{Signal}Exporter`s
47+
([#4992](https://github.com/open-telemetry/opentelemetry-java/pull/4992))
48+
* `ZipkinSpanExporter` populates remoteEndpoint
49+
([#4933](https://github.com/open-telemetry/opentelemetry-java/pull/4933))
50+
51+
#### SDK Extensions
52+
53+
* BREAKING: Remove support for otel.experimental.sdk.enabled from autoconfigure
54+
([#4973](https://github.com/open-telemetry/opentelemetry-java/pull/4973))
55+
* De-singleton ZPageServer implementation
56+
([#4935](https://github.com/open-telemetry/opentelemetry-java/pull/4935))
57+
* Add auto-configure support for logging-otlp exporters
58+
([#4879](https://github.com/open-telemetry/opentelemetry-java/pull/4879))
59+
* Move DefaultConfigProperties to internal package in `opentelemetry-sdk-extension-autoconfigure-spi`
60+
([#5001](https://github.com/open-telemetry/opentelemetry-java/pull/5001))
61+
62+
#### Testing
63+
64+
* Make APIs for asserting attributes consistent
65+
([#4882](https://github.com/open-telemetry/opentelemetry-java/pull/4882))
66+
* Attribute assertions error messages always contain the attr key
67+
([#5027](https://github.com/open-telemetry/opentelemetry-java/pull/5027))
68+
69+
### Semantic Conventions
70+
71+
* Update semantic and resource attributes for spec v0.16.0
72+
([#4938](https://github.com/open-telemetry/opentelemetry-java/pull/4938),
73+
[#5033](https://github.com/open-telemetry/opentelemetry-java/pull/5033))
74+
75+
### OpenTracing Shim
76+
77+
* Handle unsupported types when setting Attributes
78+
([#4939](https://github.com/open-telemetry/opentelemetry-java/pull/4939))
79+
* Properly set the status based on the error tag
80+
([#4962](https://github.com/open-telemetry/opentelemetry-java/pull/4962))
81+
* Handle `io.opentracing.noop.NoopSpan` correctly
82+
([#4968](https://github.com/open-telemetry/opentelemetry-java/pull/4968))
83+
* Log invalid arguments rather than throwing exceptions.
84+
([#5012](https://github.com/open-telemetry/opentelemetry-java/pull/5012))
85+
* Stop mapping semconv values from OpenTracing to OTel.
86+
([#5016](https://github.com/open-telemetry/opentelemetry-java/pull/5016))
87+
588
## Version 1.20.1 (2022-11-15)
689

790
### Bugfixes

bom/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ otelBom.addFallback("opentelemetry-exporter-jaeger-proto", "1.17.0")
1313
otelBom.addFallback("opentelemetry-extension-annotations", "1.18.0")
1414
otelBom.addFallback("opentelemetry-sdk-extension-resources", "1.19.0")
1515
otelBom.addFallback("opentelemetry-sdk-extension-aws", "1.19.0")
16-
otelBom.addFallback("opentelemetry-extension-aws", "1.20.0")
16+
otelBom.addFallback("opentelemetry-extension-aws", "1.20.1")

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

+4
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ public final PointAssertT hasAttributesSatisfying(Iterable<AttributeAssertion> a
115115
* Asserts the point has attributes matching all {@code assertions} and no more. Assertions can be
116116
* created using methods like {@link OpenTelemetryAssertions#satisfies(AttributeKey,
117117
* OpenTelemetryAssertions.LongAssertConsumer)}.
118+
*
119+
* @since 1.21.0
118120
*/
119121
public final PointAssertT hasAttributesSatisfyingExactly(AttributeAssertion... assertions) {
120122
return hasAttributesSatisfyingExactly(Arrays.asList(assertions));
@@ -124,6 +126,8 @@ public final PointAssertT hasAttributesSatisfyingExactly(AttributeAssertion... a
124126
* Asserts the point has attributes matching all {@code assertions} and no more. Assertions can be
125127
* created using methods like {@link OpenTelemetryAssertions#satisfies(AttributeKey,
126128
* OpenTelemetryAssertions.LongAssertConsumer)}.
129+
*
130+
* @since 1.21.0
127131
*/
128132
public final PointAssertT hasAttributesSatisfyingExactly(
129133
Iterable<AttributeAssertion> assertions) {

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

+4
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ public DoubleExemplarAssert hasFilteredAttributesSatisfying(
121121
* Asserts the exemplar has filtered attributes matching all {@code assertions} and no more.
122122
* Assertions can be created using methods like {@link
123123
* OpenTelemetryAssertions#satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer)}.
124+
*
125+
* @since 1.21.0
124126
*/
125127
public DoubleExemplarAssert hasFilteredAttributesSatisfyingExactly(
126128
AttributeAssertion... assertions) {
@@ -131,6 +133,8 @@ public DoubleExemplarAssert hasFilteredAttributesSatisfyingExactly(
131133
* Asserts the exemplar has filtered attributes matching all {@code assertions} and no more.
132134
* Assertions can be created using methods like {@link
133135
* OpenTelemetryAssertions#satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer)}.
136+
*
137+
* @since 1.21.0
134138
*/
135139
public DoubleExemplarAssert hasFilteredAttributesSatisfyingExactly(
136140
Iterable<AttributeAssertion> assertions) {

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

+8
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public EventDataAssert hasAttributesSatisfying(Consumer<Attributes> attributes)
8989
* Asserts the event has attributes matching all {@code assertions}. Assertions can be created
9090
* using methods like {@link OpenTelemetryAssertions#satisfies(AttributeKey,
9191
* OpenTelemetryAssertions.LongAssertConsumer)}.
92+
*
93+
* @since 1.21.0
9294
*/
9395
public EventDataAssert hasAttributesSatisfying(AttributeAssertion... assertions) {
9496
return hasAttributesSatisfying(Arrays.asList(assertions));
@@ -98,6 +100,8 @@ public EventDataAssert hasAttributesSatisfying(AttributeAssertion... assertions)
98100
* Asserts the event has attributes matching all {@code assertions}. Assertions can be created
99101
* using methods like {@link OpenTelemetryAssertions#satisfies(AttributeKey,
100102
* OpenTelemetryAssertions.LongAssertConsumer)}.
103+
*
104+
* @since 1.21.0
101105
*/
102106
public EventDataAssert hasAttributesSatisfying(Iterable<AttributeAssertion> assertions) {
103107
AssertUtil.assertAttributes(actual.getAttributes(), assertions);
@@ -108,6 +112,8 @@ public EventDataAssert hasAttributesSatisfying(Iterable<AttributeAssertion> asse
108112
* Asserts the event has attributes matching all {@code assertions} and no more. Assertions can be
109113
* created using methods like {@link OpenTelemetryAssertions#satisfies(AttributeKey,
110114
* OpenTelemetryAssertions.LongAssertConsumer)}.
115+
*
116+
* @since 1.21.0
111117
*/
112118
public EventDataAssert hasAttributesSatisfyingExactly(AttributeAssertion... assertions) {
113119
return hasAttributesSatisfyingExactly(Arrays.asList(assertions));
@@ -117,6 +123,8 @@ public EventDataAssert hasAttributesSatisfyingExactly(AttributeAssertion... asse
117123
* Asserts the event has attributes matching all {@code assertions} and no more. Assertions can be
118124
* created using methods like {@link OpenTelemetryAssertions#satisfies(AttributeKey,
119125
* OpenTelemetryAssertions.LongAssertConsumer)}.
126+
*
127+
* @since 1.21.0
120128
*/
121129
public EventDataAssert hasAttributesSatisfyingExactly(Iterable<AttributeAssertion> assertions) {
122130
AssertUtil.assertAttributesExactly(actual.getAttributes(), assertions);

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

+4
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ public LongExemplarAssert hasFilteredAttributesSatisfying(
120120
* Asserts the exemplar has filtered attributes matching all {@code assertions} and no more.
121121
* Assertions can be created using methods like {@link
122122
* OpenTelemetryAssertions#satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer)}.
123+
*
124+
* @since 1.21.0
123125
*/
124126
public LongExemplarAssert hasFilteredAttributesSatisfyingExactly(
125127
AttributeAssertion... assertions) {
@@ -130,6 +132,8 @@ public LongExemplarAssert hasFilteredAttributesSatisfyingExactly(
130132
* Asserts the exemplar has filtered attributes matching all {@code assertions} and no more.
131133
* Assertions can be created using methods like {@link
132134
* OpenTelemetryAssertions#satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer)}.
135+
*
136+
* @since 1.21.0
133137
*/
134138
public LongExemplarAssert hasFilteredAttributesSatisfyingExactly(
135139
Iterable<AttributeAssertion> assertions) {

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

+4
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ public SpanDataAssert hasAttributesSatisfying(Consumer<Attributes> attributes) {
310310
* Asserts the event has attributes matching all {@code assertions}. Assertions can be created
311311
* using methods like {@link OpenTelemetryAssertions#satisfies(AttributeKey,
312312
* OpenTelemetryAssertions.LongAssertConsumer)}.
313+
*
314+
* @since 1.21.0
313315
*/
314316
public SpanDataAssert hasAttributesSatisfying(AttributeAssertion... assertions) {
315317
return hasAttributesSatisfying(Arrays.asList(assertions));
@@ -319,6 +321,8 @@ public SpanDataAssert hasAttributesSatisfying(AttributeAssertion... assertions)
319321
* Asserts the event has attributes matching all {@code assertions}. Assertions can be created
320322
* using methods like {@link OpenTelemetryAssertions#satisfies(AttributeKey,
321323
* OpenTelemetryAssertions.LongAssertConsumer)}.
324+
*
325+
* @since 1.21.0
322326
*/
323327
public SpanDataAssert hasAttributesSatisfying(Iterable<AttributeAssertion> assertions) {
324328
AssertUtil.assertAttributes(

0 commit comments

Comments
 (0)