# A new support profile search for trace API

**URL:** <https://discuss.elastic.co/t/a-new-support-profile-search-for-trace-api/252467>\
**Category:** Elasticsearch\
**Created:** [October 19, 2020, 3:35am UTC](https://discuss.elastic.co/t/a-new-support-profile-search-for-trace-api/252467 "2020-10-19T03:35:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hackerwin7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hackerwin7/32/43223_2.png) [@hackerwin7](https://discuss.elastic.co/u/hackerwin7)\
**Post date:** [October 19, 2020, 3:35am UTC](https://discuss.elastic.co/t/a-new-support-profile-search-for-trace-api/252467/1 "2020-10-19T03:35:36Z")

</div>

Hi，teams

Can we create a new API for `trace` for search profile. as we all know the `profile` API can list the shard request execution time and phase.

With the only help of `profile` API, some cases we can not know the true root case for slow search. We don't have a whole trace view of a specific search execution.

A new `trace` API can list the **whole search phase** and execution time, for example:

1. search transport time
2. search queue wait time
3. shard request execute shard search request time (similar to `profile` API)
4. coordinator receive shard response time (which shard is fast and which shard is slowest)
5. coordinator reduce shard request time if have aggregations
6. coordinator search response time  
.....

---

<div class="post-metadata">

**Author:** ![hackerwin7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hackerwin7/32/43223_2.png) [@hackerwin7](https://discuss.elastic.co/u/hackerwin7)\
**Post date:** [October 26, 2020, 12:57pm UTC](https://discuss.elastic.co/t/a-new-support-profile-search-for-trace-api/252467/2 "2020-10-26T12:57:51Z")

</div>

can we add trace for search phase time elapsed?

such as initial phase, fetch phase, xxx phase

---

<div class="post-metadata">

**Author:** ![hackerwin7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hackerwin7/32/43223_2.png) [@hackerwin7](https://discuss.elastic.co/u/hackerwin7)\
**Post date:** [November 9, 2020, 3:10am UTC](https://discuss.elastic.co/t/a-new-support-profile-search-for-trace-api/252467/3 "2020-11-09T03:10:29Z")

</div>

Is there any plan to support more details profile for search of whole phase time spend. not only just Lucene search?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 7, 2020, 3:10am UTC](https://discuss.elastic.co/t/a-new-support-profile-search-for-trace-api/252467/4 "2020-12-07T03:10:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
