v1.0.0-RC2
版本发布时间: 2021-07-27 03:13:14
open-telemetry/opentelemetry-go最新发布版本:v1.30.0(2024-09-11 05:35:18)
Added
- Added
WithOSDescription
resource configuration option to set OS (Operating System) description resource attribute (os.description
). (#1840) - Added
WithOS
resource configuration option to set all OS (Operating System) resource attributes at once. (#1840) - Added the
WithRetry
option to thego.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
package. This option is a replacement for the removedWithMaxAttempts
andWithBackoff
options. (#2095) - Added API
LinkFromContext
to return Link which encapsulates SpanContext from provided context and also encapsulates attributes. (#2115) - Added a new
Link
type under the SDKotel/sdk/trace
package that counts the number of attributes that were dropped for surpassing theAttributePerLinkCountLimit
configured in the Span'sSpanLimits
. This new type replaces the equal-named APILink
type found in theotel/trace
package for most usages within the SDK. For example, instances of this type are now returned by theLinks()
function ofReadOnlySpan
s provided in places like theOnEnd
function ofSpanProcessor
implementations. (#2118)
Changed
- The
SpanModels
function is now exported from thego.opentelemetry.io/otel/exporters/zipkin
package to convert OpenTelemetry spans into Zipkin model spans. (#2027) - Rename the
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc".RetrySettings
toRetryConfig
. (#2095) - Rename the
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp".RetrySettings
toRetryConfig
. (#2095)
Deprecated
- The
TextMapCarrier
andTextMapPropagator
from thego.opentelemetry.io/otel/oteltest
package and their associated creation functions (TextMapCarrier
,NewTextMapPropagator
) are deprecated. (#2114) - The
Harness
type from thego.opentelemetry.io/otel/oteltest
package and its associated creation function,NewHarness
are deprecated and will be removed in the next release. (#2123) - The
TraceStateFromKeyValues
function from thego.opentelemetry.io/otel/oteltest
package is deprecated. Use thetrace.ParseTraceState
function instead. (#2122)
Removed
- Removed the deprecated package
go.opentelemetry.io/otel/exporters/trace/jaeger
. (#2020) - Removed the deprecated package
go.opentelemetry.io/otel/exporters/trace/zipkin
. (#2020) - Removed the
"go.opentelemetry.io/otel/sdk/resource".WithBuiltinDetectors
function. The explicitWith*
options for every built-in detector should be used instead. (#2026 #2097) - Removed the
WithMaxAttempts
andWithBackoff
options from thego.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
package. The retry logic of the package has been updated to match theotlptracegrpc
package and accordingly aWithRetry
option is added that should be used instead. (#2095) - Removed
DroppedAttributeCount
field fromotel/trace.Link
struct. (#2118)
Fixed
- When using WithNewRoot, don't use the parent context for making sampling decisions. (#2032)
-
oteltest.Tracer
now creates a validSpanContext
when usingWithNewRoot
. (#2073) - OS type detector now sets the correct
dragonflybsd
value for DragonFly BSD. (#2092) - The OTel span status is correctly transformed into the OTLP status in the
go.opentelemetry.io/otel/exporters/otlp/otlptrace
package. This fix will by default set the status toUnset
if it is not explicitly set toOk
orError
. (#2099 #2102) - The
Inject
method for the"go.opentelemetry.io/otel/propagation".TraceContext
type no longer injects emptytracestate
values. (#2108)