fix(api): load metrics reporting module

i don't know why this fixes it, but it does somehow
This commit is contained in:
spiral 2022-11-25 08:53:24 +00:00
parent 1960fa9dfd
commit 770907f232
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -16,7 +16,7 @@ public class MetricsModule: Module
protected override void Load(ContainerBuilder builder)
{
builder.Register(c => InitMetrics(c.Resolve<CoreConfig>()))
.AsSelf().As<IMetrics>().SingleInstance();
.AsSelf().As<IMetrics>().SingleInstance().AutoActivate();
}
private IMetricsRoot InitMetrics(CoreConfig config)