Skip to content
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

Add sentry to scrapy #6

Merged
merged 2 commits into from
Nov 13, 2019
Merged

Add sentry to scrapy #6

merged 2 commits into from
Nov 13, 2019

Conversation

jenhaoyang
Copy link
Contributor

Add sentry to scrapy
for issue #3 Enable Sentry in crawler

@jenhaoyang jenhaoyang added the enhancement New feature or request label Nov 13, 2019
@jenhaoyang jenhaoyang self-assigned this Nov 13, 2019
@jenhaoyang jenhaoyang merged commit ced10e7 into rentea-tw:master Nov 13, 2019
}
# Send exceptions to Sentry
# replace SENTRY_DSN by you own DSN
SENTRY_DSN = "https://[email protected]/1817994"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please dont't commit any environment setting into git. A typical solution would be read this from environment variable, or from an optional config file. XD

In addition, it would be better if we can make Sentry to be optional, so even people without knowledge of Sentry, or doesn't want to send info to Sentry, can use this tool.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK I will fix this issue. Thanks for your review

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to mention, could you also help to add related description into README.md? Than other people will know now this tool support Sentry! Thanks~

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK!!

@ddio
Copy link
Member

ddio commented Nov 14, 2019

@jenhaoyang , BTW, I can't find update about requirements.txt, but as we are going to use sentry module, it should be added into requirement.txt.

Looks like it's time to add some simple CI script. I've created one ticket to track this requirement. XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants