Hello!
I have a problem with events: they aren’t displayed.
Legend: after upgrading from 10.x to 20.x sentry version It works and displays new events for 3-4 hours but after than it stops showing them.
I use this script for testing:
import sentry_sdk
from raven import Client
sentry_sdk.init(
'http://56d84af456444fefa2cf2e70f4580a42@sentry.dev.sp.corp/1',
max_breadcrumbs=50,
debug=True,
)
client = Client(
'http://56d84af456444fefa2cf2e70f4580a42@sentry.dev.sp.corp/1')
try:
1 / 0
except ZeroDivisionError:
client.captureException()
And I can see that it are processed and displayed in ‘ingest-event’ kafka topic:
root@ee8a4cdf19ca:/# kafka-console-consumer --bootstrap-server localhost:9092 --topic ingest-events --offset 27489 --partition 0 | grep "ZeroDivisionError"
typeeventpayload��"event_id":"65fc03ce45c8443ca566c6e549ab1d53","level":"error","version":"6","type":"error","logentry":{"formatted":"ZeroDivisionError: division by zero"},"logger":"","modules":{"python":"3.8.5"},"platform":"python","timestamp":1597152869.0,"received":1597152869.593785,"exception":{"values":[{"type":"ZeroDivisionError","value":"division by zero","module":"builtins","stacktrace":{"frames":[{"function":"<module>","module":"__main__","filename":"test.py","abs_path":"test.py","lineno":14,"pre_context":["","client = Client("," 'http://56d84af456444fefa2cf2e70f4580a42@sentry.dev.sp.corp/1')","","try:"],"context_line":" 1 / 0","post_context":["except ZeroDivisionError:"," client.captureException()"],"vars":{"Client":"<class 'raven.base.Client'>","__annotations__":{},"__builtins__":"<module 'builtins' (built-in)>","__cached__":null,"__doc__":null,"__file__":"'test.py'","__loader__":"<_frozen_importlib_external.SourceFileLoader object at 0x7f77bb912eb0>","__name__":"'__main__'","__package__":null,"__spec__":null,"client":"<raven.base.Client object at 0x7f77ba369910>","sentry_sdk":"<module 'sentry_sdk' from '/usr/lib/python3.8/site-packages/sentry_sdk/__init__.py'>"}}]}}]},"tags":[["server_name","yakovlev-pc"]],"extra":{"sys.argv":["'test.py'"]},"sdk":{"name":"raven-python","version":"6.10.0"},"key_id":"1","project":1,"grouping_config":{"enhancements":"eJybzDhxY3J-bm5-npWRgaGlroGxrpHxBABcTQcY","id":"newstyle:2019-10-29"},"_metrics":{"bytes.ingested.event":1362}}start_time�2eevent_id�65fc03ce45c8443ca566c6e549ab1d53project_idremote_addr172.31.21.1attachments
^CProcessed a total of 1626 messages
But I can’t see it in web, and I also noticed that ‘events’ kafka topic is empty:
root@ee8a4cdf19ca:/# kafka-run-class kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic events
events:0:0
Can you help us to fix this issue? What we can do for that?