Records a domain metric.
The Worker environment.
The metric name — the sampling key it is grouped by.
String dimensions to filter and group by.
Numeric measurements to aggregate.
true when the data point was accepted.
Reports whether telemetry will actually be recorded.
false when the dataset is unbound or analytics.enabled is off.
The Worker environment.
true when data points are being written.
Records one request: its duration and a unit count, grouped by route with method, status, colo, and country as filter dimensions.
The Worker environment.
The request measurement.
true when the data point was accepted.
PrivatewriteWrites one data point, swallowing anything that goes wrong.
The Worker environment.
The sampling key. Analytics Engine caps this at 96 bytes.
String dimensions.
Numeric measurements.
true when the data point was accepted.
Telemetry capability, backed by Analytics Engine.
Records measurements — durations, counts, statuses — as data points to aggregate with SQL: request rate, latency percentiles, error rate, and whatever the domain wants counted.
Remarks
Deliberately separate from
Logger. Analytics Engine samples at volume, which is right for aggregates and wrong for individual lines, so logs go to the observability logstream and only metrics come here.Writes are best-effort and never throw: telemetry must not be able to fail the request it is describing.
Author
Bayu Dwiyan Satria
Version
1.0.0
Since
1.0.0