OpenAdaptAI / OpenAdapt

Open Source Generative Process Automation (i.e. Generative RPA). AI-First Process Automation with Large ([Language (LLMs) / Action (LAMs) / Multimodal (LMMs)] / Visual Language (VLMs)) Models
https://www.OpenAdapt.AI
MIT License
1.02k stars 143 forks source link

[Bug]: Glitchtip broken #897

Open abrichr opened 1 month ago

abrichr commented 1 month ago

Describe the bug

image

To Reproduce

https://app.glitchtip.com/openadaptai/settings/projects/openadapt

abrichr commented 1 month ago
image
abrichr commented 1 month ago

From @0dm on Discord:

ok so removing the @logger.catch in replay(...) lets the error reporter do its thing, but i get an error related to QT because of the before_send_event function. removing it allows sentry to work

abrichr commented 1 month ago

@0dm:

needs to be configured to only report issues instead of performance metrics

e.g.

def configure_error_reporting() -> None:
...
    if is_reporting_branch:
        sentry_sdk.init(
            dsn=config.ERROR_REPORTING_DSN,
            # Disable performance events
            # TODO: make configurable
            traces_sample_rate=0.0,
            before_send=before_send_event,
            ignore_errors=[KeyboardInterrupt],
        )

?