Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Session Aggregates as new Item #815

Merged
merged 4 commits into from
Nov 18, 2020
Merged

Conversation

Swatinem
Copy link
Member

This adds a more efficient envelope item for sending lots of sessions up that happened in the same minute.

Right now they are exploded in relay, but in the future they will be stored directly as-is.

CHANGELOG.md Outdated Show resolved Hide resolved
relay-general/src/protocol/session.rs Outdated Show resolved Hide resolved
relay-general/src/protocol/session.rs Outdated Show resolved Hide resolved
relay-general/src/protocol/session.rs Outdated Show resolved Hide resolved
relay-general/src/protocol/session.rs Outdated Show resolved Hide resolved
relay-server/src/actors/store.rs Outdated Show resolved Hide resolved
relay-server/src/actors/store.rs Outdated Show resolved Hide resolved
relay-server/src/actors/store.rs Outdated Show resolved Hide resolved
relay-server/src/endpoints/common.rs Outdated Show resolved Hide resolved
relay-server/src/envelope.rs Outdated Show resolved Hide resolved
The new sessions item has pre-aggregated counts for different session
outcomes.

It is configurable if the aggregation should be exploded into individual
session updates, or rather sent as aggregates to the kafka topic.
Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

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

One missing export, and a few clippy lints, then this is good to go 👍

Thanks!

relay-general/src/protocol/mod.rs Outdated Show resolved Hide resolved
@Swatinem Swatinem merged commit 95c5ceb into master Nov 18, 2020
@Swatinem Swatinem deleted the feature/session-batches branch November 18, 2020 13:52
Swatinem added a commit that referenced this pull request Jan 20, 2021
The compatibility mode was added in #815 because it was waiting on proper support in snuba.
That downstream support was added recently in getsentry/snuba#1492, and compatibility mode was switched off in production via a configuration change.
Also, the snuba change was included in the 21.1 CalVer release, so it is fine to remove compatibility mode and ship this feature in full fidelity in 21.2.
Swatinem added a commit that referenced this pull request Jan 21, 2021
The compatibility mode was added in #815 because it was waiting on proper support in snuba.
That downstream support was added recently in getsentry/snuba#1492, and compatibility mode was switched off in production via a configuration change.
Also, the snuba change was included in the 21.1 CalVer release, so it is fine to remove compatibility mode and ship this feature in full fidelity in 21.2.
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.

None yet

3 participants