Skip to content

Commit 6541f1f

Browse files
ref: Remove helpers left over from EventScrubber removal
Co-Authored-By: Ivana Kellyer <ivana.kellyer@sentry.io>
1 parent 9325cca commit 6541f1f

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

‎sentry_sdk/_types.py‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,6 @@ def substituted_because_over_size_limit(
112112
},
113113
)
114114

115-
@classmethod
116-
def substituted_because_contains_sensitive_data(cls) -> "AnnotatedValue":
117-
"""The actual value was removed because it contained sensitive information."""
118-
return AnnotatedValue(
119-
value=SENSITIVE_DATA_SUBSTITUTE,
120-
metadata={
121-
"rem": [ # Remark
122-
[
123-
"!config", # Because of SDK configuration (in this case the config is the hard coded removal of certain django cookies)
124-
"s", # The fields original value was substituted
125-
]
126-
]
127-
},
128-
)
129-
130115

131116
T = TypeVar("T")
132117
Annotated = Union[AnnotatedValue, T]

‎sentry_sdk/utils.py‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -987,15 +987,6 @@ def iter_event_stacktraces(event: "Event") -> "Iterator[Annotated[Dict[str, Any]
987987
yield exception["stacktrace"]
988988

989989

990-
def iter_event_frames(event: "Event") -> "Iterator[Dict[str, Any]]":
991-
for stacktrace in iter_event_stacktraces(event):
992-
if isinstance(stacktrace, AnnotatedValue):
993-
stacktrace = stacktrace.value or {}
994-
995-
for frame in stacktrace.get("frames") or ():
996-
yield frame
997-
998-
999990
def handle_in_app(
1000991
event: "Event",
1001992
in_app_exclude: "Optional[List[str]]" = None,

0 commit comments

Comments
 (0)