Description
Currently, the only way to load a profiler is by enabling appropriate environment variables. I would be great to provide a way to load a profiler through some setting local to application - I've thought about Host Configuration Knobs. It will allow to install profiler though NuGet package, which may be convenient if profiler is used for dynamically updating IL or something similar task, when it is better to treat profiler as application component and application is not usable without profiler - or in APM scenarios with CI/CD, where APM agent will be convenient to treat as part of application.
Is there any design restrictions that will prevent it?
The main trouble will be found a way to resolve relative path to profiler library in case if application is not self-hosted.
cc: @noahfalk