extensions
extensions copied to clipboard
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
### Description When registering the standard resilience handler using `builder.Services.ConfigureHttpClientDefaults(x => x.AddStandardResilienceHandler)`, all `HttpClient`s seem to be using a shared circuit breaker. When one client is causing the circuit to...
### Description I debated if this was a bug or a feature request, but since Aspire sets this by the default (which it should) and then every single HttpClient you...
### Background and motivation Clients using new resilience APIs based on top of Polly v8 might want to access `HttpRequestMessage` associated with the attempt being executed. This would allow the...
The HTTP resiliency features, including those added by the `IHttpClientBuilder.AddStandardResilienceHandler` method, don't apply to gRPC calls despite them going through configured `HttpClient` instances. This is due to the gRPC stack...
### Description The `HttpClient.Timeout` interferes with the `TotalRequestTimeout` when using HttpClient with standard pipeline. If `HttpClient.Timeout` is less than `TotalRequestTimeout`, then the `TotalRequestTimeout` is ignored. This causes mis-alignment and unexpected...
### Background and motivation When developing a web service, logs are usually added for unhappy path, for example, a database query failed because the remote server was unreachable. The code...
### Background and motivation In the aspnetcore extensions repo, in the Microsoft.Extensions.Http.Polly project there are extension methods for HttpClientBuilder so that you can use polly v7 constructs to append policies...
### Description When checking health based on resource utilization, the conditions are checked in series and only the first failure is reported. https://github.com/dotnet/extensions/blob/68810ca7399be38b8490a114ef52fdae4ce00058/src/Libraries/Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization/ResourceUtilizationHealthCheck.cs#L39-L60 ### Reproduction Steps Test on a system...
### Description If a connection establishment is failing with a timeout, configured on the SocketsHttpHandler, hedged requests are not generated and the whole pipeline fails. ### Reproduction Steps PreReq: -...
As explained in the [package's README](https://github.com/dotnet/extensions/tree/main/src/Libraries/Microsoft.Extensions.Telemetry.Abstractions#microsoftextensionstelemetryabstractions), Microsoft.Extensions.Telemetry.Abstractions includes a logging generator that replaces the one from Microsoft.Extensions.Logging.Abstractions as it supersedes it by adding more features to it. One thing that...