question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Help understanding why spans are being dropped

See original GitHub issue

Hello, this is not a bug report but a help request. If this is not the right place I apologize in advance.

In the APM section of Kibana I see these warnings:

The APM agent that reported this transaction dropped X spans or more based on its configuration.

I’ve read the linked documentation and added the following environment vars:

- name: ELASTIC_APM_SPAN_FRAMES_MIN_DURATION
  value: "-1"
- name: ELASTIC_APM_TRANSACTION_MAX_SPANS
  value: "1000"
- name: ELASTIC_APM_STACK_TRACE_LIMIT
  value: "1000"

I’ve tried different values for ELASTIC_APM_TRANSACTION_MAX_SPANS: 1000, 2000 and 4000 but spans are still being dropped in the transactions.

My transactions are very simple, they have a dozen of spans at most. In another cluster I’ve running with less requests the spans are not being dropped.

How can I find the cause of the spans being dropped or the right value for ELASTIC_APM_TRANSACTION_MAX_SPANS?

If the cause were unforeseen errors like it says in the documentation what can I do to find them?

Thank you.

Environment

  • OS: Debian 11 (Docker)
  • Python version: 3.9.13
  • Framework and version: Flask 2.1.3
  • APM Server version: 7.12.1
  • Agent version: 6.10.2

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
basepicommented, Sep 6, 2022

I haven’t forgotten you! The other dev for the python agent is coming back from leave next week, I’m going to pick his brain and see if he has any bright ideas about what’s going on here.

0reactions
basepicommented, Sep 15, 2022

Yes! Glad we solved it. 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where did all my spans go? A guide to diagnosing dropped ...
Having dropped spans simply means that your process filled the queue faster than it was capable of offloading them. Two options for fixing...
Read more >
Changing Attention Span and What it Means for Content
A recent study by Microsoft concluded that the human attention span has dropped to eight seconds – shrinking nearly 25% in just a...
Read more >
Dropping spans in production · Discussion #3311 - GitHub
From my understanding, the agent opens a persistent connection to the collector which is then re-used to send spans. Is this correct? Something...
Read more >
Unable to find traces | Grafana Tempo documentation
A guide to diagnosing dropped spans in Jaeger distributed tracing. ... any dropped spans, check whether application spans are being dropped by Tempo....
Read more >
Short Attention Span: Signs, Causes & Ways to ... - Healthline
If your mind wanders and it's hard for you to remain interested and focused, there are things you can do to help improve...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found