Provides a variant of EventCounter for variables that are ever-increasing, such as the number of exceptions in the runtime.
public ref class IncrementingEventCounter : System::Diagnostics::Tracing::DiagnosticCounter
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public class IncrementingEventCounter : System.Diagnostics.Tracing.DiagnosticCounter
public class IncrementingEventCounter : System.Diagnostics.Tracing.DiagnosticCounter
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type IncrementingEventCounter = class
inherit DiagnosticCounter
type IncrementingEventCounter = class
inherit DiagnosticCounter
Public Class IncrementingEventCounter
Inherits DiagnosticCounter
IncrementingEventCounter
is used for keeping track of values that are always increasing, such as the total number of requests, the total number of exceptions thrown, etc. For such metrics, simply reporting the total value is not necessarily useful for monitoring its health. For example, keeping track of how many bytes have been allocated in total for the entire duration of the process is not useful for diagnosing any potential issues from allocating too much memory. A metric that would help us is how many bytes were allocated in the past minute, hour, or some arbitrary time interval, and not the entire duration of the process. IncrementingEventCounter
can be used to keep track of and report just the increments over a time interval that was specified by the consumer of the metric.
IncrementingEventCounter
does not calculate statistics like mean or standard deviation because it only keeps track of the increments over a period of time.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4