From 255f76dcbe15eaa9f032f26c19a6f28b4690d204 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 3 Dec 2018 17:02:27 -0800 Subject: more sentry tags when extracting --- python/kafka_grobid.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/kafka_grobid.py b/python/kafka_grobid.py index 13fbcff..f3aaedf 100755 --- a/python/kafka_grobid.py +++ b/python/kafka_grobid.py @@ -199,7 +199,12 @@ class KafkaGrobidWorker: return None, dict(status='denylist', key=key) # Note: this may not get "cleared" correctly - sentry_client.extra_context(dict(row_key=key)) + sentry_client.extra_context(dict( + row_key=key, + cdx_url=info['file:cdx']['url'], + cdx_dt=info['file:cdx']['dt'], + cdx_warc=info['file:cdx']['warc'], + )) # Do the extraction info, status = self.extract(info) -- cgit v1.2.3