cid.locals.
generate_new_cid
Generate a new correlation id, possibly based on the given one.
set_cid
Set the correlation id on the context.
get_cid
Return the currently set correlation id (if any).