# Spans won't be shown in APM -\> Services/Traces

**URL:** <https://discuss.elastic.co/t/spans-wont-be-shown-in-apm-services-traces/371826>\
**Category:** APM\
**Tags:** docker, dotnet, infrastructure-observability\
**Created:** [December 11, 2024, 10:51am UTC](https://discuss.elastic.co/t/spans-wont-be-shown-in-apm-services-traces/371826 "2024-12-11T10:51:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![at\_andreas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/at_andreas/32/139915_2.png) [@at\_andreas](https://discuss.elastic.co/u/at_andreas)\
**Post date:** [December 11, 2024, 10:51am UTC](https://discuss.elastic.co/t/spans-wont-be-shown-in-apm-services-traces/371826/1 "2024-12-11T10:51:01Z")

</div>

I'm working on a Framework 4.8 web application (C#) and using the latest NuGet packages:

- Elastic.Apm.AspNetFullFramework
- Elastic.Apm.NetCoreAll

I start new spans via `Transaction.StartSpan` (`Agent.Tracer.CurrentTransaction`). There is a transaction; I wrapped this transaction in a scoped service and manually end the transaction in the `Dispose` method. Everything works fine: I see the transactions and the created spans of different types (custom). Every span has `End()` called.

However, when I open **Observability → APM → Services → Transactions** , there are no spans or only very few, and only of the type `db.mssql.query`.

I am using the latest versions of APM Server, Elasticsearch, and Kibana via Docker.  
Data views: APM  
Index pattern: `traces-apm*,apm-*,logs-apm*,apm-*,metrics-apm*,apm-*`

**Example:**

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8a7d054f1bc092fd95accfde51b054a43472d0b5.png)  
When i investigate the transaction in Discover, there are 59 spans started ...

What am I doing wrong?

Is it due to the Kibana configuration (and how can it be properly configured?) or is it due to the code?
