Skip to content

Commit

Permalink
fix: set default max_spans to 1000 (#1132)
Browse files Browse the repository at this point in the history
* set default max_spans to 1000

* changelog
  • Loading branch information
JoshuaMoelans authored Jan 30, 2025
1 parent d90eec1 commit 4218313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
**Fixes**:

- Allow older toolchains with assemblers that don't support PAC-stripping instructions on `aarch64` to compile `crashpad`. ([#1125](https://github.com/getsentry/sentry-native/pull/1125), [crashpad#118](https://github.com/getsentry/crashpad/pull/118))
- Set default `max_spans` to 1000. ([#1132](https://github.com/getsentry/sentry-native/pull/1132))

## 0.7.19

Expand Down
6 changes: 1 addition & 5 deletions src/sentry_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ sentry_options_new(void)
opts->refcount = 1;
opts->shutdown_timeout = SENTRY_DEFAULT_SHUTDOWN_TIMEOUT;
opts->traces_sample_rate = 0.0;
opts->max_spans = 0;
opts->max_spans = SENTRY_SPANS_MAX;
opts->handler_strategy = SENTRY_HANDLER_STRATEGY_DEFAULT;

return opts;
Expand Down Expand Up @@ -605,10 +605,6 @@ sentry_options_set_traces_sample_rate(
sample_rate = 1.0;
}
opts->traces_sample_rate = sample_rate;

if (sample_rate > 0 && opts->max_spans == 0) {
opts->max_spans = SENTRY_SPANS_MAX;
}
}

/**
Expand Down

0 comments on commit 4218313

Please sign in to comment.