No events received
I've tried setting up buggregator with my spiral app, but I don't see any events in the frontend.
MONOLOG_DEFAULT_CHANNEL=socket
MONOLOG_SOCKET_HOST=buggregator:9913
MONOLOG_DEFAULT_LEVEL=DEBUG # DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY
RAY_HOST=ray@buggregator
RAY_PORT=8000
VAR_DUMPER_FORMAT=server
VAR_DUMPER_SERVER=buggregator:9912
SENTRY_DSN=http://sentry@buggregator:8000/1
PROFILER_ENDPOINT=http://buggregator:8000/api/profiler/store
PROFILER_APP_NAME=something
To make sure everything is working fine I set up another docker-compose.yml with the following info:
buggregator:
image: ghcr.io/buggregator/server:1.11.3
ports:
- 8003:8000
- 1025:1025
- 9912:9912
- 9913:9913
and then ran the following code
import sentry_sdk
# Replace this with your Sentry DSN
SENTRY_DSN = "http://[email protected]:8000/1"
# Initialize the Sentry SDK
sentry_sdk.init(
dsn=SENTRY_DSN,
traces_sample_rate=1.0 # Adjust the sample rate for traces if needed
)
def main():
try:
# Simulate a function that could cause an error
simulate_error()
except Exception as e:
# Capture the exception in Sentry
res = sentry_sdk.capture_exception(e)
print(res)
print(f"An error occurred: {e}")
def simulate_error():
# Simulate a division by zero error
return 1 / 0
if __name__ == "__main__":
main()
<dev› » python sentry.py
e8d205575efa4f8f959580f3c22499a7
An error occurred: division by zero
python sentry.py 1.90s user 0.45s system 84% cpu 2.776 total
‹dev› » python sentry.py
ce01f61babe94486a1c19cbcc520cd3e
An error occurred: division by zero
So it seems like something is happening, but I see nothing on the UI. What can I do to debug what's going on?
Hi @fishman , It seems like the front-end issue with python sentry errors: https://github.com/buggregator/frontend/issues/125
To clarify it, can I ask you to share response from the "events" endpoint in the fronted app?
var-dumper is not working
VAR_DUMPER_FORMAT=server VAR_DUMPER_SERVER=buggregator:9912
buggregator: image: ghcr.io/buggregator/server:dev ports: - 127.0.0.1:8000:8000 - 127.0.0.1:1025:1025 - 127.0.0.1:9912:9912 - 127.0.0.1:9913:9913 networks: - net
Monolog and Sentry are working. trap(), dd(), dump() do not transmit data to the UI