Skip to content

Conversation

@volokluev
Copy link
Member

@volokluev volokluev commented Jan 27, 2026

Previously, get_trace_ids_sql_for_cross_item_query extracted the limit from the original request, but different endpoints have different semantics for their limit fields. This changes the function to take an explicit limit parameter instead.

The impact of this was a data bug where TraceItemTable requests with cross item queries only had one or two span samples when there were actually thousands:

image

Changes:

  • Add optional limit parameter to get_trace_ids_sql_for_cross_item_query
  • EndpointGetTraces now passes its request limit explicitly
  • EndpointTimeSeries and EndpointTraceItemTable use default limit
  • Make default limit runtime configurable via state.get_config

The trace limit can now be configured at runtime using the trace_ids_cross_item_query_limit config key, with a default of 10,000.

Previously, get_trace_ids_sql_for_cross_item_query extracted the limit
from the original request, but different endpoints have different
semantics for their limit fields. This changes the function to take an
explicit limit parameter instead.

Changes:
- Add optional limit parameter to get_trace_ids_sql_for_cross_item_query
- EndpointGetTraces now passes its request limit explicitly
- EndpointTimeSeries and EndpointTraceItemTable use default limit
- Make default limit runtime configurable via state.get_config

The trace limit can now be configured at runtime using the
trace_ids_cross_item_query_limit config key, with a default of 10,000.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@volokluev volokluev requested review from a team as code owners January 27, 2026 21:11
@volokluev volokluev enabled auto-merge (squash) January 27, 2026 21:36
@volokluev volokluev merged commit 9f83ede into master Jan 27, 2026
33 checks passed
@volokluev volokluev deleted the cross_item_fix_limit branch January 27, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants