Skip to content

Conversation

michellewzhang
Copy link
Member

@michellewzhang michellewzhang commented Aug 28, 2025

redo of #97737

reverted the old pr as the trace id query was too slow -- it did 2 snuba queries per trace id (bad). this pr instead makes it 2 total queries for all trace ids

MERGE WED

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 28, 2025

This comment was marked as off-topic.

@michellewzhang michellewzhang marked this pull request as ready for review August 28, 2025 21:31
@michellewzhang michellewzhang requested a review from a team as a code owner August 28, 2025 21:31
@aliu39 aliu39 changed the title feat(replay): query IP for trace connected errors for replay summary feat(replay): query IP for trace connected errors for replay summary (v2) Aug 28, 2025
Copy link
Member

@aliu39 aliu39 left a comment

Choose a reason for hiding this comment

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

🤞

@aliu39
Copy link
Member

aliu39 commented Aug 28, 2025

Branching off this and adding better tracing/logging to debug

Wrap the methods of this endpoint with a custom transaction. Sampling
rates will be options-controlled. We need a high POST sample rate while
we develop this feature, to debug slow loading times.

I believe options can be segmented by user email, or something like
is_employee - will experiment
Merge with #98479

# Process issuePlatform query results
if issue_query_results and "data" in issue_query_results:
Copy link
Member Author

Choose a reason for hiding this comment

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

is there a chance the query results don't exist?

Copy link
Member

Choose a reason for hiding this comment

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

I think that's only when snuba errors, and we should raise rather than silently skip

@michellewzhang michellewzhang merged commit 68f2ab9 into master Sep 3, 2025
64 checks passed
@michellewzhang michellewzhang deleted the mz/fix-ip-query branch September 3, 2025 16:12
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