Skip to content

feat(occurrences on eap): Implement double reads from EAP in organization events trace API endpoint#109391

Merged
shashjar merged 1 commit intomasterfrom
implement-eap-occurrence-double-reads-organization-events-trace-api-endpoint
Feb 28, 2026
Merged

feat(occurrences on eap): Implement double reads from EAP in organization events trace API endpoint#109391
shashjar merged 1 commit intomasterfrom
implement-eap-occurrence-double-reads-organization-events-trace-api-endpoint

Conversation

@shashjar
Copy link
Member

Implements double reads of occurrences from EAP for count_performance_issues in src/sentry/api/endpoints/organization_events_trace.py.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 25, 2026
@shashjar shashjar requested a review from a team February 25, 2026 22:43
@shashjar shashjar marked this pull request as ready for review February 25, 2026 22:43
@shashjar shashjar requested review from a team as code owners February 25, 2026 22:43
@shashjar shashjar removed the request for review from a team February 25, 2026 22:43
Comment on lines +551 to +560
eap_result = Occurrences.run_table_query(
params=params,
query_string=f"trace:{trace_id}",
selected_columns=["count()"],
orderby=None,
offset=0,
limit=1,
referrer=Referrer.API_TRACE_VIEW_COUNT_PERFORMANCE_ISSUES.value,
config=SearchResolverConfig(),
occurrence_category=OccurrenceCategory.GENERIC,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Could this be added into the logic for count_occurrences instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was actually thinking of creating a separate query abstraction for trace-connected issues (e.g. accept a list of trace IDs and get the related issues or count all the related occurrences). Will write that as a follow-up

@shashjar shashjar merged commit d761c52 into master Feb 28, 2026
80 checks passed
@shashjar shashjar deleted the implement-eap-occurrence-double-reads-organization-events-trace-api-endpoint branch February 28, 2026 01:48
jan-auer added a commit that referenced this pull request Mar 2, 2026
…ept-encoding

* origin/master: (63 commits)
  fix(api): Add missing cursor query parameter to paginated endpoint OpenAPI schemas (#109642)
  docs(sentry-apps): Add sentryAppId to sentry-app-installations API schema (#109628)
  feat(occurrences on eap): Implement double reads from EAP in organization events trace API endpoint (#109391)
  feat(occurrences on eap): Implement double reads from EAP for reprocessing2 flow (#109345)
  feat(ci): report backend test fails (#109543)
  feat(seer): Add signed viewer context header to Seer API requests (#109626)
  devenv: cleanup devenv-managed uv (#109617)
  feat(seer): Iterate on the instructions at the top of seer settings pages (#109586)
  ref(seer): Add typed wrappers for remaining Seer API callsites (#109607)
  feat(preprod): Make snapshots endpoint org scoped (#109575)
  chore: capture exception (#109620)
  fix(formatting): run ruff format (#109618)
  feat(preprod): Create admin gated recompare snapshots endpoint (#109546)
  feat(cells): expand locality/cell distinction (#109538)
  feat(cells): add db migration for synapse (#109615)
  feat(preprod): Add public install-details endpoint and shared utilities (#109583)
  fix(tests): Fix flaky test_cross_trace_query_with_spans_and_logs (#109572)
  fix(grouping): Resolve mypy possibly-undefined errors in grouphash caching (#109602)
  fix(dashboards): Default axisRange to auto for existing widgets in builder (#109598)
  fix(billing): Fix category display names in pending changes (#109612)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants