Telemetry
Telemetry endpoints submit science events and aggregated metrics.
Metric Object
A metric records a count or distribution sample.
Metric Structure
| Field | Type | Description |
|---|---|---|
| name | string | The metric name |
| type | string | The metric type |
| tags | array[string] | Tags in name:value format |
| value? | number | The distribution value; present for distribution metrics |
Metric Type
| Value | Description |
|---|---|
| count | A count increment |
| distribution | A distribution sample |
Example Metric
{ "name": "app.open_latency", "type": "distribution", "tags": ["design_id:tabs_ia", "platform:web", "release_channel:canary"], "value": 184.5}Metrics Client Info Object
Metrics client information identifies the client build that produced a batch.
Metrics Client Info Structure
| Field | Type | Description |
|---|---|---|
| built_at | string | The client build timestamp in milliseconds |
| build_number | string | The client build number |
Endpoints
Submit Metrics v2
POST/metrics/v2Submits a batch of up to 100 metrics.
JSON Params
| Field | Type | Description |
|---|---|---|
| metrics | array[metric object] | The metrics in the batch |
| client_info | metrics client info object | Information about the client build |
Example JSON Params
{ "metrics": [ { "name": "app.open", "type": "count", "tags": ["design_id:tabs_ia", "platform:web", "release_channel:canary"] } ], "client_info": { "built_at": "1781640804075", "build_number": "564083" }}