opensearch-project / dashboards-observability

Visualize and explore your logs, traces and metrics data in OpenSearch Dashboards
https://opensearch.org/docs/latest/observability-plugin/index/
Apache License 2.0
14 stars 46 forks source link

[BUG] Not all spans are displayed in gantt chart #1924

Open joshuali925 opened 1 week ago

joshuali925 commented 1 week ago

What is the bug? Currently gantt chart limits the maximum number of spans to 3k for performance. The list of spans come from this query sorted by startTime in descending order. https://github.com/opensearch-project/dashboards-observability/blob/47e85789575ba2a92d10a81201dbf00f60457c73/public/components/trace_analytics/requests/queries/traces_queries.ts#L350

If a trace has more than 3k spans, the gantt chart only shows the latest 3k spans

How can one reproduce the bug? Steps to reproduce the behavior:

  1. Create a trace with more than 3k spans
  2. Go to the trace
  3. See gantt chart, only the latest 3k spans are displayed

What is the expected behavior? Should show all spans

What is your host/environment?

Do you have any screenshots? If applicable, add screenshots to help explain your problem.

Do you have any additional context? Add any other context about the problem.