Skip to content

Commit eec0225

Browse files
authored
Changelog 1.18.0 (#4737)
* Add since annotations * Prepare changelog for 1.17.0 release * Spotless * PR feedback * Spotless
1 parent fe3da3d commit eec0225

File tree

5 files changed

+72
-5
lines changed

5 files changed

+72
-5
lines changed

CHANGELOG.md

+56
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,62 @@
22

33
## Unreleased
44

5+
### SDK
6+
7+
* Added scope attributes to `InstrumentationScopeInfo` accessible
8+
via `InstrumentationScopeInfo#getAttributes()`. Will add the ability to specify scope attributes
9+
in Meter, Tracer, and Logger in a future version.
10+
* DEPRECATION: The `InstrumentationScopeInfo#create(String, String, String)` method has been
11+
deprecated in favor of
12+
`InstrumentationScopeInfo#builer(String).setVersion(String).setSchemaUrl(String).build()`.
13+
* Optimize `Resource#merge(Resource)` by returning early if the other resource is empty.
14+
15+
#### Logs
16+
17+
* Fix module name of `opentelemetry-sdk-logs` by changing
18+
from `io.opentelemetry.sdk.extension.logging` to `io.opentelemetry.sdk.logs`.
19+
20+
#### Testing
21+
22+
* Add methods to assert attributes do not contain keys via `AttributeAssert#doesNotContainKey()`.
23+
24+
#### Exporter
25+
26+
* Added ability to specify local IP address in `ZipkinSpanExporter`
27+
via `ZipkinSpanExporterBuilder#setLocalIpAddressSupplier(Supplier<InetAddress>)`.
28+
* Upgrade to OTLP protobuf version 0.19.0.
29+
* OTLP exporters now serialize `InstrumentationScopeInfo#getAttributes()`.
30+
* Stop publishing `opentelemetry-exporter-jaeger-proto`. The `opentelemetry-bom` will include a
31+
constraint on the last published version `1.17.0`. If security issues are discovered, patches will
32+
be published to `1.17.x`.
33+
34+
#### SDK Extensions
35+
36+
* BREAKING: `opentelemetry-sdk-extension-metric-incubator`,
37+
`opentelemetry-sdk-extension-tracing-incubator`, and `opentelemetry-sdk-extension-zpages` merged
38+
into `opentelemetry-sdk-extension-incubator`.
39+
* BREAKING: Move `opentelemetry-sdk-extension-jfr-events`
40+
to [opentelemetry-java-contrib/jfr-events](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/jfr-events).
41+
It will now be published under the
42+
coordinates `io.opentelemetry.contrib:opentelemetry-jfr-events:{version}`.
43+
* BREAKING: Move `opentelemetry-extension-noop-api`
44+
to [opentelemetry-java-contrib/noop-api](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/noop-api).
45+
It will now be published under the
46+
coordinates `io.opentelemetry.contrib:opentelemetry-noop-api:{version}`.
47+
* Improve ECS resource detection to include `aws.ecs.container.arn`, `container.image.name`,
48+
`container.image.tag`, `aws.ecs.container.image.id`, `aws.log.group.arns`, `aws.log.group.names`,
49+
`aws.log.steam.names`, `aws.ecs.task.arn`, `aws.ecs.task.family`, and `aws.ecs.task.revision`.
50+
* Fix resource `container.id` detection when using k8s with containerd v1.5.0+.
51+
* Add experimental `ConditionalResourceProvider` SPI, for conditionally applying resource providers
52+
based on current config and resource.
53+
54+
### Micrometer shim
55+
56+
* BREAKING: Move `opentelemetry-micrometer1-shim`
57+
to [opentelemetry-java-instrumentation/instrumentation/micrometer/micrometer-1.5/library](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/micrometer/micrometer-1.5/library).
58+
It will now be published under the
59+
coordinates `io.opentelemetry.instrumentation:opentelemetry-micrometer-1.5:{version}`.
60+
561
## Version 1.17.0 (2022-08-12)
662

763
### API

docs/apidiffs/current_vs_latest/opentelemetry-exporter-jaeger-proto.txt

-2
This file was deleted.

exporters/zipkin/src/main/java/io/opentelemetry/exporter/zipkin/ZipkinSpanExporterBuilder.java

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public ZipkinSpanExporterBuilder setEncoder(BytesEncoder<Span> encoder) {
6666
*
6767
* @param supplier - A supplier that returns an InetAddress that may be null.
6868
* @return this
69+
* @since 1.18.0
6970
*/
7071
public ZipkinSpanExporterBuilder setLocalIpAddressSupplier(Supplier<InetAddress> supplier) {
7172
requireNonNull(supplier, "encoder");

sdk/common/src/main/java/io/opentelemetry/sdk/common/InstrumentationScopeInfo.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ public static InstrumentationScopeInfo empty() {
7777
@Nullable
7878
public abstract String getSchemaUrl();
7979

80-
/** Returns the attributes of this instrumentation scope. */
80+
/**
81+
* Returns the attributes of this instrumentation scope.
82+
*
83+
* @since 1.18.0
84+
*/
8185
public abstract Attributes getAttributes();
8286

8387
InstrumentationScopeInfo() {}

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

+10-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,11 @@ public AttributesAssert containsKey(String key) {
184184
return this;
185185
}
186186

187-
/** Asserts the attributes do not contain the given key. */
187+
/**
188+
* Asserts the attributes do not contain the given key.
189+
*
190+
* @since 1.18.0
191+
*/
188192
public AttributesAssert doesNotContainKey(AttributeKey<?> key) {
189193
if (actual.get(key) != null) {
190194
failWithMessage(
@@ -194,7 +198,11 @@ public AttributesAssert doesNotContainKey(AttributeKey<?> key) {
194198
return this;
195199
}
196200

197-
/** Asserts the attributes do not contain the given key. */
201+
/**
202+
* Asserts the attributes do not contain the given key.
203+
*
204+
* @since 1.18.0
205+
*/
198206
public AttributesAssert doesNotContainKey(String key) {
199207
boolean containsKey =
200208
actual.asMap().keySet().stream()

0 commit comments

Comments
 (0)