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

Log more info about internal errors #346

Merged
merged 12 commits into from
Aug 5, 2024
Merged

Conversation

alexmojaki
Copy link
Contributor

@alexmojaki alexmojaki commented Jul 29, 2024

Replaces #325

Copy link

cloudflare-workers-and-pages bot commented Jul 29, 2024

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9ed4a77
Status: ✅  Deploy successful!
Preview URL: https://4e701f26.logfire-docs.pages.dev
Branch Preview URL: https://alex-internal-exception-tb.logfire-docs.pages.dev

View logs

Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (fe704f3) to head (9ed4a77).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #346   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          121       123    +2     
  Lines         8958      9040   +82     
  Branches      1171      1178    +7     
=========================================
+ Hits          8958      9040   +82     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alexmojaki alexmojaki marked this pull request as ready for review July 29, 2024 20:35
@alexmojaki alexmojaki requested review from Kludex and dmontagu July 29, 2024 20:35
@alexmojaki alexmojaki changed the title Nice internal error tracebacks Log more info about internal errors Jul 29, 2024
logfire/_internal/utils.py Outdated Show resolved Hide resolved
@@ -1,5 +1,6 @@
from _typeshed import Incomplete
from collections.abc import Generator
from logfire._internal.stack_info import is_user_code as is_user_code
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the as needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's just what stubgen does, you can see it in lots of other places in the pyi files

logfire/_internal/utils.py Outdated Show resolved Hide resolved
@alexmojaki alexmojaki enabled auto-merge (squash) August 5, 2024 10:27
@alexmojaki alexmojaki merged commit d73f474 into main Aug 5, 2024
13 checks passed
@alexmojaki alexmojaki deleted the alex/internal_exception_tb branch August 5, 2024 10:30
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