Skip to content

Commit

Permalink
Revert "[Crashtracking] Disable crashtracking on Windows by default" (#…
Browse files Browse the repository at this point in the history
…6220)

Reverts #6152

Now that PDB support is implemented, we can reactivate crashtracking by
default on Windows.
  • Loading branch information
kevingosse authored Oct 31, 2024
1 parent ddc6f9c commit 42e161a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion shared/src/Datadog.Trace.ClrProfiler.Native/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ EXTERN_C BOOL STDMETHODCALLTYPE DllMain(HMODULE hModule, DWORD ul_reason_for_cal
bool telemetry_enabled = true;
shared::TryParseBooleanEnvironmentValue(shared::GetEnvironmentValue(L"DD_INSTRUMENTATION_TELEMETRY_ENABLED"), telemetry_enabled);

bool crashtracking_enabled = false;
bool crashtracking_enabled = true;
shared::TryParseBooleanEnvironmentValue(shared::GetEnvironmentValue(L"DD_CRASHTRACKING_ENABLED"), crashtracking_enabled);

if (telemetry_enabled && crashtracking_enabled)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ public CreatedumpTests(ITestOutputHelper output)
SetEnvironmentVariable("COMPlus_DbgMiniDumpType", string.Empty);
SetEnvironmentVariable("COMPlus_DbgEnableMiniDump", string.Empty);
SetEnvironmentVariable("DD_INSTRUMENTATION_TELEMETRY_ENABLED", string.Empty);

if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
SetEnvironmentVariable("DD_CRASHTRACKING_ENABLED", "1");
}
}

private static (string Key, string Value) LdPreloadConfig
Expand Down

0 comments on commit 42e161a

Please sign in to comment.