-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iterate on Sentry filtering #7292
Conversation
There are some issues coming up today into Sentry (1958583765, 1952538184, 1962256159, 1951854941, 1956288097, 1946342362) that come from schema validation issues of config / domain files. While exploring solutions, I've hit a roadblock with To me the impact is at different levels:
I've found an alternative, |
@tmbo could I get your feedback on this one? Nothing urgent and it should be quick for you I think ^^ (tests + changelog fragments are obviously missing for the draft) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot for digging into these issues 🚀 left some thoughts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great iteration! Waiting for the approval due to my comment about Rasa X implications.
Co-authored-by: Tobias Wochinger <[email protected]>
@wochinge thanks for all your review comments 💯 I think I addressed all your comments and there is this remaining open question before this can be merged |
Co-authored-by: Joe Juzl <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for improving the reporting and doing some maintenance work at the same time 💯
a Python class | ||
|
||
Raises: | ||
ImportError, in case the Python class cannot be found. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically also a TypeError
in case import_module
fails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure I follow 🤔 doesn't it raise a ModuleNotFoundError
which inherits ImportError
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import_module
in 3.8.6 also raises a TypeError
which inherits from Exception
def import_module(name, package=None):
"""Import a module.
The 'package' argument is required when performing a relative import. It
specifies the package to use as the anchor point from which to resolve the
relative import to an absolute import.
"""
level = 0
if name.startswith('.'):
if not package:
msg = ("the 'package' argument is required to perform a relative "
"import for {!r}")
raise TypeError(msg.format(name))
for character in name:
if character != '.':
break
level += 1
return _bootstrap._gcd_import(name[level:], package, level)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 yeah ok. It sounds a bit more like a detail. Fine if I keep it like it is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be more transparent for the caller as they'd know which errors to handle without having to dive deeper into the code, but up to you as it's a detail as you said.
finallyyyyyyyyyyy merged! |
Proposed changes:
MarkdownException
when Markdown cannot be read (sentry/1953580685)CancelledError
(sentry/1966753788)None
(sentry/1946541728)InvalidEntityFormatException
when entities cannot be parsed, and ignore it (sentry/1945365040)MemoryError
(sentry/2009040566)psycopg2.OperationalError
(sentry/2009384160)botocore.NoCrendentialsError
(sentry/2005727807)class_from_module_path()
are in fact classes (sentry/1952538184/071b08fc49494d3b96c16d0ed19b9913Status (please check what you already did):
black
(please check Readme for instructions)