New option for excepthook integration [Sentry_SDK] by tolgahanuzun

View this thread on steempeak.com
· @tolgahanuzun ·
$10.31
New option for excepthook integration [Sentry_SDK]
I have written an option for Excepthook integrations.

[Curation Repo](https://github.com/getsentry/sentry-python)
[PR link](https://github.com/getsentry/sentry-python/pull/364)

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
$ 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](https://github.com/getsentry/sentry-python/commit/7f259280c86033b4ac4ea4178422750836673139#diff-b5bd15037527fcce59645aec1a9ebd21)

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

[This test](https://github.com/getsentry/sentry-python/commit/7f259280c86033b4ac4ea4178422750836673139#diff-7d6e831027459c4607d17109b32715dc)


I also opened a pr in the document. Not officially approved, but accepted. The next merger is said to be taken.
[Doc-PR](https://github.com/getsentry/sentry-docs/pull/978)


GitHub Account
[tolgahanuzun](https://github.com/tolgahanuzun)
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id74,944,648
authortolgahanuzun
permlinknew-option-for-excepthook-integration-sentrysdk
categoryutopian-io
json_metadata{"app":"steempeak\/1.9.9","format":"markdown","tags":["utopian-io","development","python","sentry"],"users":["localhost"],"links":["https:\/\/github.com\/getsentry\/sentry-python","https:\/\/github.com\/getsentry\/sentry-python\/pull\/364","https:\/\/github.com\/getsentry\/sentry-python\/commit\/7f259280c86033b4ac4ea4178422750836673139#diff-b5bd15037527fcce59645aec1a9ebd21","https:\/\/github.com\/getsentry\/sentry-python\/commit\/7f259280c86033b4ac4ea4178422750836673139#diff-7d6e831027459c4607d17109b32715dc","https:\/\/github.com\/getsentry\/sentry-docs\/pull\/978","https:\/\/github.com\/tolgahanuzun"]}
created2019-05-18 09:43:45
last_update2019-05-18 09:43:45
depth0
children4
net_rshares19,182,067,694,785
last_payout2019-05-25 09:43:45
cashout_time1969-12-31 23:59:59
total_payout_value7.800 SBD
curator_payout_value2.510 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,739
author_reputation14,417,464,439,057
root_title"New option for excepthook integration [Sentry_SDK]"
beneficiaries
0.
accountutopian.pay
weight500
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (36)
@helo ·
$6.47
- 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](https://join.utopian.io/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](https://review.utopian.io/result/3/3-3-3-2-2-2-4-).

---- 
Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm).

[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id75,007,890
authorhelo
permlinkre-tolgahanuzun-new-option-for-excepthook-integration-sentrysdk-20190519t173258991z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https:\/\/join.utopian.io\/guidelines","https:\/\/review.utopian.io\/result\/3\/3-3-3-2-2-2-4-","https:\/\/discord.gg\/uTyJkNm","https:\/\/join.utopian.io\/"],"app":"steemit\/0.1"}
created2019-05-19 17:33:00
last_update2019-05-19 17:33:00
depth1
children1
net_rshares11,490,791,258,503
last_payout2019-05-26 17:33:00
cashout_time1969-12-31 23:59:59
total_payout_value4.954 SBD
curator_payout_value1.520 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length588
author_reputation119,612,833,307,875
root_title"New option for excepthook integration [Sentry_SDK]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (26)
@utopian-io ·
Thank you for your review, @helo! Keep up the good work!
properties (22)
post_id75,151,772
authorutopian-io
permlinkre-re-tolgahanuzun-new-option-for-excepthook-integration-sentrysdk-20190519t173258991z-20190522t110626z
categoryutopian-io
json_metadata{"app":"beem\/0.20.17"}
created2019-05-22 11:06:27
last_update2019-05-22 11:06:27
depth2
children0
net_rshares0
last_payout2019-05-29 11:06:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length56
author_reputation152,913,012,544,965
root_title"New option for excepthook integration [Sentry_SDK]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-ua ·
#### 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](https://discord.gg/KpBNYGz)**
properties (22)
post_id75,010,630
authorsteem-ua
permlinkre-new-option-for-excepthook-integration-sentrysdk-20190519t183754z
categoryutopian-io
json_metadata{"app":"beem\/0.20.19"}
created2019-05-19 18:37:54
last_update2019-05-19 18:37:54
depth1
children0
net_rshares0
last_payout2019-05-26 18:37:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length291
author_reputation23,203,609,903,979
root_title"New option for excepthook integration [Sentry_SDK]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@utopian-io ·
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](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
post_id75,100,115
authorutopian-io
permlinkre-new-option-for-excepthook-integration-sentrysdk-20190521t121555z
categoryutopian-io
json_metadata{"app":"beem\/0.20.17"}
created2019-05-21 12:15:57
last_update2019-05-21 12:15:57
depth1
children0
net_rshares0
last_payout2019-05-28 12:15:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length594
author_reputation152,913,012,544,965
root_title"New option for excepthook integration [Sentry_SDK]"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000