OpenTelemetry - CNCF/opentelemetry-go: Release v1.5.0
Name: opentelemetry-go
Owner: OpenTelemetry - CNCF
Release: Release v1.5.0
Released: 2022-03-16
License: Apache-2.0
Release Assets:
Added
Log the Exporters configuration in the TracerProviders message. (#2578)
Added support to configure the span limits with environment variables. The following environment variables are supported. (#2606, #2637)
OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMITOTEL_SPAN_ATTRIBUTE_COUNT_LIMITOTEL_SPAN_EVENT_COUNT_LIMITOTEL_EVENT_ATTRIBUTE_COUNT_LIMITOTEL_SPAN_LINK_COUNT_LIMITOTEL_LINK_ATTRIBUTE_COUNT_LIMIT
If the provided environment variables are invalid (negative), the default values would be used.
Rename the
gcruntime name togo(#2560)Add resource container ID detection. (#2418)
Add span attribute value length limit. The new
AttributeValueLengthLimitfield is added to the"go.opentelemetry.io/otel/sdk/trace".SpanLimitstype to configure this limit for aTracerProvider. The default limit for this resource is "unlimited". (#2637)Add the
WithRawSpanLimitsoption togo.opentelemetry.io/otel/sdk/trace. This option replaces theWithSpanLimitsoption. Zero or negative values will not be changed to the default value likeWithSpanLimitsdoes. Setting a limit to zero will effectively disable the related resource it limits and setting to a negative value will mean that resource is unlimited. Consequentially, limits should be constructed usingNewSpanLimitsand updated accordingly. (#2637)
Changed
- Drop oldest tracestate
Memberwhen capacity is reached. (#2592) - Add event and link drop counts to the exported data from the
oltptraceexporter. (#2601) - Unify path cleaning functionally in the
otlpmetricandotlptraceconfiguration. (#2639) - Change the debug message from the
sdk/trace.BatchSpanProcessorto reflect the count is cumulative. (#2640) - Introduce new internal
envconfigpackage for OTLP exporters. (#2608) - If
http.Request.Hostis empty, fall back to useURL.Hostwhen populatinghttp.hostin thesemconvpackages. (#2661)
Fixed
- Remove the OTLP trace exporter limit of SpanEvents when exporting. (#2616)
- Default to port
4318instead of4317for theotlpmetrichttpandotlptracehttpclient. (#2614, #2625) - Unlimited span limits are now supported (negative values). (#2636, #2637)
Deprecated
- Deprecated
"go.opentelemetry.io/otel/sdk/trace".WithSpanLimits. UseWithRawSpanLimitsinstead. That option allows setting unlimited and zero limits, this option does not. This option will be kept until the next major version incremented release. (#2637)