We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose 3 methods for publishing counters.
metrics.increment('Increment'); metrics.decrement('Decrement'); metrics.count('Count', 10);
{ "Increment": 1, "Decrement": -1, "Count": 10 }
Multiple calls to the same key will be recorded as separate entries. This allows us to preserve the sample count.
metrics.increment('Key'); metrics.increment('Key'); metrics.decrement('Key');
{ "Key": [ 1, 1, -1 ] }
Alternatively, we can use the PMD syntax:
{ "Key": { "type": "dist", "buckets": "explicit", "values": [ 1, -1 ], "counts": [ 2, 1 ] }
metrics.gauge('key', 10);
metrics.time('key', 10); timedMetricScope('operation', metrics => { // do things and track how long it takes... })
metrics.histo('key', 10);
{ "Key": { "type": "dist", "buckets": "explicit", "values": [ 1 ], "counts": [ 10 ] } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Counters
Expose 3 methods for publishing counters.
Multiple calls to the same key will be recorded as separate entries. This allows us to preserve the sample count.
Alternatively, we can use the PMD syntax:
Gauges
Timers
Histograms: TBD
The text was updated successfully, but these errors were encountered: