Repository navigation
Remove extra FastAPI spans by default - #1268
Conversation
PR Change SummaryUpdated the default behavior of
Modified Files
How can I customize these reviews?Check out the Hyperlint AI Reviewer docs for more information on how to customize the review. If you just want to ignore it on this PR, you can add the Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add |
There was a problem hiding this comment.
Pull Request Overview
This PR changes the default value of the extra_spans parameter in logfire.instrument_fastapi from True to False, constituting a breaking change that will trigger a major version release. The change aims to reduce span verbosity by default while still providing timing information through span attributes.
- Changed default
extra_spansparameter fromTruetoFalsein FastAPI instrumentation - Updated documentation to reflect new behavior and explain the relationship between attributes and optional spans
- Clarified that extra spans are now primarily for backwards compatibility and grouping child operations
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| logfire/_internal/main.py | Updates default value of extra_spans parameter to False |
| logfire/_internal/integrations/fastapi.py | Updates default value of extra_spans parameter to False |
| docs/integrations/web-frameworks/fastapi.md | Restructures documentation to emphasize attributes over spans and explains new behavior |
Deploying logfire-docs with
|
| Latest commit: |
387d7e3
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ed1997a4.logfire-docs.pages.dev |
| Branch Preview URL: | https://alex-fastapi-spans-off.logfire-docs.pages.dev |
Changes the default of
extra_spans(introduced in #1258) inlogfire.instrument_fastapifrom True to False, and updates docs.This is a breaking change that will trigger a major version release.