Skip to content

Commit

Permalink
perf(deps): bump Serilog.HttpClient from 1.0.0 to 2.0.0 (#13)
Browse files Browse the repository at this point in the history
* chore(deps): bump Serilog.HttpClient from 1.0.0 to 2.0.0

Bumps [Serilog.HttpClient](https://github.com/alirezavafi/serilog-httpclient) from 1.0.0 to 2.0.0.
- [Release notes](https://github.com/alirezavafi/serilog-httpclient/releases)
- [Commits](https://github.com/alirezavafi/serilog-httpclient/commits)

---
updated-dependencies:
- dependency-name: Serilog.HttpClient
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix Serilog.HttpClient

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ali zaferany <ali.zaferany79@gmail.com>
  • Loading branch information
dependabot[bot] and Azaferany authored Sep 3, 2022
1 parent 9272628 commit b4d04c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<PackageReference Include="Serilog.AspNetCore" Version="6.0.1" />
<PackageReference Include="Serilog.Enrichers.Span" Version="2.3.0" />
<PackageReference Include="Serilog.Expressions" Version="3.4.0" />
<PackageReference Include="Serilog.HttpClient" Version="1.0.0" />
<PackageReference Include="Serilog.HttpClient" Version="2.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
<PackageReference Include="IdentityModel.AspNetCore.AccessTokenValidation" Version="1.0.0-preview.3" />
<PackageReference Include="IdentityModel.AspNetCore.OAuth2Introspection" Version="6.1.0" />
Expand Down
8 changes: 4 additions & 4 deletions src/QuickstartTemplate.WebApi/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using QuickstartTemplate.Infrastructure.Common;
using QuickstartTemplate.Infrastructure.DbContexts;
using Serilog;
using Serilog.HttpClient;
using Serilog.HttpClient.Extensions;
using StackExchange.Redis;

namespace QuickstartTemplate.WebApi;
Expand Down Expand Up @@ -110,7 +110,7 @@ public void ConfigureServices(IServiceCollection services)

services.AddSingleton<IHttpMessageHandlerBuilderFilter, GlobalHttpMessageHandlerBuilderFilter>();

// added handlers to this client will apply to all clients
// added handlers to this client will apply to all clients
services.AddHttpClient(GlobalHttpMessageHandlerBuilderFilter.GlobalMessageHandlerConfigure)
//Collect metrics for all HttpClient instances created using IHttpClientFactory.
//https://github.com/prometheus-net/prometheus-net#ihttpclientfactory-metrics
Expand Down Expand Up @@ -245,9 +245,9 @@ public void ConfigureServices(IServiceCollection services)
.WithExceptionStats()
.WithErrorHandler(ex => Console.WriteLine("ERROR on per: " + ex))
.StartCollecting();

//https://github.com/prometheus-net/prometheus-net#eventcounter-integration
// Collect below metrics and more
// Collect below metrics and more
//https://www.npgsql.org/doc/diagnostics/metrics.html
//https://docs.microsoft.com/en-us/ef/core/logging-events-diagnostics/event-counters?tabs=windows
//https://docs.microsoft.com/en-us/dotnet/core/diagnostics/available-counters
Expand Down

0 comments on commit b4d04c4

Please sign in to comment.