Skip to content

Conversation

@elro444
Copy link

@elro444 elro444 commented Dec 28, 2024

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

When exceptions occurred in queries of the Python data source, you could not see where the error happened.
This PR fixes this and adds the line number where the exception was raised from.

Since the user will care about exceptions in their code, the shown line number will be the "deepest" entry in the stack trace that is from the user's code (from the query).

How is this tested?

  • Unit tests (pytest, jest)
  • E2E Tests (Cypress)
  • Manually
  • N/A

Manually added exceptions to my query, and saw that it properly showed the line number of the problematic line.

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

image

@elro444 elro444 force-pushed the python-add-exception-line-number branch from 9df485a to 4b9cb16 Compare December 28, 2024 18:02
@Lee2532
Copy link
Contributor

Lee2532 commented Jan 18, 2025

I think in case of error line, it would be better to leave it as log only.

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

Successfully merging this pull request may close these issues.

2 participants