-
Notifications
You must be signed in to change notification settings - Fork 87
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(server): Add dynamic sampling #835
Conversation
# Conflicts: # relay-server/Cargo.toml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good overall, and approach seems very reasonable. A number of smaller comments and change requests below.
- now user_segments and environments are compared case insensitive
f8ad264
to
391235b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
G2G once integration tests are passing.
relay-server/src/actors/events.rs
Outdated
@@ -1461,7 +1472,15 @@ impl Handler<HandleEnvelope> for EventManager { | |||
None => Err(ProcessingError::RateLimited(checked.rate_limits)), | |||
} | |||
})) | |||
.and_then(|envelope| { | |||
sample_transaction(envelope, sampling_project, false).then(|result| match result { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This .then
can be moved to the outer future chain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what are you proposing, it is already at the top level of a long future chain.
Implement dynamic sampling for transactions.