# Missing Transactions in New APM Versions - Python with FastAPI

**URL:** <https://discuss.elastic.co/t/missing-transactions-in-new-apm-versions-python-with-fastapi/364552>\
**Category:** APM\
**Tags:** elastic-stack-monitoring, python, ui\
**Created:** [August 7, 2024, 6:05pm UTC](https://discuss.elastic.co/t/missing-transactions-in-new-apm-versions-python-with-fastapi/364552 "2024-08-07T18:05:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindyzwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mindyzwan/32/136619_2.png) [@mindyzwan](https://discuss.elastic.co/u/mindyzwan)\
**Post date:** [August 7, 2024, 6:05pm UTC](https://discuss.elastic.co/t/missing-transactions-in-new-apm-versions-python-with-fastapi/364552/1 "2024-08-07T18:05:24Z")

</div>

**Kibana version** : 8.13

**Elasticsearch version** : 8.13

**APM Server version** : 8.13

**APM Agent language and version** : python, 6.22.3

**Is there anything special in your setup?** Using AWS ALB as a load balancer for the service.

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

We've set up APM via FastAPI as follows:

```auto
from elasticapm.contrib.starlette import ElasticAPM

app = FastAPI({configs})
app.add_middleware(ElasticAPM)

```

We have multiple routers that are included in the FastAPI app, and all but one appear to be working correctly. One route will not appear in APM in our transactions or visually as data points in our dashboards. Oddly enough, it appears in the legend but even when it's the only visible item, there is no data in the graph.

There is no notable difference in the code between the different transactions in the service.

It all works locally with versions 7.17 for Kibana, APM, & Elasticsearch, but when we upgrade locally, the transactions for that route disappear there as well.

Also notable, we recently upgraded our Python runtime (from 3.11.8 to 3.11.9) and APM is not populating with the new runtime version.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Alex\_Salgado-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_salgado-elastic/32/103081_2.png) [@Alex\_Salgado-Elastic](https://discuss.elastic.co/u/Alex_Salgado-Elastic)\
**Post date:** [August 8, 2024, 3:12am UTC](https://discuss.elastic.co/t/missing-transactions-in-new-apm-versions-python-with-fastapi/364552/2 "2024-08-08T03:12:20Z")

</div>

Hi @mindyzwan , welcome to our community!

Have you followed this recommendations for FastAPI?

[[Starlette/FastAPI Support | APM Python Agent Reference [6.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/python/current/starlette-support.html#starlette-installation)]([https://Starlette/FastAPI](https://Starlette/FastAPI) Support)

---

<div class="post-metadata">

**Author:** ![mindyzwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mindyzwan/32/136619_2.png) [@mindyzwan](https://discuss.elastic.co/u/mindyzwan)\
**Post date:** [August 8, 2024, 5:09pm UTC](https://discuss.elastic.co/t/missing-transactions-in-new-apm-versions-python-with-fastapi/364552/3 "2024-08-08T17:09:35Z")

</div>

Thanks for the welcome! I did follow those recommendations, yes.

---

<div class="post-metadata">

**Author:** ![mindyzwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mindyzwan/32/136619_2.png) [@mindyzwan](https://discuss.elastic.co/u/mindyzwan)\
**Post date:** [August 8, 2024, 6:15pm UTC](https://discuss.elastic.co/t/missing-transactions-in-new-apm-versions-python-with-fastapi/364552/4 "2024-08-08T18:15:50Z")

</div>

Update on this, we did get it working locally with 8.13.

It started working in one of our environments (magically - we changed nothing), but still not on production. Notably, the environment it started working in now has a Python runtime of 3.11.9, while production is still stuck at 3.11.8.

---

<div class="post-metadata">

**Author:** ![riccardom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/riccardom/32/132044_2.png) [@riccardom](https://discuss.elastic.co/u/riccardom)\
**Post date:** [August 22, 2024, 2:26pm UTC](https://discuss.elastic.co/t/missing-transactions-in-new-apm-versions-python-with-fastapi/364552/5 "2024-08-22T14:26:37Z")

</div>

Is the fastapi version the same? Which one?  
I don't see anything in the Python 3.11.9 release notes that may explain a change in behavior though. Does upgrading the apm agent to 6.23.0 change something?

---

<div class="post-metadata">

**Author:** ![Byeong0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/byeong0/32/142559_2.png) [@Byeong0](https://discuss.elastic.co/u/Byeong0)\
**Post date:** [April 11, 2025, 5:04am UTC](https://discuss.elastic.co/t/missing-transactions-in-new-apm-versions-python-with-fastapi/364552/6 "2025-04-11T05:04:11Z")

</div>

I have the same problem, has it been resolved?
