# Command submission timing metrics in JSON API

**URL:** <https://forum.canton.network/t/command-submission-timing-metrics-in-json-api/3703>\
**Category:** App Development\
**Tags:** json-api\
**Created:** [January 11, 2022, 3:41am UTC](https://forum.canton.network/t/command-submission-timing-metrics-in-json-api/3703 "2022-01-11T03:41:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![huw](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/huw/32/2343_2.png) [@huw](https://forum.canton.network/u/huw)\
**Post date:** [January 11, 2022, 3:41am UTC](https://forum.canton.network/t/command-submission-timing-metrics-in-json-api/3703/1 "2022-01-11T03:41:49Z")

</div>

The JSON API has the following metric: `daml.http_json_api.command_submission_ledger_timing`. I’m a bit confused around the word “submission”: does this metric refer to the time taken in calling the CommandSubmissionService? Or is it actually the time taken in calling the CommandService. I’m just thinking it should be CommandService, since I think the JSON API would only be using CommandService, as it doesn’t support async submissions/completions.

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [January 11, 2022, 7:39am UTC](https://forum.canton.network/t/command-submission-timing-metrics-in-json-api/3703/2 "2022-01-11T07:39:27Z")

</div>

You are completely correct, the JSON API is using the synchronous command service and that’s what this timer is tracking. The naming is definitely confusing and we should at least improve the docs (cc @victor.pr.mueller). Arguably it’s not completely wrong, you are still submitting a command but you are just also waiting for the result. But that’s bikeshedding when we can just make the docs clearer to avoid any confusion.

---

<div class="post-metadata">

**Author:** ![huw](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/huw/32/2343_2.png) [@huw](https://forum.canton.network/u/huw)\
**Post date:** [January 12, 2022, 3:52am UTC](https://forum.canton.network/t/command-submission-timing-metrics-in-json-api/3703/3 "2022-01-12T03:52:36Z")

</div>

I see. Thanks for the clarification.
