Skip to content

Support capturing diagnostics information using DiagnosticSource #446

@smolchanovsky

Description

@smolchanovsky

DiagnosticSource is a tool that will allow client users to subscribe to events and use them to log and send metrics. As an example, we can take the Elastic client.

Sample list of events:

  • NClient.Transport.Request.Start
  • NClient.Transport.Request.Stop
  • NClient.Resilience.Attempt.Start
  • NClient.Resilience.Attempt.Stop
  • NClient.Exceptions.UnhandledException
  • NClient.Exceptions.TransportException
  • NClient.Exceptions.ValidationException
  • NClient.Exceptions.ArgumentException

Additional links:

  1. A brief introduction to DiagnosticSource
  2. DiagnosticSource User's Guide
  3. DiagnosticSource and DiagnosticListener (docs.microsoft.com)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions