-
Notifications
You must be signed in to change notification settings - Fork 624
Fireperf fragments: sampling #3588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Coverage Report 1Affected Products
Test Logs
Notes |
Size Report 1Affected Products
Test Logs
Notes |
a32f99d
to
2fed9e4
Compare
3afc065
to
fc8ba27
Compare
firebase-perf/src/test/java/com/google/firebase/perf/transport/RateLimiterTest.java
Outdated
Show resolved
Hide resolved
firebase-perf/src/test/java/com/google/firebase/perf/transport/RateLimiterTest.java
Outdated
Show resolved
Hide resolved
firebase-perf/src/test/java/com/google/firebase/perf/transport/RateLimiterTest.java
Show resolved
Hide resolved
LGTM on check-changed is green |
firebase-perf/src/main/java/com/google/firebase/perf/transport/RateLimiter.java
Outdated
Show resolved
Hide resolved
firebase-perf/src/main/java/com/google/firebase/perf/transport/RateLimiter.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after addressing the unit test comments.
I'm not fully aligned on adding a new parameter to the RateLimiter constructor. This means that for every new metric, we would end up adding a new sampling rate parameter to the rate limiter. But, we are aligning our current implementation with the existing options. So, fine with it for now. But we need to find a better strategy to organize the rate limiter.
firebase-perf/src/main/java/com/google/firebase/perf/transport/RateLimiter.java
Show resolved
Hide resolved
firebase-perf/src/main/java/com/google/firebase/perf/transport/RateLimiter.java
Outdated
Show resolved
Hide resolved
* Add fragment trace sampling rate config flag (#3546) * Fireperf: fragment lifecycle callbacks (#3565) * onResume and onPause * copyright * rename to * more specific language * Fireperf fragments: trace creation and adding custom attributes (#3575) * implementation * test * gjf * ebugfix * copyright * add tests * long name test * fix test * change error to warn message * Fix hasFrameMetricsAggregator's value not being set. * Fix googleJavaFormat error * Add frame metrics to fragment traces (#3592) * Add frame metrics to fragment traces. * Fix AppStateMonitor.java * Rename FrameMetrics to PerfFrameMetrics * Fix screen trace logging by printing the trace name. (#3599) * Fireperf fragments: sampling (#3588) * ssample fragment after trace already sampled * gjf * tests and qol for immutable bundle * test names and revert getFloat * fragment-sampling * fix test * separate bucketId checkArguments * Fireperf fragments eap: change version number (#3604) * change version number * changelog * changelog edit * Update the gradle properties to match the EAP release branch (#3606) * Update the gradle properties to match the release branch * Revert ktx gradle properties * default no0 sampling rate * gradle.properties revert * gradle.properties revert 2 * fix unit tests * review Co-authored-by: Visu <[email protected]> Co-authored-by: Leo Zhan <[email protected]>
b/225186908