Release v1.5.0
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_LIMIT
OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT
OTEL_SPAN_EVENT_COUNT_LIMIT
OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT
OTEL_SPAN_LINK_COUNT_LIMIT
OTEL_LINK_ATTRIBUTE_COUNT_LIMIT
If the provided environment variables are invalid (negative), the default values would be used.
-
Rename the
gc
runtime name togo
(#2560) -
Add resource container ID detection. (#2418)
-
Add span attribute value length limit.
The newAttributeValueLengthLimit
field is added to the"go.opentelemetry.io/otel/sdk/trace".SpanLimits
type to configure this limit for aTracerProvider
.
The default limit for this resource is "unlimited". (#2637) -
Add the
WithRawSpanLimits
option togo.opentelemetry.io/otel/sdk/trace
.
This option replaces theWithSpanLimits
option.
Zero or negative values will not be changed to the default value likeWithSpanLimits
does.
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 usingNewSpanLimits
and updated accordingly. (#2637)
Changed
- Drop oldest tracestate
Member
when capacity is reached. (#2592) - Add event and link drop counts to the exported data from the
oltptrace
exporter. (#2601) - Unify path cleaning functionally in the
otlpmetric
andotlptrace
configuration. (#2639) - Change the debug message from the
sdk/trace.BatchSpanProcessor
to reflect the count is cumulative. (#2640) - Introduce new internal
envconfig
package for OTLP exporters. (#2608) - If
http.Request.Host
is empty, fall back to useURL.Host
when populatinghttp.host
in thesemconv
packages. (#2661)
Fixed
- Remove the OTLP trace exporter limit of SpanEvents when exporting. (#2616)
- Default to port
4318
instead of4317
for theotlpmetrichttp
andotlptracehttp
client. (#2614, #2625) - Unlimited span limits are now supported (negative values). (#2636, #2637)
Deprecated
- Deprecated
"go.opentelemetry.io/otel/sdk/trace".WithSpanLimits
.
UseWithRawSpanLimits
instead.
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)