Add profiles to ESQL activity log#142897
Conversation
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
|
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
|
@smalyshev we will also have so that we can query the |
|
@consulthys We also have ESQL-specific profiles, one of which is named "query": This exists only for ESQL. Usually, these two values will be equal or very close, but these are different values that are measured by different parts of the code - the former is general request time, the latter is ESQL-specific profile, which happens to be named "query". |
Ok, I thought this would be the same value as the overall query took time, then please disregard by comment. |
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/querylog/EsqlLogProducer.java
Show resolved
Hide resolved
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/querylog/EsqlLogProducer.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/querylog/EsqlLogProducer.java
Outdated
Show resolved
Hide resolved
…querylog/EsqlLogProducer.java Co-authored-by: Ievgen Degtiarenko <ievgen.degtiarenko@gmail.com>
f4358d8 to
85be987
Compare
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/querylog/EsqlLogContext.java
Outdated
Show resolved
Hide resolved
| return Optional.of( | ||
| msg.field(ES_QUERY_FIELDS_PREFIX + "query", context.getQuery()).field(ES_QUERY_FIELDS_PREFIX + "hits", context.getHits()) | ||
| ); | ||
| msg.field(ES_QUERY_FIELDS_PREFIX + "query", context.getQuery()).field(ES_QUERY_FIELDS_PREFIX + "hits", context.getHits()); |
There was a problem hiding this comment.
I still believe hits is confusing. Should we replace it with elasticsearch.activitylog.query.result_set_size?
There was a problem hiding this comment.
I also find elasticsearch.activitylog.querying.query cumbersome. Why not elasticsearch.activitylog.query.text or elasticsearch.activitylog.query.source?
There was a problem hiding this comment.
re hits
@idegtiarenko we went away from hits. see PR #143109 where I'm suggesting to use returned_result_count. Also we need to avoid using size as it has too many overloaded meanings (i.e. it could mean the size in bytes)
re elasticsearch.activitylog.querying.query
activitylog is gone, welcome querylog and querying is also gone so the field above will now be named elasticsearch.querylog.query
There was a problem hiding this comment.
@idegtiarenko Yes we have some renames in the pipeline in other pulls, and the whole naming thing is actively discussed, feel free to jump in on Slack channel. This one though is specifically for profiles, we'll deal with names separately. I feel it's easier for me this way, otherwise I'm going to lose what each pull actually does.
…querylog/EsqlLogContext.java Co-authored-by: Ievgen Degtiarenko <ievgen.degtiarenko@gmail.com>
* Add profiles to ESQL activity log
Add profile numbers to ESQL activity log:
Closes #142618