Skip to content

Log more info about internal errors - #346

Merged
alexmojaki merged 12 commits into
mainfrom
alex/internal_exception_tb
Aug 5, 2024
Merged

alexmojaki merged 12 commits into
mainfrom
alex/internal_exception_tb

Conversation

@alexmojaki

@alexmojaki alexmojaki commented Jul 29, 2024

Copy link
Copy Markdown
Contributor

Replaces #325

@cloudflare-workers-and-pages

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

Copy link
Copy Markdown

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

@codecov

codecov Bot commented Jul 29, 2024

Copy link
Copy Markdown

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
Comment thread logfire/_internal/utils.py Outdated
@@ -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
Copy Markdown
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
Copy Markdown
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

Comment thread logfire/_internal/utils.py Outdated
@alexmojaki
alexmojaki enabled auto-merge (squash) August 5, 2024 10:27
@alexmojaki
alexmojaki merged commit d73f474 into main Aug 5, 2024
@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