mirror of https://github.com/apache/druid.git
actually emit query stats
This commit is contained in:
parent
57bf8faa82
commit
0904436d2f
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue