Skip to content

fix(projects): Projects endpoint should use spans - #120743

Merged
k-fish merged 1 commit into
masterfrom
fix/project/stats-allows-spans-in-lieu-of-transactions
Jul 28, 2026
Merged

fix(projects): Projects endpoint should use spans#120743
k-fish merged 1 commit into
masterfrom
fix/project/stats-allows-spans-in-lieu-of-transactions

Conversation

@k-fish

@k-fish k-fish commented Jul 28, 2026

Copy link
Copy Markdown
Member

The stats for the project list page was still going through metricsEnhanced for txn count etc, and had no option to use spans. We're no longer writing transaction information to generic_metrics (where metricsEnhanced got the metrics from) so this needs to be switched over.

This PR gives the endpoint it's own spans query; is_transaction:true grouped by project.id and ignores dataset for it (we'll delete it in the frontend). Spans return had to be zerofilled to match existing behaviour, and returned empty projects since this is an exhaustive listing.

The stats for the project list page was still going through
metricsEnhanced for txn count etc, and had no option to use spans.

This PR gives the endpoint it's own spans query — `is_transaction:true` grouped by
`project.id` and ignores `dataset` for it (we'll delete it in the
frontend). Spans return had to be zerofilled to match existing
behaviour.
@k-fish
k-fish requested review from a team as code owners July 28, 2026 15:00
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 28, 2026
@k-fish
k-fish enabled auto-merge (squash) July 28, 2026 15:05
@k-fish
k-fish merged commit cb23876 into master Jul 28, 2026
79 checks passed
@k-fish
k-fish deleted the fix/project/stats-allows-spans-in-lieu-of-transactions branch July 28, 2026 15:14
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