Skip to content

Commit 7f334ea

Browse files
DD_INJECT_FORCE for rpe release
1 parent 323d115 commit 7f334ea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tracer/test/Datadog.Trace.Tools.dd_dotnet.IntegrationTests/Checks/ProcessBasicChecksTests.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System;
77
using System.Collections.Generic;
88
using System.IO;
9+
using System.Linq;
910
using System.Runtime.InteropServices;
1011
using System.Threading.Tasks;
1112
using Datadog.Trace.TestHelpers;
@@ -374,6 +375,14 @@ public async Task DetectContinuousProfilerState(string? enabled, bool? ssiInject
374375
({ } prof, { } ssi) => [("DD_PROFILING_ENABLED", prof), ("DD_INJECTION_ENABLED", ssi)],
375376
};
376377

378+
#if NET10_0
379+
// TODO: Remove this after .NET 10 is officially released
380+
if (!string.IsNullOrEmpty(ssiInjection))
381+
{
382+
envVars = envVars.Append(("DD_INJECT_FORCE", "1")).ToArray();
383+
}
384+
#endif
385+
377386
using var helper = await StartConsole(enableProfiler: true, envVars);
378387

379388
var processInfo = ProcessInfo.GetProcessInfo(helper.Process.Id);

0 commit comments

Comments
 (0)