Replies: 1 comment 6 replies
-
|
Hey @Piedone Thanks for the discussion. I wish I had the magic button for you :-). Seriously though, it sounds like it is the first time profiler that is unwanted, do I understand it correctly? Would it work if there's an option to disable it? For example: ....AddServiceProfiler(opt => {
opt.EnableOneTimeScheduler = false; // so that the very first-time profiling won't happen.
}); |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to start profiling only from the Azure Portal, either with the "Profile now" button or via triggers. Until then, the profiler should be dormant, and don't affect the app's normal operation in any way. How is this possible to achieve?
It seems to me that just by adding the profiler package you make it start on app start (as evidenced e.g. by the "StartProfiler triggered." log entry). I see the
InitialDelayandIsDisabledconfiguration options but those don't really cover this.My app is running in Azure App Services under Linux if that matters. I thought about having a custom configuration in my app to enable profiling (basically an
if (profilingEnables)aroundservices.AddServiceProfiler();, with an app restart) but that needs to be set separately from the button click. So, I figured there should be a better approach.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions