OpenTelemetry - CNCF/opentelemetry-java: Release v1.4.0
Name: opentelemetry-java
Owner: OpenTelemetry - CNCF
Release: Version 1.4.0
Released: 2021-07-09
License: Apache-2.0
Release Assets:
API
Enhancements
- You can now assign an OpenTelemetry schema URL to a
Tracer
via the newTracerBuilder
class that is accessed via theTracerProvider
or any of the global instances that delegate to one.
Extensions
- A new
@SpanAttribute
annotation 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 ofCompletableResultCode
for the calls beyond the first.
SDK
Bugfixes
- If the
jdk.unsupported
package is not available, theBatchSpanProcessor
will now fall back to a supported, standardQueue
implementation.
Enhancements
- A
Resource
can now be assigned an OpenTelemetry schema URL via theResourceBuilder
or thecreate(Attributes, String)
method on theResource
itself. - You can now obtain a default
Clock
based on system time viaClock.getDefault
. The sdk-testing artifact also provides aTestClock
for unit testing.
Semantic Conventions (alpha)
- The
SemanticAttributes
andResourceAttributes
classes have been updated to match the semantic conventions as of specification release1.4.0
. These classes also now expose aSCHEMA_URL
field 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
Meter
via the newMeterBuilder
class that is accessed via theMeterProvider
or any global instances that delegate to one. - The metrics SDK now utilizes
Attributes
rather thanLabels
internally. - You can now register an
IntervalMetricReader
as global andforceFlush
the global reader.