Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Profiler Disable #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

colin-higgins
Copy link
Member

Don't overwrite COR_ENABLE_PROFILING or CORECLR_ENABLE_PROFILING so users can disable the extension from app settings.

Re-organize transform so it's easier to read.

@colin-higgins colin-higgins self-assigned this Nov 11, 2021
@colin-higgins colin-higgins requested a review from a team as a code owner November 11, 2021 22:01
<add name="DD_INTEGRATIONS" value="%XDT_EXTENSIONPATH%\vFOLDERUNKNOWN\Tracer\integrations.json" xdt:Locator="Match(name)" xdt:Transform="Insert"/>

<add name="DD_TRACE_LOG_PATH" xdt:Locator="Match(name)" xdt:Transform="RemoveAll"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log path could be another candidate where the user might want to customize

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to do this separately, because it will require changes in the install script as well.

@lucaspimentel
Copy link
Member

FWIW, the "official" (documented, at least) way of disabling the tracer is DD_TRACE_ENABLED=false, and it's what we should be recommending to users. But I like this changes regardless.

lucaspimentel
lucaspimentel previously approved these changes Nov 11, 2021
Copy link
Member

@lucaspimentel lucaspimentel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM aside from Zach's comment about customizing the log path. 👍🏽

@colin-higgins colin-higgins force-pushed the colin/enable-disabling-profiler branch from 596e1eb to f2a8e69 Compare November 12, 2021 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants