Skip to content

ref(transactions): Remove all of transaction metric extraction#5792

Open
Dav1dde wants to merge 4 commits intomasterfrom
dav1d/rm-transaction-metric-extraction
Open

ref(transactions): Remove all of transaction metric extraction#5792
Dav1dde wants to merge 4 commits intomasterfrom
dav1d/rm-transaction-metric-extraction

Conversation

@Dav1dde
Copy link
Copy Markdown
Member

@Dav1dde Dav1dde commented Apr 8, 2026

  • Outcomes are inferred from the span usage metric, no longer the transaction metric.
  • Dynamic sampling also uses the spans count per root metric now.
  • All other transaction metrics were already removed before.
  • Removes the entire transactions namespace.
  • Remove transaction metrics extraction config.

This showcases a problem (which existed before) where we attach the transaction outcome to the span usage metric. When there are span rate limits, the transaction is also not counted. The code comment addresses a few options.

  • Apply span rate limits to transactions
  • Drop transaction payloads completely, only extract spans from transactions

@Dav1dde Dav1dde requested a review from a team as a code owner April 8, 2026 12:11
@Dav1dde Dav1dde self-assigned this Apr 8, 2026
@Dav1dde Dav1dde force-pushed the dav1d/rm-transaction-metric-extraction branch from b134b65 to 52ddb1d Compare April 8, 2026 12:12
@Dav1dde Dav1dde marked this pull request as draft April 8, 2026 12:16
@Dav1dde Dav1dde force-pushed the dav1d/rm-transaction-metric-extraction branch from 52ddb1d to ed909ef Compare April 8, 2026 14:41
@Dav1dde Dav1dde force-pushed the dav1d/rm-transaction-metric-extraction branch from ed909ef to b046034 Compare April 8, 2026 14:56
@Dav1dde Dav1dde requested a review from loewenheim April 8, 2026 14:56
@Dav1dde Dav1dde marked this pull request as ready for review April 8, 2026 14:57
@Dav1dde
Copy link
Copy Markdown
Member Author

Dav1dde commented Apr 8, 2026

@loewenheim jfyi the scope changed a bit sicne you last reviewed. I also deleted the metric namespace and had to adjust a bunch more tests.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2a7d31e. Configure here.

Comment on lines -509 to +510
Item::new(0, MetricNamespace::Transactions),
Item::new(1, MetricNamespace::Transactions),
Item::new(0, MetricNamespace::Sessions),
Item::new(1, MetricNamespace::Sessions),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In these tests, is there something particular about the Sessions namespace or do you just need something to replace the deleted Transactions one?

Comment on lines +170 to +174
Spans {
count: 2,
is_segment: true,
was_transaction: false,
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Naively it seems like we've lost a span here. The previous value for Transactions was 3.

//
// Transactions are counted using a span metric, as transaction payloads should
// eventually be fully transformed into spans. But this is for now only the case for
// metrics, the payloads are lacking behind.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit:

Suggested change
// metrics, the payloads are lacking behind.
// metrics, the payloads are lagging behind.

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