# \#python

**URL:** https://discuss.elastic.co/tag/python/34.md

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

---

## [Ingest openinference spans with chars more than 1024](https://discuss.elastic.co/t/ingest-openinference-spans-with-chars-more-than-1024/388650)

<div class="topic-metadata">

**Author:** [@nikhil\_digde](https://discuss.elastic.co/u/nikhil_digde)\
**Replies:** 2\
**Last updated:** [July 26, 2026, 11:11am UTC](https://discuss.elastic.co/t/ingest-openinference-spans-with-chars-more-than-1024/388650 "2026-07-26T11:11:22Z")

</div>

Is anyone storing open inference / otel Genai spans in elastic APM? I am having issues with the char limit of 1024 , due to which I have issues using the data to run online evals later. Is it not the correct fit for the …

---

## [Apm-agent-python: FastAPI ≥0.137 breaks ElasticAPM middleware - AttributeError "'\_IncludedRouter' object has no attribute 'path'"](https://discuss.elastic.co/t/apm-agent-python-fastapi-0-137-breaks-elasticapm-middleware-attributeerror-includedrouter-object-has-no-attribute-path/387112)

<div class="topic-metadata">

**Author:** [@Sophie\_Clark](https://discuss.elastic.co/u/Sophie_Clark)\
**Replies:** 2\
**Last updated:** [June 23, 2026, 7:25am UTC](https://discuss.elastic.co/t/apm-agent-python-fastapi-0-137-breaks-elasticapm-middleware-attributeerror-includedrouter-object-has-no-attribute-path/387112 "2026-06-23T07:25:06Z")

</div>

APM Agent language and version: Python - elastic-apm (6.26.1). The bug affects all current releases (≤ 6.26.1): the newest agent (6.26.1, 25 May 2026) predates FastAPI 0.137.0 (14 Jun 2026), so no released version handle…

---

## [Choppy graphs with APM 8.x](https://discuss.elastic.co/t/choppy-graphs-with-apm-8-x/384590)

<div class="topic-metadata">

**Author:** [@Alex-T](https://discuss.elastic.co/u/Alex-T)\
**Replies:** 1\
**Last updated:** [January 19, 2026, 4:23pm UTC](https://discuss.elastic.co/t/choppy-graphs-with-apm-8-x/384590 "2026-01-19T16:23:56Z")

</div>

Not sure if this is just a very delayed duplicate of Dropped unsampled transactions in \>= 8.x poses a problem - but I’ve only just upgraded to version 8 of the various stack components. The thoughput/latency graphs show…

---

## [Question about APM Logs feature support across agents](https://discuss.elastic.co/t/question-about-apm-logs-feature-support-across-agents/383418)

<div class="topic-metadata">

**Author:** [@barcus](https://discuss.elastic.co/u/barcus)\
**Replies:** 3\
**Last updated:** [December 4, 2025, 3:07pm UTC](https://discuss.elastic.co/t/question-about-apm-logs-feature-support-across-agents/383418 "2025-12-04T15:07:34Z")

</div>

Hello APM team, I have a question regarding the experimental feature that allows application logs to be ingested through the APM Agent and stored directly into the APM log indices (one index per APM service). From what…

---

## [Not able to capture error for Python app](https://discuss.elastic.co/t/not-able-to-capture-error-for-python-app/382799)

<div class="topic-metadata">

**Author:** [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Replies:** 0\
**Last updated:** [October 17, 2025, 8:12am UTC](https://discuss.elastic.co/t/not-able-to-capture-error-for-python-app/382799 "2025-10-17T08:12:02Z")

</div>

Hello Everyone, I am not able to capture error message in APM for python app.Below is the code . import requests import elasticapm from elasticapm import Client from elasticapm.instrumentation.control import instrument…

---

## [Python APM module not loading exceptions](https://discuss.elastic.co/t/python-apm-module-not-loading-exceptions/379211)

<div class="topic-metadata">

**Author:** [@tflorac](https://discuss.elastic.co/u/tflorac)\
**Replies:** 1\
**Last updated:** [June 23, 2025, 6:52pm UTC](https://discuss.elastic.co/t/python-apm-module-not-loading-exceptions/379211 "2025-06-23T18:52:20Z")

</div>

Kibana version: 8.18.1 Elasticsearch version: 8.18.1 (three nodes cluster) APM Server version: 8.18.1 APM Agent language and version: Python, 6.23.0 Browser version: Brave Original install method (e.g. download page…

---

## [Add Transaction.name in Spans / Merge Doucment of span and transaction](https://discuss.elastic.co/t/add-transaction-name-in-spans-merge-doucment-of-span-and-transaction/376172)

<div class="topic-metadata">

**Author:** [@kishorkumar](https://discuss.elastic.co/u/kishorkumar)\
**Replies:** 20\
**Last updated:** [April 16, 2025, 8:50pm UTC](https://discuss.elastic.co/t/add-transaction-name-in-spans-merge-doucment-of-span-and-transaction/376172 "2025-04-16T20:50:08Z")

</div>

Hello Elastic Observability \> APM engineers, I have multiple agents ingerated with multiple type of applications using multiple methods like nodes js agents, python, java and some of the application are ingerated using…

---

## [Missing Transactions in New APM Versions - Python with FastAPI](https://discuss.elastic.co/t/missing-transactions-in-new-apm-versions-python-with-fastapi/364552)

<div class="topic-metadata">

**Author:** [@mindyzwan](https://discuss.elastic.co/u/mindyzwan)\
**Replies:** 5\
**Last updated:** [April 11, 2025, 5:04am UTC](https://discuss.elastic.co/t/missing-transactions-in-new-apm-versions-python-with-fastapi/364552 "2025-04-11T05:04:11Z")

</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. Des…

---

## [No transaction.type = request records, when application with agent works in docker](https://discuss.elastic.co/t/no-transaction-type-request-records-when-application-with-agent-works-in-docker/376315)

<div class="topic-metadata">

**Author:** [@Roman\_Shamrai](https://discuss.elastic.co/u/Roman_Shamrai)\
**Replies:** 4\
**Last updated:** [March 24, 2025, 3:19pm UTC](https://discuss.elastic.co/t/no-transaction-type-request-records-when-application-with-agent-works-in-docker/376315 "2025-03-24T15:19:45Z")

</div>

\*\*Kibana version: 8.16.4 \*\*: Elasticsearch version: 8.16.4: \*\*APM Server version: 8.16.4 - deployed through policy on fleet-server v1.6.0 \*\*: APM Agent language and version: python 6.23.0: Browser version: Firefox 13…

---

## [FastAPI display "No data to display" in Kibana #903](https://discuss.elastic.co/t/fastapi-display-no-data-to-display-in-kibana-903/375687)

<div class="topic-metadata">

**Author:** [@shijingyu323](https://discuss.elastic.co/u/shijingyu323)\
**Replies:** 1\
**Last updated:** [March 11, 2025, 8:38am UTC](https://discuss.elastic.co/t/fastapi-display-no-data-to-display-in-kibana-903/375687 "2025-03-11T08:38:19Z")

</div>

Kibana version:8.2.0 Elasticsearch version:8.2.0 APM Server version:8.2.0 APM Agent language and version: fastapi 0.83.0 After integrating the FastAPI service with APM, Kibana shows "No data to display." While CPU an…

---

## [Request for Detailed Guide on Implementing Custom Metrics in Python APM](https://discuss.elastic.co/t/request-for-detailed-guide-on-implementing-custom-metrics-in-python-apm/366853)

<div class="topic-metadata">

**Author:** [@Divyanshu\_Sharma](https://discuss.elastic.co/u/Divyanshu_Sharma)\
**Replies:** 18\
**Last updated:** [January 10, 2025, 6:04pm UTC](https://discuss.elastic.co/t/request-for-detailed-guide-on-implementing-custom-metrics-in-python-apm/366853 "2025-01-10T18:04:21Z")

</div>

Hello Elastic Team, I hope this message finds you well. I’m currently exploring the implementation of custom metrics using the Elastic APM Python agent, as outlined in the documentation here. While the existing documen…

---

## [Max Characters Length for JSON in transaction labels](https://discuss.elastic.co/t/max-characters-length-for-json-in-transaction-labels/370257)

<div class="topic-metadata">

**Author:** [@mkaniaa](https://discuss.elastic.co/u/mkaniaa)\
**Replies:** 0\
**Last updated:** [November 9, 2024, 4:27pm UTC](https://discuss.elastic.co/t/max-characters-length-for-json-in-transaction-labels/370257 "2024-11-09T16:27:36Z")

</div>

Hello, I am running a Flask application (v3.0.2) with Elastic APM integrated via the elastic-apm package (v6.23.0). In APM, I am trying to add a custom label for my transactions containing the outgoing HTTP response body…

---

## [FastAPI + ELASTIC\_APM\_CAPTURE\_BODY: Unexpected message received: http.request](https://discuss.elastic.co/t/fastapi-elastic-apm-capture-body-unexpected-message-received-http-request/370031)

<div class="topic-metadata">

**Author:** [@mkaniaa](https://discuss.elastic.co/u/mkaniaa)\
**Replies:** 3\
**Last updated:** [November 8, 2024, 3:17pm UTC](https://discuss.elastic.co/t/fastapi-elastic-apm-capture-body-unexpected-message-received-http-request/370031 "2024-11-08T15:17:08Z")

</div>

Hello! I'm running a FastAPI application (v0.111) with Elastic APM integrated via the elastic-apm package (v6.22.3). The setup had been working smoothly until I modified the APM configuration, setting ELASTIC\_APM\_CAPTURE…

---

## [Elastic APM, Agent and Fleet for Django/Flask logs](https://discuss.elastic.co/t/elastic-apm-agent-and-fleet-for-django-flask-logs/361391)

<div class="topic-metadata">

**Author:** [@Muhammad\_Adil\_Talay](https://discuss.elastic.co/u/Muhammad_Adil_Talay)\
**Replies:** 1\
**Last updated:** [June 13, 2024, 1:48pm UTC](https://discuss.elastic.co/t/elastic-apm-agent-and-fleet-for-django-flask-logs/361391 "2024-06-13T13:48:03Z")

</div>

I want to get the logs from applications (Django, Flask) to the Elastic APM server, but am struggling to make sense of it. If I follow the documentation, it tells to setup APM server either as standalone or managed by F…

---

## [Flask Integration issues with Self Signed Certificate via Fleet](https://discuss.elastic.co/t/flask-integration-issues-with-self-signed-certificate-via-fleet/359342)

<div class="topic-metadata">

**Author:** [@Yogesh\_AS](https://discuss.elastic.co/u/Yogesh_AS)\
**Replies:** 2\
**Last updated:** [May 14, 2024, 5:34am UTC](https://discuss.elastic.co/t/flask-integration-issues-with-self-signed-certificate-via-fleet/359342 "2024-05-14T05:34:14Z")

</div>

Hi Team , Advance thanks for helping me out andI am trying to monitor the flask application metrices I am getting an error like given below Failed to submit message: "Unable to reach APM Server: HTTPSConnectionPool(ho…

---

## [APM does not display spans despite having them in ES](https://discuss.elastic.co/t/apm-does-not-display-spans-despite-having-them-in-es/353049)

<div class="topic-metadata">

**Author:** [@Dzikidzik](https://discuss.elastic.co/u/Dzikidzik)\
**Replies:** 13\
**Last updated:** [March 13, 2024, 9:10am UTC](https://discuss.elastic.co/t/apm-does-not-display-spans-despite-having-them-in-es/353049 "2024-03-13T09:10:03Z")

</div>

I have two Django apps and celery running tasks in background, and Kibana seems to not display properly spans for transaction that are stored in ES. Transaction metadata shows transaction.span\_count.started: 48 and i…

---

## [Attend to bugfix(es) on python library](https://discuss.elastic.co/t/attend-to-bugfix-es-on-python-library/347926)

<div class="topic-metadata">

**Author:** [@Thijs\_Miedema](https://discuss.elastic.co/u/Thijs_Miedema)\
**Replies:** 1\
**Last updated:** [November 27, 2023, 8:04pm UTC](https://discuss.elastic.co/t/attend-to-bugfix-es-on-python-library/347926 "2023-11-27T20:04:03Z")

</div>

Some fixes have been provided from minor bugs on the python elasticapm library Pull requests · elastic/apm-agent-python · GitHub that are not being attended to, in particular Fix asyncpg tests to make it compatible with …

---

## [Unable to reach APM Server: 'Connection aborted.' RemoteDisconnected('Remote end closed connection without response')) (url: http://127.0.0.1:8200/intake/v2/events). (potentially caused by apm-lambda-extension/extension.handleIntakeV2Events exception)](https://discuss.elastic.co/t/unable-to-reach-apm-server-connection-aborted-remotedisconnected-remote-end-closed-connection-without-response-url-http-127-0-0-1-8200-intake-v2-events-potentially-caused-by-apm-lambda-extension-extension-handleintakev2events-exception/347039)

<div class="topic-metadata">

**Author:** [@Anton\_Matviyenko](https://discuss.elastic.co/u/Anton_Matviyenko)\
**Replies:** 1\
**Last updated:** [November 14, 2023, 5:01am UTC](https://discuss.elastic.co/t/unable-to-reach-apm-server-connection-aborted-remotedisconnected-remote-end-closed-connection-without-response-url-http-127-0-0-1-8200-intake-v2-events-potentially-caused-by-apm-lambda-extension-extension-handleintakev2events-exception/347039 "2023-11-14T05:01:40Z")

</div>

Dear Elastic Team, It looks like this issue is similar to the following: We do use Python APM Elastic Agent along with Sentry and in Sentry we do see the following exceptions: Failed to submit message: "Unable to …

---

## [APM Integration Issue](https://discuss.elastic.co/t/apm-integration-issue/345468)

<div class="topic-metadata">

**Author:** [@fenixon](https://discuss.elastic.co/u/fenixon)\
**Replies:** 1\
**Last updated:** [October 23, 2023, 1:55am UTC](https://discuss.elastic.co/t/apm-integration-issue/345468 "2023-10-23T01:55:10Z")

</div>

{"log.level":"error","@timestamp":"2023-10-20T13:15:35.973Z","log.logger":"agentcfg","log.origin":{"file.name":"agentcfg/elasticsearch.go","file.line":134},"message":"refresh cache error: context deadline exceeded","serv…

---

## [Transaction result setting as failure/spindown](https://discuss.elastic.co/t/transaction-result-setting-as-failure-spindown/342950)

<div class="topic-metadata">

**Author:** [@gabriel-f-santos](https://discuss.elastic.co/u/gabriel-f-santos)\
**Replies:** 0\
**Last updated:** [September 13, 2023, 12:28pm UTC](https://discuss.elastic.co/t/transaction-result-setting-as-failure-spindown/342950 "2023-09-13T12:28:12Z")

</div>

Hello everyone! We are using agent and APM extensions for monitoring our serverless application with Python Lambdas. We're following this configuration for SAM applications: APM Agent language and version : Language: …

---

## [APM Flask - Treating all transactions as Errors](https://discuss.elastic.co/t/apm-flask-treating-all-transactions-as-errors/343611)

<div class="topic-metadata">

**Author:** [@Jasonespo](https://discuss.elastic.co/u/Jasonespo)\
**Replies:** 5\
**Last updated:** [September 27, 2023, 7:16pm UTC](https://discuss.elastic.co/t/apm-flask-treating-all-transactions-as-errors/343611 "2023-09-27T19:16:38Z")

</div>

Kibana version: 8.9.1 Elasticsearch version: 8.9.1 APM Server version: 8.9.1 APM Agent language and version: Python (Flask) 6.18.0 We are trying to build a proof of concept using Elastic APM and are running into a si…

---

## [Elastic APM agent not pushing data to APM server from docker but pushing data outside of docker](https://discuss.elastic.co/t/elastic-apm-agent-not-pushing-data-to-apm-server-from-docker-but-pushing-data-outside-of-docker/343111)

<div class="topic-metadata">

**Author:** [@Rishav\_Kr](https://discuss.elastic.co/u/Rishav_Kr)\
**Replies:** 4\
**Last updated:** [September 22, 2023, 8:51am UTC](https://discuss.elastic.co/t/elastic-apm-agent-not-pushing-data-to-apm-server-from-docker-but-pushing-data-outside-of-docker/343111 "2023-09-22T08:51:48Z")

</div>

APM Agent language and version: 6.18.0 with Python (FastAPI) Issue : When executing the APM agent with Python (FastAPI) outside docker I am able to view the API transactions in Kibana, however, when I run the FastAPI…

---

## [Download Transactions Data to excel sheet in Elastic APM](https://discuss.elastic.co/t/download-transactions-data-to-excel-sheet-in-elastic-apm/339957)

<div class="topic-metadata">

**Author:** [@Dixit](https://discuss.elastic.co/u/Dixit)\
**Replies:** 7\
**Last updated:** [August 9, 2023, 6:20pm UTC](https://discuss.elastic.co/t/download-transactions-data-to-excel-sheet-in-elastic-apm/339957 "2023-08-09T18:20:13Z")

</div>

hi @basepi , Is there any way can download the TRANSACTIONAL DATA to an excel sheet.

---

## [How can we pass elasticapm object for a function inside the threadpool executor](https://discuss.elastic.co/t/how-can-we-pass-elasticapm-object-for-a-function-inside-the-threadpool-executor/337646)

<div class="topic-metadata">

**Author:** [@sairam\_kadakuntla](https://discuss.elastic.co/u/sairam_kadakuntla)\
**Replies:** 8\
**Last updated:** [July 18, 2023, 11:52am UTC](https://discuss.elastic.co/t/how-can-we-pass-elasticapm-object-for-a-function-inside-the-threadpool-executor/337646 "2023-07-18T11:52:17Z")

</div>

how can we pass elastic apm object through threadpool and add labels to that function

---

## [How to monitor transactions which pass through Rabbit MQ, producer & consumer are python clients](https://discuss.elastic.co/t/how-to-monitor-transactions-which-pass-through-rabbit-mq-producer-consumer-are-python-clients/332647)

<div class="topic-metadata">

**Author:** [@Dixit](https://discuss.elastic.co/u/Dixit)\
**Replies:** 4\
**Last updated:** [May 17, 2023, 11:03am UTC](https://discuss.elastic.co/t/how-to-monitor-transactions-which-pass-through-rabbit-mq-producer-consumer-are-python-clients/332647 "2023-05-17T11:03:30Z")

</div>

Hi All, I want to "trace" distributed transactions which pass through "Rabbit MQ" through the Application. The clients for Rabbit MQ are written in python 2.x & Python 3,.x to consume and produce messages. When in Elas…

---

## [Failed to submit message (aws lambda using python)](https://discuss.elastic.co/t/failed-to-submit-message-aws-lambda-using-python/332576)

<div class="topic-metadata">

**Author:** [@gabriel-f-santos](https://discuss.elastic.co/u/gabriel-f-santos)\
**Replies:** 3\
**Last updated:** [May 8, 2023, 4:38am UTC](https://discuss.elastic.co/t/failed-to-submit-message-aws-lambda-using-python/332576 "2023-05-08T04:38:23Z")

</div>

Hello guys, I am using elastic in lambda, with: elastic-apm==6.14 layer:elastic-apm-extension-ver-1-3-0-x86\_64:1 python 3.9 in aws lambda I am receiving an error in some operations, most of the executions works fine,…

---

## [Strange behaviour with APM and negation filters](https://discuss.elastic.co/t/strange-behaviour-with-apm-and-negation-filters/327831)

<div class="topic-metadata">

**Author:** [@Jeremy\_Cohen\_Solal](https://discuss.elastic.co/u/Jeremy_Cohen_Solal)\
**Replies:** 3\
**Last updated:** [March 21, 2023, 3:53pm UTC](https://discuss.elastic.co/t/strange-behaviour-with-apm-and-negation-filters/327831 "2023-03-21T15:53:58Z")

</div>

Kibana version: tested on 7.17.8 and latest (8) locally Elasticsearch version: same APM Server version: same APM Agent language and version: python Browser version: chrome Original install method (e.g. download page…

---

## [Http transaction is success although error](https://discuss.elastic.co/t/http-transaction-is-success-although-error/327075)

<div class="topic-metadata">

**Author:** [@avlachopoulos](https://discuss.elastic.co/u/avlachopoulos)\
**Replies:** 1\
**Last updated:** [March 7, 2023, 12:28pm UTC](https://discuss.elastic.co/t/http-transaction-is-success-although-error/327075 "2023-03-07T12:28:11Z")

</div>

I have a simple web transaction using fast api to test APM. The code is the following: app.get("/critical", status\_code=500) def critcal\_failure(): try: print("Doing something critical") raise Except…

---

## [How to start and end transaction in python aws lambda function , also how to add labels between transaction](https://discuss.elastic.co/t/how-to-start-and-end-transaction-in-python-aws-lambda-function-also-how-to-add-labels-between-transaction/324320)

<div class="topic-metadata">

**Author:** [@Pratiksha\_Nagoshe](https://discuss.elastic.co/u/Pratiksha_Nagoshe)\
**Replies:** 16\
**Last updated:** [February 21, 2023, 4:21am UTC](https://discuss.elastic.co/t/how-to-start-and-end-transaction-in-python-aws-lambda-function-also-how-to-add-labels-between-transaction/324320 "2023-02-21T04:21:16Z")

</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 :slight\_smile: TIP 1: select at lea…

---

## [APM for monitoring ELK applications](https://discuss.elastic.co/t/apm-for-monitoring-elk-applications/324503)

<div class="topic-metadata">

**Author:** [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Replies:** 7\
**Last updated:** [February 12, 2023, 4:25pm UTC](https://discuss.elastic.co/t/apm-for-monitoring-elk-applications/324503 "2023-02-12T16:25:04Z")

</div>

Hi Community, Just started APM from today. Running ELK version 7.17 , installed APM also can we use APM for monitoring ELK applications.

[Next page](https://discuss.elastic.co/tag/python/34.md?match_all_tags=true&page=1&tags%5B%5D=python)
