fix: set default max_spans to 1000#1132
Conversation
|
We have three of these snippets for size_t max_spans = SENTRY_SPANS_MAX;
SENTRY_WITH_OPTIONS (options) {
max_spans = options->max_spans;
} |
The sole reason why those exist is that the initial implementer didn't want to scope the remaining code in I would leave them in there. They don't hurt anyone. If you want to get rid of them, you will have to put the entire dependent code inside the |
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- set default `max_spans` to 1000 ([#1132](https://github.com/getsentry/sentry-native/pull/1132))If none of the above apply, you can opt out of this check by adding |
* set default max_spans to 1000 * changelog
Fixes #1131
sentry_options_newSENTRY_SPANS_MAX