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
As of right now this can be removed in before_send() as follows:
def before_send(event, hint):
placeholder = "*** Code context removed in before_send ***"
for exception in event.get("exception", {}).get("values", []):
for frame in exception.get("stacktrace", {}).get("frames", []):
for key in ["pre_context", "post_context"]: # add "context_line" to remove line itself
if key in frame and type(frame[key]) == list:
frame[key] = [placeholder] * len(frame[key])
return event
Activity
ref: Add `include_source_context` option
maxkosty commentedon Apr 20, 2023
As of right now this can be removed in
before_send()as follows:sentrivana commentedon May 11, 2023
Reopening since there's a bit missing in order to finish the implementation fully.
antonpirker commentedon Jun 5, 2023
Documentation for this option is still missing, but the option itself is already release in version
1.23.0antonpirker commentedon Jun 5, 2023
documentation PR is on the way: getsentry/sentry-docs#7090
So we can close this.