Auto Profiler .Net framework 4.8 desktop app

I am having a .net framework4.8 based windows services. I have setup the ENV variables and used the "elastic_apm_profiler_1.28.0-win-x64" to extract the setup files .
The log file is being created in log directory mentioned in ENV variables, but it always 0 kb, nothing added inside it.
How I should investigate further.