requestId property

String? get requestId

The X-Request-Id of the request whose error is being reported (see RequestId). It is set only while report runs for an error of a request. Read it at the start of report, before any await.

sentry.captureException(error, hint: ExceptionHandler.requestId);

Implementation

static String? get requestId => _requestId;