Skip to content

Commit ba96065

Browse files
authored
feat(symx): Add os as a tag (#83504)
Filtering by OS would be nice. Cardinality-wise this is no problem since we are only interested in a list of 4 values. This also adds the project ID to the context so we can more easily find the event if we need to.
1 parent 361d204 commit ba96065

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: src/sentry/lang/native/processing.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,15 @@ def emit_apple_symbol_stats(apple_symbol_stats, data):
541541
os_description = os_name + str(os_version)
542542
if os_description in options.get("symbolicate.symx-os-description-list"):
543543
with sentry_sdk.isolation_scope() as scope:
544+
scope.set_tag("os", os_description)
544545
scope.set_context(
545546
"Event Info",
546-
{"id": data.get("event_id"), "modules": old, "os": os_description},
547+
{
548+
"project": data.get("project"),
549+
"id": data.get("event_id"),
550+
"modules": old,
551+
"os": os_description,
552+
},
547553
)
548554
sentry_sdk.capture_message("Failed to find symbols using symx")
549555

0 commit comments

Comments
 (0)