Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions sentry_sdk/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,21 +112,6 @@ def substituted_because_over_size_limit(
},
)

@classmethod
def substituted_because_contains_sensitive_data(cls) -> "AnnotatedValue":
"""The actual value was removed because it contained sensitive information."""
return AnnotatedValue(
value=SENSITIVE_DATA_SUBSTITUTE,
metadata={
"rem": [ # Remark
[
"!config", # Because of SDK configuration (in this case the config is the hard coded removal of certain django cookies)
"s", # The fields original value was substituted
]
]
},
)


T = TypeVar("T")
Annotated = Union[AnnotatedValue, T]
Expand Down
9 changes: 0 additions & 9 deletions sentry_sdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,15 +987,6 @@ def iter_event_stacktraces(event: "Event") -> "Iterator[Annotated[Dict[str, Any]
yield exception["stacktrace"]


def iter_event_frames(event: "Event") -> "Iterator[Dict[str, Any]]":
for stacktrace in iter_event_stacktraces(event):
if isinstance(stacktrace, AnnotatedValue):
stacktrace = stacktrace.value or {}

for frame in stacktrace.get("frames") or ():
yield frame


def handle_in_app(
event: "Event",
in_app_exclude: "Optional[List[str]]" = None,
Expand Down
Loading