/** * Add a request id to pass to druid. Only added if x-request-id follows the format specified at: * https://devcenter.heroku.com/articles/http-request-id * * @param requestId Request id to add as queryId prefix to druid */ private void appendRequestId(String requestId) { if (isNotValidRequestId(requestId)) { return; // Ignore according to https://devcenter.heroku.com/articles/http-request-id } RequestLog.addIdPrefix(requestId); }