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
ActivityProcessorto implementIDisposable(#975) - Samplers now get the actual TraceId of the Activity to be created. (#1007)
- Changed the default sampler from
AlwaysOntoParentOrElse(AlwaysOn)to match the spec (#1013) - Added
SuppressInstrumentationScopeAPI (#988 #1067) - Changed
BroadcastActivityProcessortoFanOutActivityProcessor(#1015) - Changed
TracerProviderBuilderandTracerProviderSdkdesign to simply the flow and usage (#1008 #1027 #1035) - Changed
AddActivitySourcetoAddSourcewith 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
MeterProviderBuilderandMeterProviderSdkdesign to simply the flow and usage (#1149) - Renamed
ParentOrElseSamplertoParentBasedSampler(#1173) - Renamed
ProbabilitySamplertoTraceIdRatioBasedSampler(#1174)
OpenTelemetry.Api
LinkandTelemetrySpanare usingSpanAttributesinstead ofActivityTagsCollectionorDictionary(#1120)- Added
RecordExceptioninTelemetrySpan(#1116) PropagationContextis now used instead ofActivityContextin theITextFormatAPI (#1048)- Added
BaggageFormatanITextFormatimplementation for managing Baggage propagation via the W3C Baggage header (#1048) - Removed
DistributedContextas it is no longer part of the spec (#1048)) - Renaming from
ottootel(#1046) - Added
RuntimeContextAPI (#948) - Changed
Linkconstructor to acceptActivityTagsCollectioninstead ofIDictionary<string, object>attributes (#954) - Added more
TelemetrySpan.SetAttributeoverloads with value of type bool, int, double (string already existed) (#954) - Changed
TelemetrySpan.SetAttributeto 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
HttpStatusCodein all spans attribute (http.status_code) to use int value (#998) - Added
CompositePropagatorwhich accepts a list ofITextFormatto match the spec (#923) - Replaced
ITextFormatActivitywithITextFormat(#923) - Added
StartRootSpanandStartActiveSpan(#994) - Changed
StartSpanto 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
CorrelationContextand addedBaggage, an implementation of theBaggage APIspec (#1106) - Renamed
TraceContextFormattoTextMapPropagator,BaggageFormattoBaggagePropagator, andB3FormattoB3Propagator(#1175) - Renamed
ITextPropagatortoIPropagator(#1190)
OpenTelemetry.Exporter.Console
- Changed
UseConsoleExportertoAddConsoleExporter, improved readability (#1051)
OpenTelemetry.Exporter.Jaeger
Changed
JaegerExporterto useBatchExportActivityProcessorby default (#1125)Span links will now be sent as
FOLLOWS_FROMreference type. Previously they were sent asCHILD_OF. (#970)Renamed extension method from
UseJaegerExportertoAddJaegerExporter.
OpenTelemetry.Exporter.OpenTelemetryProtocol
- Allow configurable gRPC channel options (#1033)
- Renamed extension method from
UseOtlpExportertoAddOtlpExporter(#1066) - Changed
OtlpExporterto useBatchExportActivityProcessorby default (#1104)
OpenTelemetry.Exporter.Prometheus
OpenTelemetry.Exporter.Zipkin
- Renamed extension method from
UseZipkinExportertoAddZipkinExporter(#1066) - Changed
ZipkinExporterto useBatchExportActivityProcessorby default (#1103) - Fixed issue when span has both the
net.peer.nameandnet.peer.portattributes but did not includenet.peer.portin the service address field (#1168).
OpenTelemetry.Exporter.ZPages
- Renamed extension method from
UseZPagesExportertoAddZPagesExporter(#1066) - Changed
ZPagesExporterto useZPagesProcessorby 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
ITextPropagatortoIPropagator(#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
ITextPropagatortoIPropagator(#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-Contextheader, which is now outdated.
- The default ITextFormat is now
Removed
AddHttpInstrumentationandAddHttpWebRequestInstrumentation(.NET Framework)TracerProviderBuilderExtensions.AddHttpClientInstrumentationwill now registerHttpClientinstrumentation on .NET Core andHttpClient+HttpWebRequestinstrumentation on .NET Framework.Renamed
ITextPropagatortoIPropagator(#1190)
OpenTelemetry.Instrumentation.SqlClient
- .NET Core SqlClient instrumentation will now add the raw Command object to the Activity it creates (#1099)
- Renamed from
AddSqlClientDependencyInstrumentationtoAddSqlClientInstrumentation
OpenTelemetry.Instrumentation.StackExchangeRedis
OpenTelemetry.Shims.OpenTracing
- Renamed
ITextPropagatortoIPropagator(#1190)