You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/sentry/utils/sdk_crashes/sdk_crash_detection_config.py
+47-12Lines changed: 47 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,21 @@ class FunctionAndPathPattern:
20
20
path_pattern: str
21
21
22
22
23
+
@dataclass(frozen=True)
24
+
classFunctionAndModulePattern:
25
+
"""Pattern for matching function and module to ignore SDK crashes.
26
+
27
+
Use "*" as a wildcard to match any value.
28
+
Examples:
29
+
- FunctionAndModulePattern("specific.module", "invoke") - matches only "invoke" in "specific.module"
30
+
- FunctionAndModulePattern("*", "invoke") - matches "invoke" in any module
31
+
- FunctionAndModulePattern("specific.module", "*") - matches any function in "specific.module"
32
+
"""
33
+
34
+
module_pattern: str
35
+
function_pattern: str
36
+
37
+
23
38
@dataclass
24
39
classSDKFrameConfig:
25
40
function_patterns: set[str]
@@ -65,8 +80,8 @@ class SDKCrashDetectionConfig:
65
80
system_library_path_patterns: set[str]
66
81
"""The configuration for detecting SDK frames."""
67
82
sdk_frame_config: SDKFrameConfig
68
-
"""The functions to ignore when detecting SDK crashes. For example, `**SentrySDK crash**`"""
69
-
sdk_crash_ignore_functions_matchers: set[str]
83
+
"""The function and module patterns to ignore when detecting SDK crashes. For example, FunctionAndModulePattern("*", "**SentrySDK crash**") for any module with that function"""
0 commit comments