From 0904436d2fdc13a1900879af79b7e4333c6e0c0c Mon Sep 17 00:00:00 2001 From: fjy Date: Thu, 10 Apr 2014 12:54:27 -0700 Subject: [PATCH] actually emit query stats --- .../java/io/druid/server/log/EmittingRequestLogger.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/src/main/java/io/druid/server/log/EmittingRequestLogger.java b/server/src/main/java/io/druid/server/log/EmittingRequestLogger.java index 70df84450a6..5a71415901d 100644 --- a/server/src/main/java/io/druid/server/log/EmittingRequestLogger.java +++ b/server/src/main/java/io/druid/server/log/EmittingRequestLogger.java @@ -26,6 +26,7 @@ import com.metamx.emitter.core.Event; import com.metamx.emitter.service.ServiceEmitter; import com.metamx.emitter.service.ServiceEventBuilder; import io.druid.query.Query; +import io.druid.server.QueryStats; import io.druid.server.RequestLogLine; import org.joda.time.DateTime; @@ -110,6 +111,12 @@ public class EmittingRequestLogger implements RequestLogger return request.getRemoteAddr(); } + @JsonProperty("queryStats") + public QueryStats getQueryStats() + { + return request.getQueryStats(); + } + @Override public boolean isSafeToBuffer() {