Calling this method will report an error in Highlight while allowing additional attributes to be sent over as metadata.
Calling this method will report an error in Highlight and map it to the current session being recorded.
A common use case for H.error
is calling it right outside of an error boundary.
https://docs.highlight.run/grouping-errors for more information.
Calling this will assign an identifier to the session.
Calling this method will report metrics to Highlight. You can graph metrics or configure alerts on metrics that exceed a threshold.
https://docs.highlight.run/frontend-observability for more information.
Record arbitrary metric values via as a Counter. A Counter efficiently records an increment in a metric, such as number of cache hits. Values with the same metric name and attributes are aggregated via the OTel SDK. See https://opentelemetry.io/docs/specs/otel/metrics/data-model/ for more details.
Record arbitrary metric values via as a Histogram. A Histogram efficiently records near-by point-in-time measurement into a bucketed aggregate. Values with the same metric name and attributes are aggregated via the OTel SDK. See https://opentelemetry.io/docs/specs/otel/metrics/data-model/ for more details.
Record arbitrary metric values via as a Counter. A Counter efficiently records an increment in a metric, such as number of cache hits. Values with the same metric name and attributes are aggregated via the OTel SDK. See https://opentelemetry.io/docs/specs/otel/metrics/data-model/ for more details.
Record arbitrary metric values via as a Gauge. A Gauge records any point-in-time measurement, such as the current CPU utilization %. Values with the same metric name and attributes are aggregated via the OTel SDK. See https://opentelemetry.io/docs/specs/otel/metrics/data-model/ for more details.
Record arbitrary metric values via as a UpDownCounter. A UpDownCounter efficiently records an increment or decrement in a metric, such as number of paying customers. Values with the same metric name and attributes are aggregated via the OTel SDK. See https://opentelemetry.io/docs/specs/otel/metrics/data-model/ for more details.
Starts a new span for tracing in Highlight. The span will be ended when the
end()
is called on the span. It returns whatever is returned from the
callback function.
H.startManualSpan('span-name', options, (span) => {
span.addEvent('event-name', { key: 'value' })
span.setAttribute('key', 'value')
await someAsyncFunction()
span.end()
})
Starts a new span for tracing in Highlight. The span will be ended when the callback function returns.
Stops the session and error recording.
Call this to record when you want to track a specific event happening in your application.
Calling this will add a feedback comment to the session.