We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e994266 commit 03a1971Copy full SHA for 03a1971
src/Microsoft.Diagnostics.Monitoring.StartupHook/DiagnosticsBootstrapper.cs
@@ -24,7 +24,9 @@ public DiagnosticsBootstrapper()
24
{
25
_exceptionProcessor = new(ToolIdentifiers.IsEnvVarEnabled(InProcessFeaturesIdentifiers.EnvironmentVariables.Exceptions.IncludeMonitorExceptions));
26
27
- if (ToolIdentifiers.IsEnvVarEnabled(InProcessFeaturesIdentifiers.EnvironmentVariables.Exceptions.CollectOnStartup))
+ // If collectOnStart is not set, assume the default value (true).
28
+ string? collectOnStart = Environment.GetEnvironmentVariable(InProcessFeaturesIdentifiers.EnvironmentVariables.Exceptions.CollectOnStartup);
29
+ if (collectOnStart == null || ToolIdentifiers.IsEnvVarValueEnabled(collectOnStart))
30
31
_exceptionProcessor.Start();
32
}
0 commit comments