Skip to content

Commit

Permalink
Prepare 1.37.0 (#6353)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg authored Apr 5, 2024
1 parent 5ab678f commit 95b8356
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 4 deletions.
64 changes: 64 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,70 @@

## Unreleased

**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.

### API

* Promote `Span#addLink` to stable API
([#6317](https://github.com/open-telemetry/opentelemetry-java/pull/6317))

#### Incubator

* BREAKING: Rename `opentelemetry-extension-incubator` to `opentelemetry-api-incubator`,
merge `opentelemetry-api-events` into `opentelemetry-api-incubator`.
([#6289](https://github.com/open-telemetry/opentelemetry-java/pull/6289))
* BREAKING: Remove domain from event api. `EventEmitterProvider#setEventDomain` has been removed.
The `event.name` field should now be namespaced to avoid collisions.
See [Semantic Conventions for Event Attributes](https://opentelemetry.io/docs/specs/semconv/general/events/)
for more details.
([#6253](https://github.com/open-telemetry/opentelemetry-java/pull/6253))
* BREAKING: Rename `EventEmitter` and related classes to `EventLogger`.
([#6316](https://github.com/open-telemetry/opentelemetry-java/pull/6316))
* BREAKING: Refactor Event API to reflect spec changes. Restructure API to put fields in
the `AnyValue` log record body. Add setters for timestamp, context, and severity. Set default
severity to `INFO=9`.
([#6318](https://github.com/open-telemetry/opentelemetry-java/pull/6318))

### SDK

* Add `get{Signal}Exporter` methods to `Simple{Signal}Processor`, `Batch{Signal}Processor`.
([#6078](https://github.com/open-telemetry/opentelemetry-java/pull/6078))

#### Metrics

* Use synchronized instead of reentrant lock in explicit bucket histogram
([#6309](https://github.com/open-telemetry/opentelemetry-java/pull/6309))

#### Exporters

* Fix typo in OTLP javadoc
([#6311](https://github.com/open-telemetry/opentelemetry-java/pull/6311))
* Add `PrometheusHttpServer#toBuilder()`
([#6333](https://github.com/open-telemetry/opentelemetry-java/pull/6333))
* Bugfix: Use `getPrometheusName` for Otel2PrometheusConverter map keys to avoid metric name
conflicts
([#6308](https://github.com/open-telemetry/opentelemetry-java/pull/6308))

#### Extensions

* Add Metric exporter REUSABLE_DATA memory mode configuration options, including autoconfigure
support via env var `OTEL_JAVA_EXPERIMENTAL_EXPORTER_MEMORY_MODE=REUSABLE_DATA`.
([#6304](https://github.com/open-telemetry/opentelemetry-java/pull/6304))
* Add autoconfigure console alias for logging exporter
([#6027](https://github.com/open-telemetry/opentelemetry-java/pull/6027))
* Update jaeger autoconfigure docs to point to OTLP
([#6307](https://github.com/open-telemetry/opentelemetry-java/pull/6307))
* Add `ServiceInstanceIdResourceProvider` implementation for generating `service.instance.id` UUID
if not already provided by user. Included in `opentelemetry-sdk-extension-incubator`.
([#6226](https://github.com/open-telemetry/opentelemetry-java/pull/6226))
* Add GCP resource detector to list of resource providers in autoconfigure docs
([#6336](https://github.com/open-telemetry/opentelemetry-java/pull/6336))

### Tooling

* Check for Java 17 toolchain and fail if not found
([#6303](https://github.com/open-telemetry/opentelemetry-java/pull/6303))

## Version 1.36.0 (2024-03-08)

### SDK
Expand Down
2 changes: 2 additions & 0 deletions api/all/src/main/java/io/opentelemetry/api/trace/Span.java
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ default Span recordException(Throwable exception) {
*
* @param spanContext the context of the linked {@code Span}.
* @return this.
* @since 1.37.0
*/
default Span addLink(SpanContext spanContext) {
return addLink(spanContext, Attributes.empty());
Expand All @@ -395,6 +396,7 @@ default Span addLink(SpanContext spanContext) {
* @param spanContext the context of the linked {@code Span}.
* @param attributes the attributes of the {@code Link}.
* @return this.
* @since 1.37.0
*/
default Span addLink(SpanContext spanContext, Attributes attributes) {
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ public CompletableResultCode forceFlush() {
return worker.forceFlush();
}

/** Return the processor's configured {@link LogRecordExporter}. */
/**
* Return the processor's configured {@link LogRecordExporter}.
*
* @since 1.37.0
*/
public LogRecordExporter getLogRecordExporter() {
return worker.logRecordExporter;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ public CompletableResultCode forceFlush() {
return CompletableResultCode.ofAll(pendingExports);
}

/** Return the processor's configured {@link LogRecordExporter}. */
/**
* Return the processor's configured {@link LogRecordExporter}.
*
* @since 1.37.0
*/
public LogRecordExporter getLogRecordExporter() {
return logRecordExporter;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ public CompletableResultCode forceFlush() {
return worker.forceFlush();
}

/** Return the processor's configured {@link SpanExporter}. */
/**
* Return the processor's configured {@link SpanExporter}.
*
* @since 1.37.0
*/
public SpanExporter getSpanExporter() {
return worker.spanExporter;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ public CompletableResultCode forceFlush() {
return CompletableResultCode.ofAll(pendingExports);
}

/** Return the processor's configured {@link SpanExporter}. */
/**
* Return the processor's configured {@link SpanExporter}.
*
* @since 1.37.0
*/
public SpanExporter getSpanExporter() {
return spanExporter;
}
Expand Down

0 comments on commit 95b8356

Please sign in to comment.