This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Set up the Agent
editSet up the Agent
editThe .NET agent can be added to an application in three different ways
- Profiler runtime instrumentation
- The agent supports auto instrumentation without any code change and without any recompilation of your projects. See Profiler Auto instrumentation.
- NuGet packages
- The agent ships as a set of NuGet packages available on nuget.org. You can add the Agent and specific instrumentations to a .NET application by referencing one or more of these packages and following the package documentation.
- Host startup hook
- On .NET Core 3.0+ or .NET 5+, the agent supports auto instrumentation without any code change and without any recompilation of your projects. See Zero code change setup on .NET Core for more details.