on 17 Oct 2024 08:58 AM - edited on 24 Oct 2024 03:31 PM by Michal_Gebacki
Are you encountering issues with Dynatrace OneAgent instrumentation in your .NET 8 applications? Whether you’re upgrading from a previous .NET version or working with a new .NET 8 application, this guide will help you resolve common problems related to instrumentation.
One of the primary reasons for instrumentation failures in .NET 8 applications is the configuration of certain environment variable flags. Specifically, the following flags can disable profiling:
These flags, when set to 0, prevent the necessary diagnostics and profiling from being enabled in your .NET 8 environment.
To resolve this issue and ensure proper instrumentation with Dynatrace OneAgent, you need to either remove these environment variables or set them to 1. Here’s how you can do it:
Locate the Environment Variables:
Modify the Variables:
Restart Your Application:
By ensuring these environment variables are correctly configured, you can enable profiling and resolve instrumentation issues with Dynatrace OneAgent in your .NET 8 applications.
Reference :
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-environment-variables
https://learn.microsoft.com/en-us/dotnet/core/runtime-config/debugging-profiling