---
title: Add Compute error metrics to Historical Stats and Real-Time Analytics APIs
summary: null
url: >-
  https://www.fastly.com/documentation/reference/changes/2026/02/add-compute-error-metrics-hsapi
---

You can now use the [Historical Stats API](https://www.fastly.com/documentation/reference/api/metrics-stats/historical-stats/) and the [Real-Time Analytics API](https://www.fastly.com/documentation/reference/api/metrics-stats/realtime/) to troubleshoot Compute errors with detailed error categorization. Eight new metrics specify whether each Compute error stemmed from logic issues, resource constraints, or the Compute platform itself.

The names of two existing Compute metrics have been updated:  

- `compute_heap_limit_exceeded` is now `compute_service_memory_exceeded_error`  
- `compute_bereq_errors` is now `compute_service_bereq_error`

The following metrics have been deprecated:  

- `compute_guest_errors`
- `compute_globals_limit_exceeded`
- `compute_stack_limit_exceeded`
- `compute_resource_limit_exceeded`
- `compute_runtime_errors`

Both APIs continue to serve data under the original and deprecated metric names for backward compatibility.
