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

Deprecate project_name in logfire.configure(), remove old kwargs from signature #428

Merged
merged 7 commits into from
Sep 17, 2024

Conversation

alexmojaki
Copy link
Contributor

@alexmojaki alexmojaki commented Sep 17, 2024

Deprecated kwargs are now moved into **kwargs: DeprecatedKwargs and undocumented to leave the remaining docs cleaner.

Internal discussion: https://pydantic.slack.com/archives/C05AF4A4WRM/p1725302678666539

Copy link

cloudflare-workers-and-pages bot commented Sep 17, 2024

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 91148d3
Status: ✅  Deploy successful!
Preview URL: https://5cf8a242.logfire-docs.pages.dev
Branch Preview URL: https://alex-cleanup-configure.logfire-docs.pages.dev

View logs

Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (8c8d80e) to head (91148d3).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #428   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          130       130           
  Lines         9516      9527   +11     
  Branches      1229      1232    +3     
=========================================
+ Hits          9516      9527   +11     

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

@alexmojaki alexmojaki requested a review from Kludex September 17, 2024 11:02
@@ -144,11 +144,14 @@ class PydanticPlugin:
"""Exclude specific modules from instrumentation."""


def configure(
class DeprecatedKwargs(TypedDict):
pass
Copy link
Member

Choose a reason for hiding this comment

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

By "undocumented" you mean you don't have type hints? and that's why you didn't add them here? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, added a comment

@alexmojaki alexmojaki enabled auto-merge (squash) September 17, 2024 13:51
@alexmojaki alexmojaki merged commit fb0a162 into main Sep 17, 2024
10 checks passed
@alexmojaki alexmojaki deleted the alex/cleanup-configure branch September 17, 2024 13:54
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