rocklan / prometheus-net.AspNet

Exposes prometheus metrics inside full framework asp.net applications using WebApi
MIT License
19 stars 4 forks source link

Support for Entity Framework Core #7

Open tomy2105 opened 3 years ago

tomy2105 commented 3 years ago

Obviously Entity Framework 6 approach described in help via DBContext and DbConfigurationType don't work because DbConfigurationType seems to be missing from EF Core.....

Is support for EF Core planned?

rocklan commented 3 years ago

Maybe I misunderstand, but wouldn't adding support for EF Core to this package be pretty redundant? I would have thought that 95% of people using EFCore would be running under dotnet core. Are you using EFCore on dotnet framework?

rocklan commented 3 years ago

(BTW if you are running under dotnet core, there's already a library to do this: https://github.com/alexvaluyskiy/prometheus-net-contrib)