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

Add capture_all to instrument_httpx #753

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Add capture_all to instrument_httpx #753

wants to merge 5 commits into from

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Dec 30, 2024

This is pointing to my other PR.

@Kludex Kludex requested a review from alexmojaki December 30, 2024 16:06
Copy link

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

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4db0b56
Status: ✅  Deploy successful!
Preview URL: https://bd4f7f0d.logfire-docs.pages.dev
Branch Preview URL: https://add-capture-all.logfire-docs.pages.dev

View logs

Copy link

codecov bot commented Dec 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (70d4554) to head (4db0b56).

Additional details and impacted files
@@                 Coverage Diff                 @@
##           drop-httpx-kwargs      #753   +/-   ##
===================================================
  Coverage             100.00%   100.00%           
===================================================
  Files                    135       135           
  Lines                  10907     10927   +20     
  Branches                1547      1552    +5     
===================================================
+ Hits                   10907     10927   +20     

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

Comment on lines +73 to +75
warn_at_user_stacklevel(
'You should use either `capture_all` or the specific capture parameters, not both.', UserWarning
)
Copy link
Member Author

Choose a reason for hiding this comment

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

This is better being a runtime error instead of UserWarning.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think a warning is fine.

Base automatically changed from drop-httpx-kwargs to main December 31, 2024 09:39
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