Skip to content

Commit 95b8356

Browse files
authored
Prepare 1.37.0 (#6353)
1 parent 5ab678f commit 95b8356

File tree

6 files changed

+86
-4
lines changed

6 files changed

+86
-4
lines changed

CHANGELOG.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,70 @@
22

33
## Unreleased
44

5+
**NOTICE:** This release contains a significant restructuring of the experimental event API and the API incubator artifact. Please read the notes in the `API -> Incubator` section carefully.
6+
7+
### API
8+
9+
* Promote `Span#addLink` to stable API
10+
([#6317](https://github.com/open-telemetry/opentelemetry-java/pull/6317))
11+
12+
#### Incubator
13+
14+
* BREAKING: Rename `opentelemetry-extension-incubator` to `opentelemetry-api-incubator`,
15+
merge `opentelemetry-api-events` into `opentelemetry-api-incubator`.
16+
([#6289](https://github.com/open-telemetry/opentelemetry-java/pull/6289))
17+
* BREAKING: Remove domain from event api. `EventEmitterProvider#setEventDomain` has been removed.
18+
The `event.name` field should now be namespaced to avoid collisions.
19+
See [Semantic Conventions for Event Attributes](https://opentelemetry.io/docs/specs/semconv/general/events/)
20+
for more details.
21+
([#6253](https://github.com/open-telemetry/opentelemetry-java/pull/6253))
22+
* BREAKING: Rename `EventEmitter` and related classes to `EventLogger`.
23+
([#6316](https://github.com/open-telemetry/opentelemetry-java/pull/6316))
24+
* BREAKING: Refactor Event API to reflect spec changes. Restructure API to put fields in
25+
the `AnyValue` log record body. Add setters for timestamp, context, and severity. Set default
26+
severity to `INFO=9`.
27+
([#6318](https://github.com/open-telemetry/opentelemetry-java/pull/6318))
28+
29+
### SDK
30+
31+
* Add `get{Signal}Exporter` methods to `Simple{Signal}Processor`, `Batch{Signal}Processor`.
32+
([#6078](https://github.com/open-telemetry/opentelemetry-java/pull/6078))
33+
34+
#### Metrics
35+
36+
* Use synchronized instead of reentrant lock in explicit bucket histogram
37+
([#6309](https://github.com/open-telemetry/opentelemetry-java/pull/6309))
38+
39+
#### Exporters
40+
41+
* Fix typo in OTLP javadoc
42+
([#6311](https://github.com/open-telemetry/opentelemetry-java/pull/6311))
43+
* Add `PrometheusHttpServer#toBuilder()`
44+
([#6333](https://github.com/open-telemetry/opentelemetry-java/pull/6333))
45+
* Bugfix: Use `getPrometheusName` for Otel2PrometheusConverter map keys to avoid metric name
46+
conflicts
47+
([#6308](https://github.com/open-telemetry/opentelemetry-java/pull/6308))
48+
49+
#### Extensions
50+
51+
* Add Metric exporter REUSABLE_DATA memory mode configuration options, including autoconfigure
52+
support via env var `OTEL_JAVA_EXPERIMENTAL_EXPORTER_MEMORY_MODE=REUSABLE_DATA`.
53+
([#6304](https://github.com/open-telemetry/opentelemetry-java/pull/6304))
54+
* Add autoconfigure console alias for logging exporter
55+
([#6027](https://github.com/open-telemetry/opentelemetry-java/pull/6027))
56+
* Update jaeger autoconfigure docs to point to OTLP
57+
([#6307](https://github.com/open-telemetry/opentelemetry-java/pull/6307))
58+
* Add `ServiceInstanceIdResourceProvider` implementation for generating `service.instance.id` UUID
59+
if not already provided by user. Included in `opentelemetry-sdk-extension-incubator`.
60+
([#6226](https://github.com/open-telemetry/opentelemetry-java/pull/6226))
61+
* Add GCP resource detector to list of resource providers in autoconfigure docs
62+
([#6336](https://github.com/open-telemetry/opentelemetry-java/pull/6336))
63+
64+
### Tooling
65+
66+
* Check for Java 17 toolchain and fail if not found
67+
([#6303](https://github.com/open-telemetry/opentelemetry-java/pull/6303))
68+
569
## Version 1.36.0 (2024-03-08)
670

771
### SDK

api/all/src/main/java/io/opentelemetry/api/trace/Span.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ default Span recordException(Throwable exception) {
374374
*
375375
* @param spanContext the context of the linked {@code Span}.
376376
* @return this.
377+
* @since 1.37.0
377378
*/
378379
default Span addLink(SpanContext spanContext) {
379380
return addLink(spanContext, Attributes.empty());
@@ -395,6 +396,7 @@ default Span addLink(SpanContext spanContext) {
395396
* @param spanContext the context of the linked {@code Span}.
396397
* @param attributes the attributes of the {@code Link}.
397398
* @return this.
399+
* @since 1.37.0
398400
*/
399401
default Span addLink(SpanContext spanContext, Attributes attributes) {
400402
return this;

sdk/logs/src/main/java/io/opentelemetry/sdk/logs/export/BatchLogRecordProcessor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ public CompletableResultCode forceFlush() {
105105
return worker.forceFlush();
106106
}
107107

108-
/** Return the processor's configured {@link LogRecordExporter}. */
108+
/**
109+
* Return the processor's configured {@link LogRecordExporter}.
110+
*
111+
* @since 1.37.0
112+
*/
109113
public LogRecordExporter getLogRecordExporter() {
110114
return worker.logRecordExporter;
111115
}

sdk/logs/src/main/java/io/opentelemetry/sdk/logs/export/SimpleLogRecordProcessor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ public CompletableResultCode forceFlush() {
107107
return CompletableResultCode.ofAll(pendingExports);
108108
}
109109

110-
/** Return the processor's configured {@link LogRecordExporter}. */
110+
/**
111+
* Return the processor's configured {@link LogRecordExporter}.
112+
*
113+
* @since 1.37.0
114+
*/
111115
public LogRecordExporter getLogRecordExporter() {
112116
return logRecordExporter;
113117
}

sdk/trace/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpanProcessor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ public CompletableResultCode forceFlush() {
122122
return worker.forceFlush();
123123
}
124124

125-
/** Return the processor's configured {@link SpanExporter}. */
125+
/**
126+
* Return the processor's configured {@link SpanExporter}.
127+
*
128+
* @since 1.37.0
129+
*/
126130
public SpanExporter getSpanExporter() {
127131
return worker.spanExporter;
128132
}

sdk/trace/src/main/java/io/opentelemetry/sdk/trace/export/SimpleSpanProcessor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ public CompletableResultCode forceFlush() {
135135
return CompletableResultCode.ofAll(pendingExports);
136136
}
137137

138-
/** Return the processor's configured {@link SpanExporter}. */
138+
/**
139+
* Return the processor's configured {@link SpanExporter}.
140+
*
141+
* @since 1.37.0
142+
*/
139143
public SpanExporter getSpanExporter() {
140144
return spanExporter;
141145
}

0 commit comments

Comments
 (0)