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

No events received #246

Open
fishman opened this issue Aug 19, 2024 · 3 comments
Open

No events received #246

fishman opened this issue Aug 19, 2024 · 3 comments

Comments

@fishman
Copy link

fishman commented Aug 19, 2024

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://sentry@127.0.0.1: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?

@Kreezag
Copy link
Member

Kreezag commented Aug 19, 2024

Hi @fishman ,
It seems like the front-end issue with python sentry errors: buggregator/frontend#125

To clarify it, can I ask you to share response from the "events" endpoint in the fronted app?

@i4j5
Copy link

i4j5 commented Aug 28, 2024

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

@i4j5
Copy link

i4j5 commented Aug 28, 2024

Monolog and Sentry are working. trap(), dd(), dump() do not transmit data to the UI

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

No branches or pull requests

3 participants