JorringHsiao opened a new issue, #12010: URL: https://github.com/apache/skywalking/issues/12010
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar feature requirement. ### Description Currently, both synchronous method (ex. **org.elasticsearch.client.RestHighLevelClient#`search`**) and asynchronous method (ex. **org.elasticsearch.client.RestHighLevelClient#`searchAsync`**) complete the span after the method call completes. This is normal for synchronous methods, *however for asynchronous methods, the elapsed time in its span is incorrect*. ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a pull request to implement this on your own? - [ ] Yes I am willing to submit a pull request on my own! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@skywalking.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org