1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
6 def make_request_id(req_id)
7 if !req_id || req_id.length < 1 || req_id.length > 1024
8 # Client-supplied ID is either missing or too long to be
16 def internal_request_id
17 "req-" + Random.new.rand(2**128).to_s(36)[0..19]
21 class ActionDispatch::RequestId
22 # Instead of using the default UUID-like format for X-Request-Id headers,
24 prepend CustomRequestId