SentryMetrics class abstract interface

Interface for emitting custom metrics to Sentry.

Access via Sentry.metrics.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

count(String name, int value, {Map<String, SentryAttribute>? attributes}) → void
Increments a cumulative counter by value.
distribution(String name, num value, {String? unit, Map<String, SentryAttribute>? attributes}) → void
Records a value for statistical distribution analysis.
gauge(String name, num value, {String? unit, Map<String, SentryAttribute>? attributes}) → void
Records a point-in-time value that can increase or decrease.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited