diff --git a/tracer/build/_build/docker/smoke.dotnet-tool.dockerfile b/tracer/build/_build/docker/smoke.dotnet-tool.dockerfile index 37c5d0255928..58c422f69173 100644 --- a/tracer/build/_build/docker/smoke.dotnet-tool.dockerfile +++ b/tracer/build/_build/docker/smoke.dotnet-tool.dockerfile @@ -32,6 +32,9 @@ ENV DD_TRACE_DEBUG=1 ENV ASPNETCORE_URLS=http://localhost:5000 ENV DD_PROFILING_LOG_DIR=/var/log/datadog/dotnet +# see https://github.com/dotnet/runtime/issues/77973 +ENV COMPlus_TieredCompilation=0 + # Copy the app across COPY --from=builder /src/publish /app/. diff --git a/tracer/build/_build/docker/smoke.dotnet-tool.nuget.dockerfile b/tracer/build/_build/docker/smoke.dotnet-tool.nuget.dockerfile index bfb6b78b5cd5..631c6bb5b1d6 100644 --- a/tracer/build/_build/docker/smoke.dotnet-tool.nuget.dockerfile +++ b/tracer/build/_build/docker/smoke.dotnet-tool.nuget.dockerfile @@ -32,6 +32,9 @@ ENV DD_TRACE_DEBUG=1 ENV ASPNETCORE_URLS=http://localhost:5000 ENV DD_PROFILING_LOG_DIR=/var/log/datadog/dotnet +# see https://github.com/dotnet/runtime/issues/77973 +ENV COMPlus_TieredCompilation=0 + # Copy the app across COPY --from=builder /src/publish /app/. diff --git a/tracer/build/_build/docker/smoke.windows.dockerfile b/tracer/build/_build/docker/smoke.windows.dockerfile index d4f73c8a83c5..7ba449fe8a8d 100644 --- a/tracer/build/_build/docker/smoke.windows.dockerfile +++ b/tracer/build/_build/docker/smoke.windows.dockerfile @@ -43,6 +43,9 @@ ENV DD_PROFILING_ENABLED=1 \ DD_PROFILING_LOG_DIR="C:\logs" \ ASPNETCORE_URLS=http://localhost:5000 +# see https://github.com/dotnet/runtime/issues/77973 +ENV COMPlus_TieredCompilation=0 + # Copy the app across COPY --from=builder /src/publish /app/. diff --git a/tracer/build/_build/docker/smoke.windows.dotnet-tool.dockerfile b/tracer/build/_build/docker/smoke.windows.dotnet-tool.dockerfile index 3a76ff82444f..7a2674291ce2 100644 --- a/tracer/build/_build/docker/smoke.windows.dotnet-tool.dockerfile +++ b/tracer/build/_build/docker/smoke.windows.dotnet-tool.dockerfile @@ -43,6 +43,9 @@ ENV DD_PROFILING_ENABLED=1 \ DD_PROFILING_LOG_DIR="C:\logs" \ ASPNETCORE_URLS=http://localhost:5000 +# see https://github.com/dotnet/runtime/issues/77973 +ENV COMPlus_TieredCompilation=0 + # Copy the app across COPY --from=builder /src/publish /app/. diff --git a/tracer/build/_build/docker/smoke.windows.nuget.dockerfile b/tracer/build/_build/docker/smoke.windows.nuget.dockerfile index 1beff6f20bef..74a3b6d5c107 100644 --- a/tracer/build/_build/docker/smoke.windows.nuget.dockerfile +++ b/tracer/build/_build/docker/smoke.windows.nuget.dockerfile @@ -46,6 +46,9 @@ ENV CORECLR_ENABLE_PROFILING=1 \ DD_PROFILING_ENABLED=1 \ ASPNETCORE_URLS=http://localhost:5000 +# see https://github.com/dotnet/runtime/issues/77973 +ENV COMPlus_TieredCompilation=0 + # Copy the app across COPY --from=builder /src/publish /app/. diff --git a/tracer/build/_build/docker/smoke.windows.tracer-home.dockerfile b/tracer/build/_build/docker/smoke.windows.tracer-home.dockerfile index 113a0472208b..7f8e02171112 100644 --- a/tracer/build/_build/docker/smoke.windows.tracer-home.dockerfile +++ b/tracer/build/_build/docker/smoke.windows.tracer-home.dockerfile @@ -50,6 +50,9 @@ ENV DD_PROFILING_ENABLED=1 \ DD_PROFILING_LOG_DIR="C:\logs" \ ASPNETCORE_URLS=http://localhost:5000 +# see https://github.com/dotnet/runtime/issues/77973 +ENV COMPlus_TieredCompilation=0 + # Copy the app across COPY --from=builder /src/publish /app/. diff --git a/tracer/test/Datadog.Trace.TestHelpers/EnvironmentHelper.cs b/tracer/test/Datadog.Trace.TestHelpers/EnvironmentHelper.cs index 1b57f96a4cb2..2e3a6906a244 100644 --- a/tracer/test/Datadog.Trace.TestHelpers/EnvironmentHelper.cs +++ b/tracer/test/Datadog.Trace.TestHelpers/EnvironmentHelper.cs @@ -189,6 +189,7 @@ public void SetEnvironmentVariables( { string profilerEnabled = AutomaticInstrumentationEnabled ? "1" : "0"; environmentVariables["DD_DOTNET_TRACER_HOME"] = MonitoringHome; + environmentVariables["COMPlus_TieredCompilation"] = "0"; // Everything should be using the native loader now var nativeLoaderPath = GetNativeLoaderPath();