Repository navigation
Tail sampling - #407
Merged
Merged
Tail sampling#407
Conversation
Deploying logfire-docs with
|
| 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 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
WIP TODO TODO TODO
alexmojaki
requested review from
adriangb and
dmontagu
and removed request for
dmontagu
September 12, 2024 12:13
Kludex
approved these changes
Sep 17, 2024
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new parameter
sampling: SamplingOptionstologfire.configure()which can configure both head and tail sampling.The
trace_sample_rateparameter has been deprecated, the new equivalent issampling=logfire.SamplingOptions(head=...). However thetrace_sample_ratekey inpyproject.tomland theLOGFIRE_TRACE_SAMPLE_RATEenv var will still work without warnings. Not sure what to do about that and how much it's worth thinking about at the moment.