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() {