Add option to specify a path that must match to track request.

We use this to only track API requests by scoping it to `"/api"`. Path option can be a String, Regexp or Proc.

We already use the patch for several months in production without any problem.