Skip to content

Commit

Permalink
Prepare 1.34.0 (#6115)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg committed Jan 5, 2024
1 parent 07351a2 commit 1f2a8fe
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 3 deletions.
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,48 @@

## Unreleased

### API

* Ability to access version.properties API file with GraalVM native
([#6095](https://github.com/open-telemetry/opentelemetry-java/pull/6095))

### SDK

#### Traces

* Only call SpanProcessor onStart / onEnd if required
([#6112](https://github.com/open-telemetry/opentelemetry-java/pull/6112))
* Add option to export unsampled spans from span processors
([#6057](https://github.com/open-telemetry/opentelemetry-java/pull/6057))

#### Metrics

* Memory Mode: Adding first part support for synchronous instruments - storage
([#5998](https://github.com/open-telemetry/opentelemetry-java/pull/5998))
* Base2ExponentialHistogramAggregation maxBuckets must be >= 2
([#6093](https://github.com/open-telemetry/opentelemetry-java/pull/6093))
* Convert histogram measurements to double before passing recording exemplar reservoir
([#6024](https://github.com/open-telemetry/opentelemetry-java/pull/6024))

#### Exporters

* Add compressor SPI to support additional compression algos
([#5990](https://github.com/open-telemetry/opentelemetry-java/pull/5990))
* Test OTLP exporters with different OkHttp versions
([#6045](https://github.com/open-telemetry/opentelemetry-java/pull/6045))
* Refactor prometheus exporter to use `io.prometheus:prometheus-metrics-exporter-httpserver`, add
exponential Histogram support
([#6015](https://github.com/open-telemetry/opentelemetry-java/pull/6015))
* UpstreamGrpcSenderProvider uses minimal fallback managed channel when none is specified
([#6110](https://github.com/open-telemetry/opentelemetry-java/pull/6110))
* OTLP exporters propagate serialization IOException instead of rethrowing as runtime
([#6082](https://github.com/open-telemetry/opentelemetry-java/pull/6082))

#### Extensions

* Autoconfigure reads normalized otel.config.file property
([#6105](https://github.com/open-telemetry/opentelemetry-java/pull/6105))

## Version 1.33.0 (2023-12-08)

### API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public final class BatchSpanProcessorBuilder {
static final int DEFAULT_EXPORT_TIMEOUT_MILLIS = 30_000;

private final SpanExporter spanExporter;
private boolean exportUnsampledSpans;
private boolean exportUnsampledSpans = false;
private long scheduleDelayNanos = TimeUnit.MILLISECONDS.toNanos(DEFAULT_SCHEDULE_DELAY_MILLIS);
private int maxQueueSize = DEFAULT_MAX_QUEUE_SIZE;
private int maxExportBatchSize = DEFAULT_MAX_EXPORT_BATCH_SIZE;
Expand All @@ -39,6 +39,8 @@ public final class BatchSpanProcessorBuilder {
/**
* Sets whether unsampled spans should be exported. If unset, defaults to exporting only sampled
* spans.
*
* @since 1.34.0
*/
public BatchSpanProcessorBuilder setExportUnsampledSpans(boolean exportUnsampledSpans) {
this.exportUnsampledSpans = exportUnsampledSpans;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public static SpanProcessor create(SpanExporter exporter) {
return builder(exporter).build();
}

/**
* Returns a new Builder for {@link SimpleSpanProcessor}.
*
* @since 1.34.0
*/
public static SimpleSpanProcessorBuilder builder(SpanExporter exporter) {
requireNonNull(exporter, "exporter");
return new SimpleSpanProcessorBuilder(exporter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@

import static java.util.Objects.requireNonNull;

/** Builder class for {@link SimpleSpanProcessor}. */
/**
* Builder class for {@link SimpleSpanProcessor}.
*
* @since 1.34.0
*/
public final class SimpleSpanProcessorBuilder {
private final SpanExporter spanExporter;
private boolean exportUnsampledSpans;
private boolean exportUnsampledSpans = false;

SimpleSpanProcessorBuilder(SpanExporter spanExporter) {
this.spanExporter = requireNonNull(spanExporter, "spanExporter");
Expand Down

0 comments on commit 1f2a8fe

Please sign in to comment.