Skip to content

Commit

Permalink
Moved comment and updated changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-wilfert committed Sep 12, 2024
1 parent aa9c204 commit 588d6fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Various fixes & improvements

- Transaction sample rate is now configurable through the config file ([#1517](https://github.com/getsentry/symbolicator/pull/1517)).
- In native symbolication, trying to download a source file from a
sourcelink now creates a candidate ([#1507](https://github.com/getsentry/symbolicator/pull/1510)).

Expand Down
9 changes: 9 additions & 0 deletions crates/symbolicator-service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,15 @@ impl Default for Config {
max_concurrent_requests: Some(200),
shared_cache: None,
_crash_db: None,
// Symbolicator receives at peak:
// - ~3_000 `symbolicate_js`,
// - ~800 `symbolicater`, and
// - ~40 `minidump_stackwalk` requests per second.
//
// round that up to ~4_000 total requests per second, with a 5% sample rate,
// we end up with ~200 sampled transactions per second, or ~12_000 per minute.
// We only do this for the "real" transactions and not the http frontend that
// just spawns these computations.
transaction_sample_rate: 0.05,
}
}
Expand Down
11 changes: 0 additions & 11 deletions crates/symbolicator/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,6 @@ pub fn execute() -> Result<()> {
if Some(true) == ctx.sampled() {
1.0
} else if ctx.operation() != "http.server" {
// TODO: Think about what to do with this comment now:
// Symbolicator receives at peak:
// - ~3_000 `symbolicate_js`,
// - ~800 `symbolicater`, and
// - ~40 `minidump_stackwalk` requests per second.
//
// round that up to ~4_000 total requests per second, with a 5% sample rate,
// we end up with ~200 sampled transactions per second, or ~12_000 per minute.
// We only do this for the "real" transactions and not the http frontend that
// just spawns these computations.

config.transaction_sample_rate
} else {
0.0
Expand Down

0 comments on commit 588d6fd

Please sign in to comment.