Skip to content

Commit 35095d9

Browse files
author
Floris Bruynooghe
authored
feat(symbolication): Option comparing stackwalkers (sentry option) (#25807)
1 parent fa05899 commit 35095d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sentry/lang/native/symbolicator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import base64
22
import logging
3+
import random
34
import sys
45
import time
56
from urllib.parse import urljoin
@@ -325,10 +326,11 @@ def parse_sources(config):
325326

326327

327328
def get_options_for_project(project):
329+
compare_rate = options.get("symbolicator.compare_stackwalking_methods_rate")
328330
return {
329331
# Symbolicators who do not support options will ignore this field entirely.
330332
"dif_candidates": features.has("organizations:images-loaded-v2", project.organization),
331-
"compare_stackwalking_methods": features.has("symbolicator:compare-stackwalking-methods"),
333+
"compare_stackwalking_methods": random.random() < compare_rate,
332334
}
333335

334336

0 commit comments

Comments
 (0)