# Understand a span detail

**URL:** <https://discuss.elastic.co/t/understand-a-span-detail/200360>\
**Category:** APM\
**Tags:** rum\
**Created:** [September 20, 2019, 7:14am UTC](https://discuss.elastic.co/t/understand-a-span-detail/200360 "2019-09-20T07:14:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rijash](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@rijash](https://discuss.elastic.co/u/rijash)\
**Post date:** [September 20, 2019, 7:14am UTC](https://discuss.elastic.co/t/understand-a-span-detail/200360/1 "2019-09-20T07:14:13Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text 🙂

**Kibana version** : 7.3.1

**Elasticsearch version** : 7.3.1

**APM Server version** : 7.3.1

**APM Agent language and version** : Java Agent 1.9.0

Hi,

I have configured APM in our Test env. What i am seeing is this one span with " **span.name: Requesting and receiving the document"** consuming almost 50% time for any page-load event.

But i am not able to get the detail inside the span ....  
Could you please help me to know, what exactly happening in this span? why it is taking so much time ??

---

<div class="post-metadata">

**Author:** ![Hamidreza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamidreza/32/21369_2.png) [@Hamidreza](https://discuss.elastic.co/u/Hamidreza)\
**Post date:** [September 23, 2019, 1:01pm UTC](https://discuss.elastic.co/t/understand-a-span-detail/200360/2 "2019-09-23T13:01:41Z")

</div>

Hi @rijash,

Thanks for reaching out.

The span `Requesting and receiving the document` is created automatically by the agent using the Navigation timing API. It includes the time for downloading the initial html document. Specifically it shows the time between `performance.timing.requestStart` and `performance.timing.responseEnd`. There could be a few reasons why downloading the initial document might take a long time, one possibility could be that the html document is being generated dynamically and it takes longer than expected.

I've also created [this issue](https://github.com/elastic/apm-agent-rum-js/issues/435) to provide more documentation in regards to automatically generated spans!

Cheers,  
Hamid

---

<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:** [October 14, 2019, 9:15am UTC](https://discuss.elastic.co/t/understand-a-span-detail/200360/3 "2019-10-14T09:15:36Z")

</div>

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