How to get metrics from .net 8 windows forms application for prometheus using OpenTelemetry
I have a .net windows forms application and this application call API (e.g. http://localhost:8080/api). I need to collect metrics using OpenTelemetry using prometheus exporter so that scraping can be done by prometheus. I am able to do it for .net core APIs but for win forms app , do not have idea. Looking for an example code or guidance for the same.