mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat: add ASP.NET metrics tracking
This commit is contained in:
parent
f8be242613
commit
a20f0916ac
3 changed files with 226 additions and 617 deletions
|
|
@ -1,3 +1,5 @@
|
|||
using App.Metrics.AspNetCore;
|
||||
|
||||
using Autofac.Extensions.DependencyInjection;
|
||||
|
||||
using PluralKit.Core;
|
||||
|
|
@ -20,6 +22,7 @@ public class Program
|
|||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||
Host.CreateDefaultBuilder(args)
|
||||
.UseMetrics()
|
||||
.UseServiceProviderFactory(new AutofacServiceProviderFactory())
|
||||
.UseSerilog()
|
||||
.ConfigureWebHostDefaults(whb => whb
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue