reportFor method

void reportFor(
  1. HttpRequest req,
  2. Object error,
  3. StackTrace stackTrace
)

report for an error of req, with requestId set while it runs.

Implementation

void reportFor(HttpRequest req, Object error, StackTrace stackTrace) {
  _requestId = req.response.headers.value(RequestId.header);
  try {
    report(error, stackTrace);
  } finally {
    _requestId = null;
  }
}