Skip to content

Tail sampling - #407

Merged
alexmojaki merged 47 commits into
mainfrom
alex/tail-sampling-v2
Sep 17, 2024
Merged

alexmojaki merged 47 commits into
mainfrom
alex/tail-sampling-v2

Conversation

@alexmojaki

@alexmojaki alexmojaki commented Aug 29, 2024 •

Copy link
Copy Markdown
Contributor

Adds a new parameter sampling: SamplingOptions to logfire.configure() which can configure both head and tail sampling.

The trace_sample_rate parameter has been deprecated, the new equivalent is sampling=logfire.SamplingOptions(head=...). However the trace_sample_rate key in pyproject.toml and the LOGFIRE_TRACE_SAMPLE_RATE env var will still work without warnings. Not sure what to do about that and how much it's worth thinking about at the moment.

@cloudflare-workers-and-pages

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

Copy link
Copy Markdown

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: e72dd0b
Status: ✅  Deploy successful!
Preview URL: https://0a77b5a2.logfire-docs.pages.dev
Branch Preview URL: https://alex-tail-sampling-v2.logfire-docs.pages.dev

View logs

@codecov

codecov Bot commented Aug 29, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (fb0a162) to head (e72dd0b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main      #407    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          130       131     +1     
  Lines         9527      9696   +169     
  Branches      1232      1266    +34     
==========================================
+ Hits          9527      9696   +169     

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

@alexmojaki alexmojaki changed the title Tail sampling v2 Tail sampling Sep 12, 2024
@alexmojaki
alexmojaki marked this pull request as ready for review September 12, 2024 12:04
@alexmojaki
alexmojaki requested review from adriangb and dmontagu and removed request for dmontagu September 12, 2024 12:13
Comment thread docs/guides/advanced/sampling.md Resolved
@alexmojaki
alexmojaki merged commit 63a0950 into main Sep 17, 2024
@alexmojaki
alexmojaki deleted the alex/tail-sampling-v2 branch September 17, 2024 15: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