druid/extensions-core
Gian Merlino 5048ab3e96 Add metrics to the native queries underpinning SQL. (#4561)
* Add metrics to the native queries underpinning SQL.

This is done by factoring out the metrics and request log emitting
code from QueryResource into a new QueryLifecycle class. That class
is used by both QueryResource and the SQL DruidSchema and QueryMaker.

Also fixes a couple of bugs in QueryResource:

- RequestLogLine start time was set to `TimeUnit.NANOSECONDS.toMillis(startNs)`,
  which is incorrect since absolute nanos cannot be converted to millis.
- DruidMetrics.makeRequestMetrics was called with null `query` on
  unparseable queries, which led to spurious "Unable to log query"
  errors.

Partial fix for #4047.

* Code style

* Remove unused imports.

* Fix tests.

* Remove unused import.
2017-07-24 21:26:27 -07:00
..
avro-extensions Enforce brace formatting with Checkstyle (#4564) 2017-07-21 10:26:59 -05:00
caffeine-cache Add PMD and prohibit unnecessary fully qualified class names in code (#4350) 2017-07-17 22:22:29 +09:00
datasketches Adding double colums supports (#4491) 2017-07-20 10:14:14 +03:00
druid-kerberos Enforce brace formatting with Checkstyle (#4564) 2017-07-21 10:26:59 -05:00
hdfs-storage Enforce brace formatting with Checkstyle (#4564) 2017-07-21 10:26:59 -05:00
histogram Add metrics to the native queries underpinning SQL. (#4561) 2017-07-24 21:26:27 -07:00
kafka-eight Update versions to 0.11.0-SNAPSHOT (#4483) 2017-06-28 17:05:58 -07:00
kafka-extraction-namespace Enforce brace formatting with Checkstyle (#4564) 2017-07-21 10:26:59 -05:00
kafka-indexing-service Enforce brace formatting with Checkstyle (#4564) 2017-07-21 10:26:59 -05:00
lookups-cached-global Enforce brace formatting with Checkstyle (#4564) 2017-07-21 10:26:59 -05:00
lookups-cached-single Enforce brace formatting with Checkstyle (#4564) 2017-07-21 10:26:59 -05:00
mysql-metadata-storage Enforce brace formatting with Checkstyle (#4564) 2017-07-21 10:26:59 -05:00
postgresql-metadata-storage Enforce brace formatting with Checkstyle (#4564) 2017-07-21 10:26:59 -05:00
protobuf-extensions Enforce brace formatting with Checkstyle (#4564) 2017-07-21 10:26:59 -05:00
s3-extensions Enforce brace formatting with Checkstyle (#4564) 2017-07-21 10:26:59 -05:00
simple-client-sslcontext TLS support (#4270) 2017-07-06 17:40:12 -07:00
stats Enforce brace formatting with Checkstyle (#4564) 2017-07-21 10:26:59 -05:00