(this IHostApplicationBuilder builder)
| 12 | public static class Extensions |
| 13 | { |
| 14 | public static IHostApplicationBuilder AddServiceDefaults(this IHostApplicationBuilder builder) |
| 15 | { |
| 16 | builder.ConfigureOpenTelemetry(); |
| 17 | |
| 18 | builder.AddDefaultHealthChecks(); |
| 19 | |
| 20 | builder.Services.AddServiceDiscovery(); |
| 21 | |
| 22 | builder.Services.ConfigureHttpClientDefaults(http => |
| 23 | { |
| 24 | // Turn on resilience by default |
| 25 | http.AddStandardResilienceHandler(); |
| 26 | |
| 27 | // Turn on service discovery by default |
| 28 | http.AddServiceDiscovery(); |
| 29 | }); |
| 30 | |
| 31 | return builder; |
| 32 | } |
| 33 | |
| 34 | public static IHostApplicationBuilder ConfigureOpenTelemetry(this IHostApplicationBuilder builder) |
| 35 | { |
no test coverage detected