add metrics (without reporting, for now)
This commit is contained in:
parent
5585ffd6ea
commit
14b132e466
9 changed files with 183 additions and 9 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using App.Metrics;
|
||||
using Catalogger.Backend.Bot.Commands;
|
||||
using Catalogger.Backend.Database;
|
||||
using Catalogger.Backend.Extensions;
|
||||
|
|
@ -49,6 +50,11 @@ builder.Host
|
|||
.AddInteractionGroup<ChannelCommandsComponents>()
|
||||
);
|
||||
|
||||
// Add metrics
|
||||
// TODO: add actual reporter
|
||||
var metricsBuilder = AppMetrics.CreateDefaultBuilder();
|
||||
builder.Services.AddSingleton<IMetrics>(metricsBuilder.Build());
|
||||
|
||||
builder.Services
|
||||
.AddDbContext<DatabaseContext>()
|
||||
.AddCustomServices()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue