Version 1.22.0
API
- WARNING: GlobalOpenTelemetry trigger of autoconfiguration is now opt-in. Previously,
GlobalOpenTelemetry.gettriggered autoconfiguration ifopentelemetry-sdk-extension-autoconfigurewas detected on the classpath. That behavior is now opt-in by setting environment variableOTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED=true. (#5010) - Update LoggerBuilder, MeterBuilder, TracerBuilder javadoc (#5050)
Context
- Make closing scope idempotent and non-operational when corresponding context is not current. (#5061)
SDK
- Standardize internal usage of
ConfigUtilfor reading environment variables and system properties (#5048)
Metrics
- Lazily initialize exponential histogram buckets (#5023)
- Delete MapCounter alternative exponential histogram implementation (#5047)
- Add toString to SdkMeter, SdkObservableInstrument, AbstractInstrumentBuilder (#5072)
Exporter
OtlpGrpcSpanExporter,OtlpHttpSpanExporter,OtlpGrpcLogRecordExporter,OtlpHttpLogRecordExporter,ZipkinSpanExporter, andJaegerGrpcSpanExporterare now instrumented withGlobalOpenTelemetryby default. Instrumentation initializes lazily to prevent ordering issue of accessingGlobalOpenTelemetry.getbeforeGlobalOpenTelemetry.setis called. (#4993)- Add
ConfigurableSpanExporterProviderimplementation forJaegerGrpcSpanExporter(#5002) - Add
ConfigurableSpanExporterProvider,ConfigurableMetricExporterProvider,ConfigurableLogRecordExporterProviderforOtlpGrpc{Signal}Exporters andOtlpHttp{SignalExporters (#5003) - Replace OTLP User-Agent spaces with dashes (#5080)
- Add
AutoConfigurationCustomizerProviderimplementation forPrometheusHttpServer(#5053) - Add resource
target_infoand scopetarget_infometrics toPrometheusHttpServerin compliance with spec (#5039) - Drop delta metrics in
PrometheusHttpServer(#5062) - PrometheusHttpServer drops metrics with same name and different type (#5078)
SDK Extensions
- DEPRECATION: Align autoconfigure exemplar filter names with spec. Previous names
none,all,with_sampled_traceare deprecated. Usealways_off,always_on,trace_basedinstead. (#5063)
OpenTracing Shim
- Add createTracerShim function (#4988)
🙇 Thank you
This release was possible thanks to the following contributors who shared their brilliant ideas and awesome pull requests:
@amouhadi
@brunobat
@carlosalberto
@cuichenli
@dashpole
@deejgregor
@jack-berg
@jkwatson
@lmolkova
@mateuszrzeszutek
@Oberon00
@RajatArora08
@trask
@vasireddy99
@yangtaoran