Skip to content

ref(outcomes): Transport outcomes as metrics#6082

Open
Dav1dde wants to merge 1 commit into
masterfrom
dav1d/as-outcomes-is-as-metrics
Open

ref(outcomes): Transport outcomes as metrics#6082
Dav1dde wants to merge 1 commit into
masterfrom
dav1d/as-outcomes-is-as-metrics

Conversation

@Dav1dde

@Dav1dde Dav1dde commented Jun 11, 2026

Copy link
Copy Markdown
Member

Treats AsOutcomes like AsMetrics and removes the temporary AsMetrics again. Client reports are still unaffected and need to be implemented in another PR. After client reports are implemented the outcome aggregator service no longer needs to aggregate.

Functional change: Unknown projects no longer write outcomes to that project id, which I'd consider as a bugfix. If the project doesn't exist, there doesn't need to be an outcome for it (some tests are adjusted here and/or deleted).

Some changes to tests: Since there is no dedicated outcomes endpoint anymore, outcomes are extracted from global metrics as well as metric bucket envelope items. Outcomes now have always a key id, org and project id as they are resolved with a project config.

Important: Rollout in environments with multiple internal Relays must happen from the first Relay->Processing Relay

@Dav1dde Dav1dde requested a review from a team as a code owner June 11, 2026 19:11
@Dav1dde Dav1dde self-assigned this Jun 11, 2026
@Dav1dde Dav1dde force-pushed the dav1d/as-outcomes-is-as-metrics branch from 11ebf25 to 0b7fd38 Compare June 11, 2026 19:13
Comment thread relay-config/src/config.rs
@Dav1dde Dav1dde force-pushed the dav1d/as-outcomes-is-as-metrics branch 3 times, most recently from c269bfd to 682bf1a Compare June 11, 2026 19:42
@Dav1dde Dav1dde force-pushed the dav1d/as-outcomes-is-as-metrics branch 2 times, most recently from ad440c0 to 6052185 Compare June 11, 2026 21:08
@Dav1dde Dav1dde force-pushed the dav1d/as-outcomes-is-as-metrics branch from 6052185 to 76fcbe3 Compare June 11, 2026 21:20
Comment thread relay-server/src/services/outcome/service.rs
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.

1 participant