# Only 1 span per request - .net 4.6.1

**URL:** <https://discuss.elastic.co/t/only-1-span-per-request-net-4-6-1/232603>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [May 14, 2020, 9:35am UTC](https://discuss.elastic.co/t/only-1-span-per-request-net-4-6-1/232603 "2020-05-14T09:35:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaurentV](https://avatars.discourse-cdn.com/v4/letter/l/d6d6ee/32.png) [@LaurentV](https://discuss.elastic.co/u/LaurentV)\
**Post date:** [May 14, 2020, 9:35am UTC](https://discuss.elastic.co/t/only-1-span-per-request-net-4-6-1/232603/1 "2020-05-14T09:35:03Z")

</div>

Hello,

I'm currently having some issue configuration our applications with APM.  
We are running .net Framework 4.6.1 and I managed to have the transactions showing up on Kibana.  
Problem is, all transactions have one 1 span. I tried updating the System.Diagnostics.DiagnosticSource package to the latest version, but I still get the same result.

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [May 14, 2020, 10:24am UTC](https://discuss.elastic.co/t/only-1-span-per-request-net-4-6-1/232603/2 "2020-05-14T10:24:28Z")

</div>

Hi @LaurentV,

what other span would you expect there? Asking because this really depends on what your application is doing. There was a very similar discussion [here](https://discuss.elastic.co/t/elastic-apm-net-agent-is-not-instrumenting-methods/228815/4) . Maybe that's worth looking at.

---

<div class="post-metadata">

**Author:** ![LaurentV](https://avatars.discourse-cdn.com/v4/letter/l/d6d6ee/32.png) [@LaurentV](https://discuss.elastic.co/u/LaurentV)\
**Post date:** [May 14, 2020, 11:28am UTC](https://discuss.elastic.co/t/only-1-span-per-request-net-4-6-1/232603/3 "2020-05-14T11:28:08Z")

</div>

Hello @GregKalapos,

Thank you for your support. For example, I would expect a span to be created when we call an external API (in this case via WCF). I also tried to instrument EF but with no success so far. But I guess that is another issue.

Thanks

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [May 23, 2020, 11:53am UTC](https://discuss.elastic.co/t/only-1-span-per-request-net-4-6-1/232603/4 "2020-05-23T11:53:57Z")

</div>

Hey @LaurentV

> I would expect a span to be created when we call an external API (in this case via WCF)

If you call it with the `HttpClient` class then it should show up. If you call it with some older technology or it's not HTTP binding then it's unfortunately not supported at this point.

> I also tried to instrument EF but with no success so far. But I guess that is another issue.

I'm not sure here, [here](https://www.elastic.co/guide/en/apm/agent/dotnet/current/setup.html#setup-ef6) we have info on that. Also if it's talking to SQL Server, maybe [this part](https://www.elastic.co/guide/en/apm/agent/dotnet/current/setup.html#setup-sqlclient) could also help.

---

<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:** [June 13, 2020, 7:53am UTC](https://discuss.elastic.co/t/only-1-span-per-request-net-4-6-1/232603/5 "2020-06-13T07:53:58Z")

</div>

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