OpenTelemetry - CNCF/opentelemetry-java: Release v1.15.0
Name: opentelemetry-java
Owner: OpenTelemetry - CNCF
Release: Version 1.15.0
Released: 2022-06-10
License: Apache-2.0
Release Assets:
API
- Add batch callback API, allowing a single callback to record measurements to multiple metric instruments.
SDK
Metrics
SdkMeterProvider#toString()now returns a useful string describing configuration.- Fix bug preventing proper function of Metrics SDK when multiple readers are present (#4436).
- Fix reporting intervals for metrics for delta readers (#4400).
Exporter
- BREAKING: merge all stable OTLP exporters into
opentelemetry-exporter-otlp.opentelemetry-exporter-otlp-trace,opentelemetry-exporter-otlp-metrics,opentelemetry-exporter-otlp-http-trace, andopentelemetry-exporter-otlp-http-metricsare no longer published and their contents have been merged into a single artifact. - BREAKING: merge log OTLP exporters into
opentelemetry-exporter-otlp-logs.opentelemetry-exporter-otlp-http-logsis no longer published and its contents have been merged into a single artifact. - Upgrade to OTLP protobuf version 0.18.0.
- RetryInterceptor retries on
SocketTimeoutExceptionwith no message. - Added
JaegerGrpcSpanExporterBuilder#setMeterProvider(), enabling support of experimental jaeger span export metrics. - DEPRECATION: the
opentelemetry-exporter-jaeger-protomodule containing jaeger proto definitions and corresponding generated classes is deprecated for removal in next major version. - OTLP gRPC exporters support overriding
:authorityviaOtlpGrpc*ExporterBuilder#addHeader("host", "my-authority-override").
SDK Extensions
- BREAKING: Move
ConfigureableMetricExporterProviderfromopentelemetry-sdk-extension-autoconfigureto stableopentelemetry-sdk-extension-autoconfigure-spi. - Autoconfigure now supports multiple values for
otel.metrics.exporter. - Autoconfigure now supports general attribute limits, applicable to span attributes, span event attributes, span link attributes, and log attributes.
- Autoconfigure now supports an experimental option to disable the SDK. If
otel.experimental.sdk.enabled=true,AutoConfiguredOpenTelemetrySdk#getOpenTelemetrySdk()returns a minimal (but not noop)OpenTelemetrySdk. The same minimal instance is set toGlobalOpenTelemetry. - New "get or default" methods have been added to
ConfigProperties. E.g.ConfigProperties#getString("otel.metrics.exporter", "otlp")fetches the value for the propertyotel.metrics.exporterand returnsotlpif it is not set. - Fix bug in
ContainerResourceprovider that caused it to throw an exception in some instances when containerd is used.
Micrometer shim
- Cache descriptions such that metrics with the same name use the first seen description.
🙇 Thank you
This release was possible thanks to the following contributors who shared their brilliant ideas and awesome pull requests:
@anuraaga @breedx-splk @chenjazz @cyrille-leclerc @donce @Donnerbart @evantorrie @jack-berg @jkwatson @jonahaapala @jsuereth @kubawach @laurit @marcalff @mateuszrzeszutek @nicklocaso @Oberon00 @pkgonan @rupinder10 @trask @wallezhang