You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Hi, @JorgChrist! The project has really become quite large, it seems I need to work on a guide for contributors to make it clearer. Unfortunately, I can't do it right now, because I can't do it fast, but I have good news: you know how DiagnosticSource works, which means you're halfway there :)
I will briefly describe where I would add events:
NClient.Transport.Request.* events should be added in TransportNClient class, in this method. This class is responsible for executing requests at the transport layer (usually HTTP).
NClient.Resilience.Attempt.* events should be added in the same class, but in an other method.
NClient.Exceptions.* events should be added in ClientInterceptor class. All client requests begin and end with this class, so all exceptions are intercepted there.
Thus, it is enough to focus on just two classes: ClientInterceptor and TransportNClient. If you need help or you want me to tell you in more detail how these classes work, write, I will be glad to help.
Hey @smolchanovsky. Thank you very much for taking the time to explain this!
I'm on it and I'll get back to you with feedback when I make some progress :)
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:
Additional links:
The text was updated successfully, but these errors were encountered: