SentryMetric class abstract
Base class for metric data points sent to Sentry.
See SentryCounterMetric, SentryGaugeMetric, and SentryDistributionMetric for concrete metric types.
Constructors
Properties
-
attributes
↔ Map<
String, SentryAttribute> -
Custom key-value pairs attached to the metric.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String
-
The metric name, typically using dot notation (e.g., 'app.memory_usage').
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spanId ↔ SpanId?
-
The span ID of the active span when the metric was recorded.
getter/setter pair
- timestamp ↔ DateTime
-
The time when the metric was recorded.
getter/setter pair
- traceId ↔ SentryId
-
The trace ID from the current propagation context.
getter/setter pair
- type → String
-
The metric type identifier (e.g., 'counter', 'gauge', 'distribution').
final
- unit ↔ String?
-
The unit of measurement (e.g., 'millisecond', 'byte').
getter/setter pair
- value ↔ num
-
The numeric value of the metric.
getter/setter pair
Methods
-
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