OpenTelemetry
-
The
AddService
ResourceBuilder
extension method will now generate the sameservice.instance.id
for the lifetime of a process whenautoGenerateServiceInstanceId
istrue
. (#4988) -
Fixed a Metrics SDK bug which led to
ExemplarReservoir.Offer
always being called regardless of whether or not theExemplarFilter
sampled the measurement. (#5004) (#5016) -
Update Metrics SDK to override the default histogram buckets for the followingmetrics from ASP.NET Core and HttpClient runtime:
signalr.server.connection.duration
kestrel.connection.duration
http.client.connection.duration
These histogram metrics which have their
Unit
ass
(second) will have their default histogram buckets as[ 0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300 ]
. (#5008) (#5021) -
Remove the bucket with value
0
for histogram buckets for all metrics from ASP.NET Core and HttpClient. (#5021) -
Updated
Microsoft.Extensions.Logging.Configuration
package version to8.0.0
. (#5051) -
Updated
Microsoft.Extensions.Logging
package version to8.0.0
. (#5051) -
Revert the default behavior of Metrics SDK for Delta aggregation. It would not reclaim unused Metric Points by default. You can enable the SDK to reclaim unused Metric Points by setting the environment variable
OTEL_DOTNET_EXPERIMENTAL_METRICS_RECLAIM_UNUSED_METRIC_POINTS
totrue
before setting up theMeterProvider
. (#5052) -
Update Metrics SDK to override the default histogram buckets for ASP.NET (.NET Framework).
Histogram metrics for the meter name
OpenTelemetry.Instrumentation.AspNet
and instrument namehttp.request.server.duration
which have theirUnit
ass
(second) will have their default histogram buckets as[ 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10 ]
. (#5063) -
Added
AddProcessor
overload onOpenTelemetryLoggerOptions
which exposes the factory pattern(Func<IServiceProvider, BaseProcessor<LogRecord>> implementationFactory)
. (#4916) -
Add support for Instrumentation Scope Attributes (i.e Meter Tags), fixing issue #4563. (#5089)
-
Added the
ILoggingBuilder.UseOpenTelemetry
experimental API extension for registering OpenTelemetryILogger
integration usingLoggerProviderBuilder
which supports the full DI (IServiceCollection
\IServiceProvider
) API surface (mirrors tracing & metrics). (#5072) -
Changed the
ILoggingBuilder
registration extensions (AddOpenTelemetry
&UseOpenTelemetry
) to fire the optionalOpenTelemetryLoggerOptions
configuration delegate AFTER the "Logging:OpenTelemetry"IConfiguration
section has been applied. (#5072)
OpenTelemetry.Api
- Updated
System.Diagnostics.DiagnosticSource
package version to8.0.0
. (#5051)
OpenTelemetry.Api.ProviderBuilderExtensions
- Updated
Microsoft.Extensions.DependencyInjection.Abstractions
package version to8.0.0
. (#5051)
OpenTelemetry.Exporter.Console
- Add support for Instrumentation Scope Attributes (i.e Meter Tags), fixing issue #4563. (#5089)
OpenTelemetry.Exporter.OpenTelemetryProtocol
-
Made
OpenTelemetry.Exporter.OtlpLogExporter
public. (#4979) -
Updated the
OpenTelemetryLoggerOptions.AddOtlpExporter
extension to retrieveOtlpExporterOptions
andLogRecordExportProcessorOptions
using theIServiceProvider
/ Options API so that they can be controlled viaIConfiguration
(similar to metrics and traces). (#4916) -
Added an
OpenTelemetryLoggerOptions.AddOtlpExporter
extension overload which accepts aname
parameter to support named options. (#4916) -
Add support for Instrumentation Scope Attributes (i.e Meter Tags),
fixing issue #4563. (#5089)
OpenTelemetry.Extensions.Hosting
-
Updated
Microsoft.Extensions.Hosting.Abstractions
package version to8.0.0
. (#5051) -
The
OpenTelemetryBuilder.WithMetrics
method will now register anIMetricsListener
named 'OpenTelemetry' into theIServiceCollection
to enable metric management via the newMicrosoft.Extensions.Diagnostics
.NET 8 APIs. (#4958) -
The
OpenTelemetryBuilder.WithLogging
experimental API method will now register anILoggerProvider
named 'OpenTelemetry' into theIServiceCollection
to enableILoggerFactory
integration. (#5072)