You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add warning for DOTNET_EnableDiagnostics=0 or COMPlus_EnableDiagnostics=0
For .NET 8.0+ DOTNET_EnableDiagnostics=0 disables profiling, but we can't just set this to 1 because it breaks read-only containers for older versions of .NET so we log a warning instead.
Logger.Warn($"Detected 'DOTNET_EnableDiagnostics=0' or 'COMPlus_EnableDiagnostics=0' environment variable on '{context.WorkloadNamespace}/{context.WorkloadName}', dotnet-core agent may not attach correctly.");
56
+
}
57
+
47
58
// This assumes this patch occurs after our generic patches.
48
59
// Either the users sets this on the pod manually, or we set it from our config file.
0 commit comments