Skip to content

Commit

Permalink
refactored sampling rules: project specific + hierarchical conditions
Browse files Browse the repository at this point in the history
New rules are only project specific
New rules can be build with Or,And,Not combinators
  • Loading branch information
RaduW committed Jan 20, 2021
1 parent 4731bf1 commit 290265b
Show file tree
Hide file tree
Showing 3 changed files with 413 additions and 541 deletions.
4 changes: 1 addition & 3 deletions relay-server/src/actors/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1076,9 +1076,7 @@ impl EventProcessor {
Some(event) => event,
};

let project_id = state.project_id;
match utils::should_keep_event(event, &state.project_state, project_id, processing_enabled)
{
match utils::should_keep_event(event, &state.project_state, processing_enabled) {
Some(false) => Err(ProcessingError::EventSampled),
Some(true) => Ok(()),
None => Ok(()), // Not enough info to make a definite evaluation, keep the event
Expand Down
Loading

0 comments on commit 290265b

Please sign in to comment.