Is there any unique request ID in Dancer?
Apache has mod_unique_id: http://httpd.apache.org/docs/current/mod/mod_unique_id.html
PSGI/Plack has a middleware module: http://search.cpan.org/~bayashi/Plack-Middleware-RequestId-0.02/lib/Plack/Middleware/RequestId.pm
But is there anything native in Dancer I missed?
When I have needed unique IDs for use with Mojolicious, I've used
Data::UUIDwhich generates long (128bit) numbers in line with RFC 4122I can't be any more specific without a clearer idea of your use case, but this seems to work nicely:
You have a choice of output formats. You can, if it's useful to your application, create directly, e.g.: