Last active
July 17, 2020 21:50
-
-
Save jaycdave88/42fd8b8657c8436fcc6fcd0d3d867e22 to your computer and use it in GitHub Desktop.
PoweShell command to update Windows Registry to enable App Analytics & trace_id injection for Datadog.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[String[]] $v = @("COR_ENABLE_PROFILING=1", "COR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}","CORECLR_ENABLE_PROFILING=1", "CORECLR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}", "DD_TRACE_ANALYTICS_ENABLED=true", "DD_AspNet_ENABLED=true", "DD_LOGS_INJECTION=true") | |
Set-ItemProperty HKLM:SYSTEM\CurrentControlSet\Services\W3SVC -Name Environment -Value $v | |
Set-ItemProperty HKLM:SYSTEM\CurrentControlSet\Services\WAS -Name Environment -Value $v | |
net stop was /y | |
net start w3svc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment