From 441085e35f07c5cce969087cf866ac696766985a Mon Sep 17 00:00:00 2001 From: Roberto Montero <108007532+robertomonteromiguel@users.noreply.github.com> Date: Tue, 21 May 2024 19:23:31 +0200 Subject: [PATCH] OnBoarding debug dotnet (#2467) * OnBoarding debug dotnet * disable debug when we build dotnet app --- .../weblogs/dotnet/test-app-dotnet/test-app-dotnet_run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/build/virtual_machine/weblogs/dotnet/test-app-dotnet/test-app-dotnet_run.sh b/utils/build/virtual_machine/weblogs/dotnet/test-app-dotnet/test-app-dotnet_run.sh index fe84124845..de996c3233 100755 --- a/utils/build/virtual_machine/weblogs/dotnet/test-app-dotnet/test-app-dotnet_run.sh +++ b/utils/build/virtual_machine/weblogs/dotnet/test-app-dotnet/test-app-dotnet_run.sh @@ -6,7 +6,7 @@ sudo chmod -R 755 * echo "START RUN APP (debug active)" #If we are trying to inject the library on the "restore" or "build" command we should show the traces -export DD_APM_INSTRUMENTATION_DEBUG=TRUE +export DD_APM_INSTRUMENTATION_DEBUG=false export DOTNET_DbgEnableMiniDump=1 export DOTNET_DbgMiniDumpType=4 export DOTNET_CreateDumpDiagnostics=1 @@ -17,7 +17,7 @@ dotnet restore dotnet build -c Release sudo dotnet publish -c Release -o /home/datadog/publish - +export DD_APM_INSTRUMENTATION_DEBUG=true sudo cp test-app.service /etc/systemd/system/test-app.service sudo systemctl daemon-reload sudo systemctl enable test-app.service