Skip to content

Remove default_span_processor parameter from configure - #400

Merged
alexmojaki merged 4 commits into
mainfrom
alex/default_span_processor
Aug 26, 2024
Merged

alexmojaki merged 4 commits into
mainfrom
alex/default_span_processor

Conversation

@alexmojaki

Copy link
Copy Markdown
Contributor

default_span_processor is a weird parameter that mostly just adds bloat to the API docs and it makes it harder to reason about how the SDK behaves for users and make changes in the future. There's some desire to replace the BatchSpanProcessor and other layers with our own processor that handles batching etc. more intelligently (#263 (comment), #252 (review)) and more specifically we've talked about dynamically tweaking the batching delay based on things like the sizes of previous batches.

The parameter isn't doing much harm right now, but we want to release a stable v1 of the SDK soon, so best to make this breaking change now. We could maybe add a deprecation warning, but it wouldn't last very long, and chances are no one apart from us is using this.

@codecov

codecov Bot commented Aug 26, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (108ae4b) to head (a92260b).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #400   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          128       128           
  Lines         9314      9353   +39     
  Branches      1209      1217    +8     
=========================================
+ Hits          9314      9353   +39     

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

@alexmojaki
alexmojaki requested a review from adriangb August 26, 2024 12:02
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 26, 2024 •

Copy link
Copy Markdown

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: c75edf9
Status: ✅  Deploy successful!
Preview URL: https://3f157a70.logfire-docs.pages.dev
Branch Preview URL: https://alex-default-span-processor.logfire-docs.pages.dev

View logs

@ChristopherGS ChristopherGS changed the title Remove default_span_processor parameter from configure PYD-1066: Remove default_span_processor parameter from configure Aug 26, 2024
@linear

linear Bot commented Aug 26, 2024

Copy link
Copy Markdown

PYD-1066 Logfire SDK V1

@alexmojaki
alexmojaki enabled auto-merge (squash) August 26, 2024 13:02
@alexmojaki
alexmojaki merged commit fdfe06d into main Aug 26, 2024
@alexmojaki
alexmojaki deleted the alex/default_span_processor branch August 26, 2024 13:04
@ChristopherGS ChristopherGS changed the title PYD-1066: Remove default_span_processor parameter from configure Remove default_span_processor parameter from configure Aug 26, 2024
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