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

App crashed while instrumenting/Tracing psycopg2 query #75

Open
ConnectWise-Lalit opened this issue May 11, 2023 · 1 comment
Open

App crashed while instrumenting/Tracing psycopg2 query #75

ConnectWise-Lalit opened this issue May 11, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ConnectWise-Lalit
Copy link

In Our App it is expected that DataError may occur for few cases which is acceptable for us and we skip those without breaking the functionality
But we have observed that with this DataError Exception our app crashes in autodynatrace/wrappers/psycopg2/wrapper.py in execute
how can we make sure autodynatrace skips such Errors and keep our functionality intact without breaking application flow

Attaching the stack trace of the error crashed while Tracing psycopg2 query

image

@ConnectWise-Lalit ConnectWise-Lalit added the bug Something isn't working label May 11, 2023
@dlopes7 dlopes7 self-assigned this May 16, 2023
@dlopes7
Copy link
Collaborator

dlopes7 commented Jun 22, 2023

The DataError exception is thrown by psycopg2, not by autodynatrace.

Is the exception NOT thrown when not using autodynatrace? How are you executing this bad query so I can try to reproduce?

Because from my point of view you just need to have a try/catch for these exceptions, with or without the instrumentation, please let me know what I am missing here.

If autodynatrace were to catch this exception and ignore it, how would you know that this query is a bad query?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants