-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a pre_sampling option to metrics methods
This allows sampling decisions to be made outside of metrics emission but still have the sampling rate sent to the collector. If pre_sampling is false/not set the existing behavior of sampling in the library is used. When pre_sampling is true metrics are always sent regardless of the sample rate. In this mode it is up to the caller to handle sampling.
- Loading branch information
1 parent
aac4f54
commit 690d07b
Showing
2 changed files
with
131 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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