Conversation
|
@ckiickA Have you looked at the existing See https://github.com/openresty/set-misc-nginx-module#set_secure_random_alphanum for example. |
|
I have. However, there's no way to restrict the string generated to just hex digits. The Zipkin spec says traceid's are random hexadecimal 64 bit numbers. I attempted to use get_random and hex_encode, but hex_encode just gives the ascii codes of the digits. |
|
@ckiickA Hmm, maybe you should use the ngx_lua module for such special requirements instead. Otherwise this simple ngx_set_misc module would keep growing forever, which is a bad thing IMHO :) |
|
Not an option for our environment. I can use a custom patch for now. Just On Mon, Nov 23, 2015 at 9:29 AM, Yichun Zhang notifications@github.com
Chris J. Kiick |
Create a random hexadecimal string. Very useful for making trace-ids in X-B3-* headers for zipkin.