OpenTelemetry - java
Notes
no notes yet
API
Enhancements
- You can now assign an OpenTelemetry schema URL to a
Tracervia the newTracerBuilderclass that is accessed via theTracerProvideror any of the global instances that delegate to one.
Extensions
- A new
@SpanAttributeannotation has been added for adding method parameters to spans automatically. This has no implementation in this release, but should be supported by the auto-instrumentation agent soon.
Exporters
Bugfixes
- Calling
shutdown()multiple times on the OTLP and Jaeger GRPC-based exporters will now work correctly and return a proper implementation ofCompletableResultCodefor the calls beyond the first.
SDK
Bugfixes
- If the
jdk.unsupportedpackage is not available, theBatchSpanProcessorwill now fall back to a supported, standardQueueimplementation.
Enhancements
- A
Resourcecan now be assigned an OpenTelemetry schema URL via theResourceBuilderor thecreate(Attributes, String)method on theResourceitself. - You can now obtain a default
Clockbased on system time viaClock.getDefault. The sdk-testing artifact also provides aTestClockfor unit testing.
Semantic Conventions (alpha)
- The
SemanticAttributesandResourceAttributesclasses have been updated to match the semantic conventions as of specification release1.4.0. These classes also now expose aSCHEMA_URLfield which points at the version of the OpenTelemetry schema the files were generated from. There are no breaking changes in this update, only additions.
Metrics (alpha)
- You can now assign an OpenTelemetry schema URL to a
Metervia the newMeterBuilderclass that is accessed via theMeterProvideror any global instances that delegate to one. - The metrics SDK now utilizes
Attributesrather thanLabelsinternally. - You can now register an
IntervalMetricReaderas global andforceFlushthe global reader.