routePath property

String? routePath
final

The registered path of the route that matched, e.g. /api/users/:id, or null when nothing matched.

This is the one to label metrics with. Using path instead gives every id its own time series, which is how a metrics backend falls over.

Implementation

final String? routePath;