/** * Exports current thread's request log object as a formatted string without resetting it. * * @return log object as a formatted string */ public static String export() { RequestLog current = RLOG.get(); record(new Durations(current.aggregateDurations())); record(new Threads(current.threadIds)); return LogFormatterProvider.getInstance().format(current.info); }
try { RequestLog.startTiming(this); RequestLog.record(new FeatureFlagRequest(flagName));
try { RequestLog.startTiming(this); RequestLog.record(new FeatureFlagRequest("all"));
try { RequestLog.startTiming(this); RequestLog.record(new DimensionRequest(dimensionName, "no"));
try { RequestLog.startTiming(this); RequestLog.record(new JobRequest(ticket));
try { RequestLog.startTiming(this); RequestLog.record(new SliceRequest(sliceName));
try { RequestLog.startTiming(this); RequestLog.record(new TableRequest(tableName, granularity));
try { RequestLog.startTiming(this); RequestLog.record(new MetricRequest(metricName));
try { RequestLog.startTiming(this); RequestLog.record(new TableRequest(tableName, grain));
try { RequestLog.startTiming(this); RequestLog.record(new DimensionRequest("all", "no"));
try { RequestLog.startTiming(this); RequestLog.record(new TableRequest("all", "all"));
RequestLog.startTiming(RESPONSE_WORKFLOW_TIMER); RequestLog.record(new DruidResponse(druidQueryId));
/** * Intercept the Container request to add length of request and a start timestamp. * * @param request Request to intercept * * @throws IOException if there's a problem processing the request */ @Override public void filter(ContainerRequestContext request) throws IOException { appendRequestId(request.getHeaders().getFirst(X_REQUEST_ID_HEADER)); RequestLog.startTiming(TOTAL_TIMER); try (TimedPhase timer = RequestLog.startTiming(this)) { RequestLog.record(new Preface(request)); // sets PROPERTY_REQ_LEN if content-length not defined lengthOfRequestEntity(request); // store start time to later calculate elapsed time request.setProperty(PROPERTY_NANOS, System.nanoTime()); } }
try { RequestLog.startTiming(this); RequestLog.record(new TableRequest(tableName != null ? tableName : "all", "all"));
try { RequestLog.startTiming(this); RequestLog.record(new JobRequest(ticket)); apiRequest = new JobsApiRequestImpl( DefaultResponseFormatType.JSON.toString(),
try { RequestLog.startTiming(this); RequestLog.record(new SliceRequest("all"));
try { RequestLog.startTiming(this); RequestLog.record(new MetricRequest("all"));
try { RequestLog.startTiming(this); RequestLog.record(new JobRequest("all"));
RequestLog.record(new Epilogue(msg, status, responseLengthObserver));