New option for excepthook integration [Sentry_SDK]

in #utopian-io6 years ago

I have written an option for Excepthook integrations.

Curation Repo
PR link

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.

This code

I also had to write one test to support the repo. It was fun. :)

This test

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

Sort:  
  • This article could have used more images and details.
  • Please include more comments in your code.
  • Make commit messages more detailed.

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!

Coin Marketplace

STEEM 0.22
TRX 0.26
JST 0.039
BTC 94495.37
ETH 3358.58
USDT 1.00
SBD 3.14