Skip to content

Use diagnostics global tools functionality at runtime for problem reporting #844

@bitbonk

Description

@bitbonk

Is there a way I could use the diagnostics global tools (or its functionality) at runtime in a deployed application for self-diagnosing or to generate a problem report? Is there some guidance on how to do this?

For example:

  1. In case an application crashes due to an unhandled excpetion I would like to generate a dump (global tool dotnet dump) right inside the AppDomain.UnhandledException of the application itself.
  2. In case the used memory of the current process exceeds a certain value (global tool dotnet counter) the process itself should generate a gcdump (global tool dotnet gcdump).
  3. In case the used CPU utilisation of the current process exceeds a current value (global tool dotnet counter) the process itself should collect performance data (global tool dotnet trace).
  4. In a servicing scenario a customer should be able to manually trigger the creation of dumps and performance collections for the application.

It would be OK to do all of the above out of process. But the installation of a .NET Core SDK on the customer's machine is often not possible, so I suppose there is no way to install or use the global tools directly?

If this is not easily possible, consider this to be a feature request. 😁

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions