New option for excepthook integration [Sentry_SDK]
I have written an option for Excepthook integrations.
The Sentry error capture and monitor library has recently changed its official library. I wanted to update the old library. I found a lack of testing.
- What feature(s) did you add?
Always_run
Sentry does not catch errors in repl. They have a filter for that. If you when error with the code from an active terminal or debug screen; does not catch errors. Sometimes I need this feature.
I've made this query dependent on the user's request.
Example Code
$ python
> from sentry_sdk import init
> from sentry_sdk.integrations.excepthook import ExcepthookIntegration
>
> init("http://foobar@localhost/123",
> integrations=[ExcepthookIntegration(always_run=True)]
> )
its simple. :)
- How did you implement it/them?
ExcepthookIntegration class was not getting an initial value. I added the initial value and set the default value to False. I changed the query that controls repl activity, and I've canceled it if always_run is set.
I also had to write one test to support the repo. It was fun. :)
I also opened a pr in the document. Not officially approved, but accepted. The next merger is said to be taken.
Doc-PR
GitHub Account
tolgahanuzun
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Chat with us on Discord.
[utopian-moderator]
Thank you for your review, @helo! Keep up the good work!
Hi @tolgahanuzun!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server
Hey, @tolgahanuzun!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!