Releases: open-telemetry/opentelemetry-go
Releases · open-telemetry/opentelemetry-go
Release v0.32.2 -- Metric SDK (Alpha)
Added
- Added an example of using metric views to customize instruments. (#3177)
- Add default User-Agent header to OTLP exporter requests (
go.opentelemetry.io/otel/exporters/otlpmetric/otlpmetricgrpcandgo.opentelemetry.io/otel/exporters/otlpmetric/otlpmetrichttp). (#3261)
Changed
- Flush pending measurements with the
PeriodicReaderin thego.opentelemetry.io/otel/sdk/metricwhenForceFlushorShutdownare called. (#3220) - Update histogram default bounds to match the requirements of the latest specification. (#3222)
Fixed
- Use default view if instrument does not match any registered view of a reader. (#3224, #3237)
- Return the same instrument every time a user makes the exact same instrument creation call. (#3229, #3251)
- Return the existing instrument when a view transforms a creation call to match an existing instrument. (#3240, #3251)
- Log a warning when a conflicting instrument (e.g. description, unit, data-type) is created instead of returning an error. (#3251)
- The OpenCensus bridge no longer sends empty batches of metrics. (#3263)
Release v0.32.1 -- Metric SDK (Alpha)
Changed
- The Prometheus exporter sanitizes OpenTelemetry instrument names when exporting. Invalid characters are replaced with
_. (#3212)
Added
- The metric portion of the OpenCensus bridge (
go.opentelemetry.io/otel/bridge/opencensus) has been reintroduced. (#3192) - The OpenCensus bridge example (
go.opentelemetry.io/otel/example/opencensus) has been reintroduced. (#3206)
Fixed
Release v0.32.0 -- Metric SDK (Alpha)
Changed
- The metric SDK in
go.opentelemetry.io/otel/sdk/metricis completely refactored to comply with the OpenTelemetry specification. Please see the package documentation for how the new SDK is initialized and configured. (#3175)
Removed
- The metric portion of the OpenCensus bridge (
go.opentelemetry.io/otel/bridge/opencensus) has been removed. A new bridge compliant with the revised metric SDK will be added back in a future release. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/aggregator/aggregatortestpackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/aggregator/histogrampackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/aggregator/lastvaluepackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/aggregator/sumpackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/aggregatorpackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/controller/basicpackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/controller/controllertestpackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/controller/timepackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/export/aggregationpackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/exportpackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/metrictestpackage is removed. A replacement package that supports the new metric SDK will be added back in a future release. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/numberpackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/processor/basicpackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/processor/processortestpackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/processor/reducerpackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/registrypackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/sdkapipackage is removed, see the new metric SDK. (#3175) - The
go.opentelemetry.io/otel/sdk/metric/selector/simplepackage is removed, see the new metric SDK. (#3175) - The
"go.opentelemetry.io/otel/sdk/metric".ErrUninitializedInstrumentvariable was removed. (#3175) - The
"go.opentelemetry.io/otel/sdk/metric".ErrBadInstrumentvariable was removed. (#3175) - The
"go.opentelemetry.io/otel/sdk/metric".Accumulatortype was removed, see theMeterProviderin the new metric SDK. (#3175) - The
"go.opentelemetry.io/otel/sdk/metric".NewAccumulatorfunction was removed, seeNewMeterProviderin the new metric SDK. (#3175) - The deprecated
"go.opentelemetry.io/otel/sdk/metric".AtomicFieldOffsetsfunction was removed. (#3175)
Release v1.10.0
Added
- Support Go 1.19. (#3077)
Include compatibility testing and document support. (#3077) - Support the OTLP ExportTracePartialSuccess response; these are passed to the registered error handler. (#3106)
- Upgrade go.opentelemetry.io/proto/otlp from v0.18.0 to v0.19.0 (#3107)
Changed
- Fix misidentification of OpenTelemetry
SpanKindin OpenTracing bridge (go.opentelemetry.io/otel/bridge/opentracing). (#3096) - Attempting to start a span with a nil
contextwill no longer cause a panic. (#3110) - All exporters will be shutdown even if one reports an error (#3091)
- Ensure valid UTF-8 when truncating over-length attribute values. (#3156)
Release v1.9.0/v0.0.3
Added
- Add support for Schema Files format 1.1.x (metric "split" transform) with the new
go.opentelemetry.io/otel/schema/v1.1package. (#2999) - Add the
go.opentelemetry.io/otel/semconv/v1.11.0package.
The package contains semantic conventions from thev1.11.0version of the OpenTelemetry specification. (#3009) - Add the
go.opentelemetry.io/otel/semconv/v1.12.0package.
The package contains semantic conventions from thev1.12.0version of the OpenTelemetry specification. (#3010) - Add the
http.methodattribute to HTTP server metric from allgo.opentelemetry.io/otel/semconv/*packages. (#3018)
Fixed
- Invalid warning for context setup being deferred in
go.opentelemetry.io/otel/bridge/opentracingpackage. (#3029)
Release v1.8.0/v0.31.0
1.8.0/0.31.0 - 2022-07-08
Added
- Add support for
opentracing.TextMapformat in theInjectandExtractmethods
of the"go.opentelemetry.io/otel/bridge/opentracing".BridgeTracertype. (#2911)
Changed
- The
crosslinkmake target has been updated to use thego.opentelemetry.io/build-tools/crosslinkpackage. (#2886) - In the
go.opentelemetry.io/otel/sdk/instrumentationpackage renameLibrarytoScopeand aliasLibraryasScope(#2976) - Move metric no-op implementation form
nonrecordingtometricpackage. (#2866)
Removed
- Support for go1.16. Support is now only for go1.17 and go1.18 (#2917)
Deprecated
- The
Librarystruct in thego.opentelemetry.io/otel/sdk/instrumentationpackage is deprecated.
Use the equivalentScopestruct instead. (#2977) - The
ReadOnlySpan.InstrumentationLibrarymethod from thego.opentelemetry.io/otel/sdk/tracepackage is deprecated.
Use the equivalentReadOnlySpan.InstrumentationScopemethod instead. (#2977)
Release v1.7.0/v0.30.0
Added
- Add the
go.opentelemetry.io/otel/semconv/v1.8.0package.
The package contains semantic conventions from thev1.8.0version of the OpenTelemetry specification. (#2763) - Add the
go.opentelemetry.io/otel/semconv/v1.9.0package.
The package contains semantic conventions from thev1.9.0version of the OpenTelemetry specification. (#2792) - Add the
go.opentelemetry.io/otel/semconv/v1.10.0package.
The package contains semantic conventions from thev1.10.0version of the OpenTelemetry specification. (#2842) - Added an in-memory exporter to metrictest to aid testing with a full SDK. (#2776)
Fixed
- Globally delegated instruments are unwrapped before delegating asynchronous callbacks. (#2784)
- Remove import of
testingpackage in non-tests builds of thego.opentelemetry.io/otelpackage. (#2786)
Changed
- The
WithLabelEncoderoption from thego.opentelemetry.io/otel/exporters/stdout/stdoutmetricpackage is renamed toWithAttributeEncoder. (#2790) - The
LabelFilterSelectorinterface fromgo.opentelemetry.io/otel/sdk/metric/processor/reduceris renamed toAttributeFilterSelector.
The method included in the renamed interface also changed fromLabelFilterFortoAttributeFilterFor. (#2790) - The
Metadata.Labelsmethod from thego.opentelemetry.io/otel/sdk/metric/exportpackage is renamed toMetadata.Attributes.
Consequentially, theRecordtype from the same package also has had the embedded method renamed. (#2790)
Deprecated
- The
Iterator.Labelmethod in thego.opentelemetry.io/otel/attributepackage is deprecated.
Use the equivalentIterator.Attributemethod instead. (#2790) - The
Iterator.IndexedLabelmethod in thego.opentelemetry.io/otel/attributepackage is deprecated.
Use the equivalentIterator.IndexedAttributemethod instead. (#2790) - The
MergeIterator.Labelmethod in thego.opentelemetry.io/otel/attributepackage is deprecated.
Use the equivalentMergeIterator.Attributemethod instead. (#2790)
Removed
Release metric/v0.29.0
0.29.0 - 2022-04-11
Added
- The metrics global package was added back into several test files. (#2764)
- The
Meterfunction is added back to thego.opentelemetry.io/otel/metric/globalpackage.
This function is a convenience function equivalent to callingglobal.MeterProvider().Meter(...). (#2750)
Removed
- Removed module the
go.opentelemetry.io/otel/sdk/export/metric.
Use thego.opentelemetry.io/otel/sdk/metricmodule instead. (#2720)
Changed
- Don't panic anymore when setting a global MeterProvider to itself. (#2749)
- Upgrade
go.opentelemetry.io/proto/otlpingo.opentelemetry.io/otel/exporters/otlp/otlpmetricfromv0.12.1tov0.15.0.
This replaces the use of the now deprecatedInstrumentationLibraryandInstrumentationLibraryMetricstypes and fields in the proto library with the equivalentInstrumentationScopeandScopeMetrics. (#2748)
Release v1.6.3
Release v1.6.2
1.6.2 - 2022-04-06
Changed
- Don't panic anymore when setting a global TracerProvider or TextMapPropagator to itself. (#2749)
- Upgrade
go.opentelemetry.io/proto/otlpingo.opentelemetry.io/otel/exporters/otlp/otlptracefromv0.12.1tov0.15.0.
This replaces the use of the now deprecatedInstrumentationLibraryandInstrumentationLibrarySpanstypes and fields in the proto library with the equivalentInstrumentationScopeandScopeSpans. (#2748)