UsageReporter class

glint's usage rollups: the shared UsageShipper over the recorder's events; sends nothing unless GLINT_TELEMETRY=on.

Constructors

UsageReporter(UsageRecorder recorder, {Map<String, String>? env})

Properties

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

Methods

maybeAutoShip() → Future<void>
Startup hook, daily-gated; ships what earlier processes recorded and never throws.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ship({String? dataDir, bool dryRun = false, String? endpointOverride}) → Future<UsageShipResult>
Builds and ships (or with dryRun only builds) the rollup of every event past the watermark; never throws.
shipOnExit({String? dataDir}) → Future<void>
Shutdown hook bounded by the collector timeout; never throws.
toString() → String
A string representation of this object.
inherited
unshippedCount({String? dataDir}) → int
Events recorded since the last ship.

Operators

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