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

Remove double record exception #712

Merged
merged 11 commits into from
Jan 3, 2025
Merged

Conversation

dmontagu
Copy link
Contributor

@dmontagu dmontagu commented Dec 20, 2024

We are currently double-recording exceptions in LogfireSpan's due to some convoluted logic that this PR simplifies

Copy link

cloudflare-workers-and-pages bot commented Dec 20, 2024

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: a07384e
Status: ✅  Deploy successful!
Preview URL: https://6504c716.logfire-docs.pages.dev
Branch Preview URL: https://remove-double-record-excepti.logfire-docs.pages.dev

View logs

logfire/_internal/main.py Outdated Show resolved Hide resolved
logfire/_internal/tracer.py Outdated Show resolved Hide resolved
tests/test_logfire.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (80779f3) to head (a07384e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #712   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          137       137           
  Lines        10911     10925   +14     
  Branches       781       781           
=========================================
+ Hits         10911     10925   +14     

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

logfire/_internal/tracer.py Outdated Show resolved Hide resolved
@dmontagu
Copy link
Contributor Author

dmontagu commented Jan 2, 2025

@alexmojaki I see you approved this, but just to confirm, am I good to merge this now? I can make additional changes if there's anything left you prefer

tests/test_logfire.py Outdated Show resolved Hide resolved
@alexmojaki
Copy link
Contributor

Thanks!

@alexmojaki alexmojaki enabled auto-merge (squash) January 3, 2025 14:29
@alexmojaki alexmojaki merged commit 1382f17 into main Jan 3, 2025
14 checks passed
@alexmojaki alexmojaki deleted the remove-double-record-exception branch January 3, 2025 14: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