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

Request: hook for uncaught Exception #7690

Closed
2 tasks done
jamesbraza opened this issue Nov 8, 2023 · 3 comments
Closed
2 tasks done

Request: hook for uncaught Exception #7690

jamesbraza opened this issue Nov 8, 2023 · 3 comments
Labels
type:enhancement Requests for feature enhancements or new features

Comments

@jamesbraza
Copy link

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

I send logs to Papertrail, and I would like to have a function to add logging on uncaught Exceptions to Streamlit.

To do this, I am requesting a hook be exposed for uncaught Exceptions, where I can have a custom function be passed the uncaught Exception.

Why?

See summary.

How?

This could hook into to handle_uncaught_app_exception somehow.

Additional Context

Coming from https://discuss.streamlit.io/t/is-there-a-global-on-exception-hook/55029

This is somewhat related to #7688

@jamesbraza jamesbraza added the type:enhancement Requests for feature enhancements or new features label Nov 8, 2023
Copy link

github-actions bot commented Nov 8, 2023

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits

@sfc-gh-jcarroll
Copy link
Collaborator

Thanks @jamesbraza ! by the way, we already have a GitHub issue for this - #3426

In case you want to upvote the existing issue, add your use case and close this one

As Thiago mentioned on the forum, this is something we are thinking about and want to add in the not-too-distant future. Appreciate the additional use case and vote to add this!

@jamesbraza
Copy link
Author

Ah shoot, sorry for the dupe. Thank you for pointing me there!

@jamesbraza jamesbraza closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

2 participants