utils/telemetry/telemetry_service library

Classes

ConsoleTelemetrySink
Prints telemetry events to stderr when running in debug mode.
FileTelemetrySink
Appends events as newline-delimited JSON to a file inside ~/.neomage/telemetry/.
HttpTelemetrySink
Posts event batches to a remote HTTP endpoint.
PerformanceMetric
Result of a timed operation.
PerformanceTracker
Measures wall-clock duration of arbitrary operations.
TelemetryBatch
Collects events into a batch for efficient bulk sending.
TelemetryConfig
Configuration for the telemetry subsystem.
TelemetryEvent
A single telemetry event with associated metadata.
TelemetryService
Central telemetry service. Queue events via track, they are flushed to all configured sinks either on a timer or when the batch fills up.
TelemetrySink
Destination for telemetry events.

Enums

TelemetryEventType
Categories of telemetry events emitted throughout the application.

Functions

scrubPii(Map<String, dynamic> data, {String? homeDir}) Map<String, dynamic>
Scrub PII from a map of telemetry properties.