actually emit query stats

This commit is contained in:
fjy 2014-04-10 12:54:27 -07:00
parent 57bf8faa82
commit 0904436d2f
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,7 @@ import com.metamx.emitter.core.Event;
import com.metamx.emitter.service.ServiceEmitter; import com.metamx.emitter.service.ServiceEmitter;
import com.metamx.emitter.service.ServiceEventBuilder; import com.metamx.emitter.service.ServiceEventBuilder;
import io.druid.query.Query; import io.druid.query.Query;
import io.druid.server.QueryStats;
import io.druid.server.RequestLogLine; import io.druid.server.RequestLogLine;
import org.joda.time.DateTime; import org.joda.time.DateTime;
@ -110,6 +111,12 @@ public class EmittingRequestLogger implements RequestLogger
return request.getRemoteAddr(); return request.getRemoteAddr();
} }
@JsonProperty("queryStats")
public QueryStats getQueryStats()
{
return request.getQueryStats();
}
@Override @Override
public boolean isSafeToBuffer() public boolean isSafeToBuffer()
{ {