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(server): Add dynamic sampling #835

Merged
merged 35 commits into from
Nov 26, 2020
Merged

feat(server): Add dynamic sampling #835

merged 35 commits into from
Nov 26, 2020

Conversation

RaduW
Copy link
Contributor

@RaduW RaduW commented Nov 9, 2020

Implement dynamic sampling for transactions.

@RaduW RaduW requested a review from jan-auer November 11, 2020 09:51
@RaduW RaduW marked this pull request as ready for review November 11, 2020 15:26
@RaduW RaduW requested a review from a team November 11, 2020 15:26
* master:
  fix(tests): Fix disabled haproxy tests (#838)
  release: 20.11.0
  doc: Use automatic links (#836)
  doc: Bring back path of an event through relay (#831)
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.

This looks good overall, and approach seems very reasonable. A number of smaller comments and change requests below.

relay-filter/src/lib.rs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
relay-server/src/actors/project.rs Outdated Show resolved Hide resolved
relay-server/src/actors/project.rs Show resolved Hide resolved
relay-server/src/endpoints/common.rs Outdated Show resolved Hide resolved
relay-server/src/utils/dynamic_sampling.rs Show resolved Hide resolved
relay-server/src/utils/dynamic_sampling.rs Outdated Show resolved Hide resolved
relay-server/src/utils/dynamic_sampling.rs Show resolved Hide resolved
relay-server/src/utils/dynamic_sampling.rs Outdated Show resolved Hide resolved
relay-server/src/utils/error_boundary.rs Show resolved Hide resolved
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.

G2G once integration tests are passing.

relay-server/src/actors/events.rs Outdated Show resolved Hide resolved
relay-server/src/endpoints/common.rs Outdated Show resolved Hide resolved
relay-server/src/endpoints/common.rs Outdated Show resolved Hide resolved
relay-server/src/endpoints/common.rs Outdated Show resolved Hide resolved
relay-server/src/endpoints/common.rs Outdated Show resolved Hide resolved
relay-server/src/endpoints/common.rs Outdated Show resolved Hide resolved
@@ -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 {
Copy link
Member

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.

Copy link
Contributor Author

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.

relay-server/src/utils/dynamic_sampling.rs Outdated Show resolved Hide resolved
relay-server/src/utils/dynamic_sampling.rs Outdated Show resolved Hide resolved
relay-server/src/utils/dynamic_sampling.rs Outdated Show resolved Hide resolved
@RaduW RaduW merged commit 48e89c0 into master Nov 26, 2020
@RaduW RaduW deleted the feat/dynamic-sampling-1 branch November 26, 2020 12:49
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

2 participants