API Reference
Error Monitoring
Getting Started
Welcome to Highlight
Integrations
Product Features
Session Replay
Tips
Menu
H.metrics()
This method is used to submit custom metrics. You can learn more about Frontend Observability.
H.metrics(metrics: Metric[]) => void;
metrics Required
A list of metrics that you'd like to report. Check out Metrics
Example
H.metrics([{ name: 'clicks', value: 1, tags: [{ browser }] }, { name: 'auth_time', value: authDelay, tags: [{ version: 'v2' }] }