diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-01-10 12:40:46 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-01-10 12:41:54 -0800 |
commit | 9cdf476863dd686fa928dfb8a99825a9fd6776fe (patch) | |
tree | 61616aa4cdc52f1adf1ebe48b66df268f2177553 /python/fatcat_ingest.py | |
parent | b3076c623703e6f46155767633e0b428b46da4a1 (diff) | |
download | fatcat-9cdf476863dd686fa928dfb8a99825a9fd6776fe.tar.gz fatcat-9cdf476863dd686fa928dfb8a99825a9fd6776fe.zip |
add missing sentry/raven tags
Good to have exceptions tracked and stored even for commands run from
the command line. But in particular the importer runs as a kafka worker
and should be tracking excpetions.
Diffstat (limited to 'python/fatcat_ingest.py')
-rwxr-xr-x | python/fatcat_ingest.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/python/fatcat_ingest.py b/python/fatcat_ingest.py index 9f0bf22e..0df4674e 100755 --- a/python/fatcat_ingest.py +++ b/python/fatcat_ingest.py @@ -9,11 +9,16 @@ import sys import json import argparse from collections import Counter +import raven +import elasticsearch +from elasticsearch_dsl import Search from fatcat_tools import public_api, simple_kafka_producer, kafka_fail_fast from fatcat_tools.transforms import release_ingest_request -import elasticsearch -from elasticsearch_dsl import Search + + +# Yep, a global. Gets DSN from `SENTRY_DSN` environment variable +sentry_client = raven.Client() def run_ingest_container(args): |