OpenTelemetry - CNCF/opentelemetry-dotnet: Release 0.5.0-beta
Name: opentelemetry-dotnet
Owner: OpenTelemetry - CNCF
Release: 0.5.0-beta.2
Released: 2020-08-28
License: Apache-2.0
Release Assets:
2nd beta release of all the packages.
Changelog
OpenTelemetry
- Changed
ActivityProcessor
to implementIDisposable
(#975) - Samplers now get the actual TraceId of the Activity to be created. (#1007)
- Changed the default sampler from
AlwaysOn
toParentOrElse(AlwaysOn)
to match the spec (#1013) - Added
SuppressInstrumentationScope
API (#988 #1067) - Changed
BroadcastActivityProcessor
toFanOutActivityProcessor
(#1015) - Changed
TracerProviderBuilder
andTracerProviderSdk
design to simply the flow and usage (#1008 #1027 #1035) - Changed
AddActivitySource
toAddSource
with params support (#1036) - Modified Sampler implementation to match the spec (#1037)
- Refactored simple export and batch export APIs (#1078 #1081 #1083 #1085 #1087 #1094 #1113 #1127 #1129 #1135)
- Changed
MeterProviderBuilder
andMeterProviderSdk
design to simply the flow and usage (#1149) - Renamed
ParentOrElseSampler
toParentBasedSampler
(#1173) - Renamed
ProbabilitySampler
toTraceIdRatioBasedSampler
(#1174)
OpenTelemetry.Api
Link
andTelemetrySpan
are usingSpanAttributes
instead ofActivityTagsCollection
orDictionary
(#1120)- Added
RecordException
inTelemetrySpan
(#1116) PropagationContext
is now used instead ofActivityContext
in theITextFormat
API (#1048)- Added
BaggageFormat
anITextFormat
implementation for managing Baggage propagation via the W3C Baggage header (#1048) - Removed
DistributedContext
as it is no longer part of the spec (#1048)) - Renaming from
ot
tootel
(#1046) - Added
RuntimeContext
API (#948) - Changed
Link
constructor to acceptActivityTagsCollection
instead ofIDictionary<string, object>
attributes (#954) - Added more
TelemetrySpan.SetAttribute
overloads with value of type bool, int, double (string already existed) (#954) - Changed
TelemetrySpan.SetAttribute
to match the spec (#954)- Setting an attribute with an existing key now results in overwriting it
- Setting null value has no impact except if null is set to an existing key, it gets removed
- Changed
HttpStatusCode
in all spans attribute (http.status_code) to use int value (#998) - Added
CompositePropagator
which accepts a list ofITextFormat
to match the spec (#923) - Replaced
ITextFormatActivity
withITextFormat
(#923) - Added
StartRootSpan
andStartActiveSpan
(#994) - Changed
StartSpan
to not set the created span as Active to match the spec (#994) - Updated System.Diagnostics.DiagnosticSource to version 5.0.0-preview.8.20407.11.
- Removed
CorrelationContext
and addedBaggage
, an implementation of theBaggage API
spec (#1106) - Renamed
TraceContextFormat
toTextMapPropagator
,BaggageFormat
toBaggagePropagator
, andB3Format
toB3Propagator
(#1175) - Renamed
ITextPropagator
toIPropagator
(#1190)
OpenTelemetry.Exporter.Console
- Changed
UseConsoleExporter
toAddConsoleExporter
, improved readability (#1051)
OpenTelemetry.Exporter.Jaeger
Changed
JaegerExporter
to useBatchExportActivityProcessor
by default (#1125)Span links will now be sent as
FOLLOWS_FROM
reference type. Previously they were sent asCHILD_OF
. (#970)Renamed extension method from
UseJaegerExporter
toAddJaegerExporter
.
OpenTelemetry.Exporter.OpenTelemetryProtocol
- Allow configurable gRPC channel options (#1033)
- Renamed extension method from
UseOtlpExporter
toAddOtlpExporter
(#1066) - Changed
OtlpExporter
to useBatchExportActivityProcessor
by default (#1104)
OpenTelemetry.Exporter.Prometheus
OpenTelemetry.Exporter.Zipkin
- Renamed extension method from
UseZipkinExporter
toAddZipkinExporter
(#1066) - Changed
ZipkinExporter
to useBatchExportActivityProcessor
by default (#1103) - Fixed issue when span has both the
net.peer.name
andnet.peer.port
attributes but did not includenet.peer.port
in the service address field (#1168).
OpenTelemetry.Exporter.ZPages
- Renamed extension method from
UseZPagesExporter
toAddZPagesExporter
(#1066) - Changed
ZPagesExporter
to useZPagesProcessor
by default (#1108)
OpenTelemetry.Extensions.Hosting
- Renamed all extension methods from AddOpenTelemetry to AddOpenTelemetryTracerProvider
OpenTelemetry.Instrumentation.AspNet
Added Filter public API on AspNetInstrumentationOptions to allow filtering of instrumentation based on HttpContext.
Asp.Net Instrumentation automatically populates HttpRequest, HttpResponse in Activity custom property
Changed the default propagation to support W3C Baggage (#1048)
- The default ITextFormat is now
CompositePropagator(TraceContextFormat, BaggageFormat)
. Baggage sent via the W3C Baggage header will now be parsed and set on incoming Http spans.
- The default ITextFormat is now
Renamed
ITextPropagator
toIPropagator
(#1190)
OpenTelemetry.Instrumentation.AspNetCore
Added Filter public API on AspNetCoreInstrumentationOptions to allow filtering of instrumentation based on HttpContext.
Asp.Net Core Instrumentation automatically populates HttpRequest, HttpResponse in Activity custom property
Changed the default propagation to support W3C Baggage (#1048)
- The default ITextFormat is now
CompositePropagator(TraceContextFormat, BaggageFormat)
. Baggage sent via the W3C Baggage header will now be parsed and set on incoming Http spans.
- The default ITextFormat is now
Introduced support for Grpc.AspNetCore (#803).
- Attributes are added to gRPC invocations:
rpc.system
,rpc.service
,rpc.method
. These attributes are added to an existing span generated by the instrumentation. This is unlike the instrumentation for client-side gRPC calls where one span is created for the gRPC call and a separate span is created for the underlying HTTP call in the event both gRPC and HTTP instrumentation are enabled.
- Attributes are added to gRPC invocations:
Renamed
ITextPropagator
toIPropagator
(#1190)
OpenTelemetry.Instrumentation.GrpcNetClient
- NuGet package renamed to OpenTelemetry.Instrumentation.GrpcNetClient to more clearly indicate that this package is specifically for gRPC client instrumentation. The package was previously named OpenTelemetry.Instrumentation.Grpc. (#1136)
- Grpc.Net.Client Instrumentation automatically populates HttpRequest in Activity custom property (#1099) (#1128)
OpenTelemetry.Instrumentation.Http
Rename FilterFunc to Filter.
HttpClient/HttpWebRequest instrumentation will now add the raw Request, Response, and/or Exception objects to the Activity it creates (#1099)
Changed the default propagation to support W3C Baggage (#1048)
- The default ITextFormat is now
CompositePropagator(TraceContextFormat, BaggageFormat)
. Outgoing Http request will now send Baggage using the W3C Baggage header. Previously Baggage was sent using theCorrelation-Context
header, which is now outdated.
- The default ITextFormat is now
Removed
AddHttpInstrumentation
andAddHttpWebRequestInstrumentation
(.NET Framework)TracerProviderBuilderExtensions
.AddHttpClientInstrumentation
will now registerHttpClient
instrumentation on .NET Core andHttpClient
+HttpWebRequest
instrumentation on .NET Framework.Renamed
ITextPropagator
toIPropagator
(#1190)
OpenTelemetry.Instrumentation.SqlClient
- .NET Core SqlClient instrumentation will now add the raw Command object to the Activity it creates (#1099)
- Renamed from
AddSqlClientDependencyInstrumentation
toAddSqlClientInstrumentation
OpenTelemetry.Instrumentation.StackExchangeRedis
OpenTelemetry.Shims.OpenTracing
- Renamed
ITextPropagator
toIPropagator
(#1190)